mask {GeneR}R Documentation

Mask regions on a sequence

Description

Mask regions delimited by from and to on a sequence buffer. This function delete the reverse complement if exists (should be recomputed).

Usage

mask(seqno = 0, from = 1, to = 0, letter = "N")

Arguments

seqno

Integer/scalar, Sequence number (buffer number)

from, to

Integer/scalar, Absolute addresses of the beginning and the end of the fragment, (1 means the first nucleotide and 0 conventionally the last one; from must not be larger than to and both vectors must be the same size)

letter

Letter to use for masking

Value

usually 1; NULL if error.

Author(s)

Antoine Lucas

See Also

See also posMaskedSeq, upperSeq, lowerSeq

Examples


s <- "ATGCtgTGTTagtacAATGAGTGAGAGATGTGGGTTTaAAAattt"
placeString(s,upper=FALSE,seqno=0)
mask(from=c(10,20),to=c(15,22))
getSeq()


[Package GeneR version 2.24.0 Index]