Description Usage Arguments Details Value Examples
View source: R/FilterBACreads.R
Select specific reads from a table of BAC read annotations obtained by the function AnnotateBACreads
1 2 3 4 5 6 7 8 9 10 |
ReadClass |
Either a tibble obtained with the |
readtype |
Character vector. Type(s) of reads to select. Values should be in c("VDV", "DVD", "VD", "D", "V", "Chimeric", NA). (Defaults to "VDV") |
MinReadLength |
Integer. Minimum length of the selected reads. Reads below this length are dropped. (defaults to NULL, i.e. no filtering on read length) |
alnGeneA |
Logical. Should the selected read align to GeneA ? (defaults to NULL, i.e no filtering on GeneA alignment) |
alnGeneB |
Logical. Should the selected read align to GeneB ? (defaults to NULL, i.e no filtering on GeneB alignment) |
isHostAlign |
Logical. Should the selected reads align to the host genome (TRUE) or not (FALSE)? (defaults to NULL, i.e no filtering on host genome alignment alignment) |
VDVInsertLengthTarget |
Integer. What is the estimated length of the DNA insert (without the vector) in the VDV reads to be selected? (Defaults to NULL, no filtering on VDV read length) |
VDVInsertLengthTolerance |
Numeric. Number in [0,1[. What tolerance (in %) is accepted around VDVInsertLengthTarget? |
The function uses the column "LongestDNA" to filter for the size of VDV reads
tibble with selected reads.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Path to file (.rds) created with the AnnotateBACreads function
pathRC <- system.file("extdata", "BAC02_ReadClass.rds", package = "NanoBAC")
## Extract the annotation of all VDV reads longer than 111 kb
FilterBACreads(pathRC, "VDV", 111e3)
## Extract the annotation of the VDV reads which have an insert that is 104 kb long (+/- 0.1%)
FilterBACreads(pathRC, "VDV",
VDVInsertLengthTarget = 104e3,
VDVInsertLengthTolerance = 0.001)
## Extract the annotation of the D reads that map to the E. coli genome
FilterBACreads(pathRC, "D", isHostAlign = TRUE)
## Extract the annotation of the VD and the VDV reads that align to both GeneA and GeneB
FilterBACreads(pathRC, c("VD", "VDV"), alnGeneA = TRUE, alnGeneB = TRUE)
## There are no VDV reads that align to the E. coli host genome
## Not run:
FilterBACreads(pathRC, "VDV", isHostAlign = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.