Description Usage Arguments Details Value Author(s) See Also Examples
Generate filtered BAM file that does not contain reads with the input read names.
1 2  | 
file | 
 Path to the input BAM file.  | 
readsToFilter | 
 A character vector of read names to filter.  | 
index | 
 Path of the index file of the input BAM file.  | 
destination | 
 Path of the output filtered BAM file.  | 
overwrite | 
 Boolean value indicating whether the destination can be over-written if it already exists.  | 
Generate filtered BAM file that does not contain reads with the input read names, index file is also created.
The file name of the created destination file.
Lanying Wei <lanying.wei@uni-muenster.de>
FilterFFPE, findArtifactChimericReads,
FFPEReadFilter
1 2 3 4 5 6 7 8 9 10 11 12  | file <- system.file("extdata", "example.bam", package = "FilterFFPE")
outFolder <- tempdir()
FFPEReadsFile <- paste0(outFolder, "/example.FFPEReads.txt")
dupChimFile <- paste0(outFolder, "/example.dupChim.txt")
destination <- paste0(outFolder, "/example.FilterFFPE.bam")
artifactReads <- findArtifactChimericReads(file = file, threads = 2,
                                           FFPEReadsFile = FFPEReadsFile,
                                           dupChimFile = dupChimFile)
dupChim <- readLines(dupChimFile)
readsToFilter <- c(artifactReads, dupChim)
filterBamByReadNames(file = file, readsToFilter = readsToFilter,
                     destination = destination, overwrite=TRUE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.