Learn R Programming

rphast (version 1.6.9)

offset.msa: MSA Index Offset

Description

Returns the offset of the first position in an alignment from some reference sequence.

Usage

offset.msa(x)

Arguments

x

an MSA object

Value

The difference between the first position in an alignment from the beginning of a chromosome.

Examples

Run this code
# NOT RUN {
m <- msa(seqs=c("A--ACGTAT", "AG-AGGTAA", "AGGAGGTAG"),
         names=c("human", "mouse", "rat"))
offset.msa(m)
m <- msa(seqs=c("A--ACGTAT", "AG-AGGTAA", "AGGAGGTAG"),
         names=c("human", "mouse", "rat"), offset=500000)
offset.msa(m)
# }

Run the code above in your browser using DataLab