maskPositionsByQuality {alakazam} | R Documentation |
Mask sequence positions with low quality
Description
maskPositionsByQuality
will replace positions that
have a sequencing quality score lower that min_quality
with an
"N"
character.
Usage
maskPositionsByQuality(
data,
min_quality = 70,
sequence = "sequence_alignment",
quality_num = "quality_alignment_num"
)
Arguments
data |
|
min_quality |
minimum quality score. Positions with sequencing quality
less than |
sequence |
column in |
quality_num |
column in |
Value
Modified data
data.frame with an additional field containing
quality masked sequences. The name of this field is created
concatenating the sequence
name and "_masked"
.
See Also
readFastqDb and getPositionQuality
Examples
db <- airr::read_rearrangement(system.file("extdata", "example_quality.tsv", package="alakazam"))
fastq_file <- system.file("extdata", "example_quality.fastq", package="alakazam")
db <- readFastqDb(db, fastq_file, quality_offset=-33)
maskPositionsByQuality(db, min_quality=90, quality_num="quality_alignment_num")
[Package alakazam version 1.3.0 Index]