Description Usage Arguments Value Examples
identifySTRRegions
takes a fastq-file location or a ShortReadQ-object and identifies the STR regions
based on a directly adjacent flanking regions.
The function allows for mutation in the flanking regions through the numberOfMutation argument.
1 | identifySTRRegions(reads, flankingRegions, numberOfMutation, control)
|
reads |
either a fastq-file location or a ShortReadQ-object |
flankingRegions |
containing marker ID/name, the directly adjacent forward and reverse flanking regions, used for identification. |
numberOfMutation |
the maximum number of mutations (base-calling errors) allowed during flanking region identification. |
control |
an identifySTRRegions.control-object. |
The returned object is a list of lists. If the reverse complement strings are not included or if the control$combineLists == TRUE
,
a list, contains lists of untrimmed and trimmed strings for each row in flankingRegions
. If control$combineLists == FALSE
, the function returns a list of two such lists,
one for forward strings and one for the reverse complement strings.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | library("Biostrings")
library("ShortRead")
# Path to file
readPath <- system.file('extdata', "sampleSequences.fastq", package = 'STRMPS')
# Flanking regions
data("flankingRegions")
# Read the file into memory
readFile <- readFastq(readPath)
sread(readFile)
quality(readFile)
# Identify the STR's of the file, both readPath and readFile can be used.
identifySTRRegions(reads = readFile, flankingRegions = flankingRegions,
numberOfMutation = 1,
control = identifySTRRegions.control(
numberOfThreads = 1,
includeReverseComplement = FALSE)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.