filterFastqByBam | R Documentation |
Filters FastQ files by bam and writes them into new files.
filterFastqByBam(
fqFiles,
bamFile,
fqOutFiles = NULL,
doGzip = TRUE,
keepUnmapped = TRUE,
isProperPair = NA
)
removeReadsFromFastq(fqFiles, readIds, fqOutFiles = NULL, doGzip = TRUE)
fqFiles |
a character vector representing file paths to FastQ files. |
bamFile |
a character representing the bam file path. |
fqOutFiles |
an optional character vector representing file paths to the FastQ output files. |
doGzip |
a logical indicating whether to archive the output files in a gzip archive. |
keepUnmapped |
passed further to |
isProperPair |
passed further to |
readIds |
a character containing the read ID's from the |
Returns the names of the filtered FastQ files.
removeReadsFromFastq
: Removes reads from the FastQ files according to the bam filter.
Rehrauer, Hubert
Schmid, Peter
scanBam
ScanBamParam
bamFile <- system.file("extdata", "ex1.bam", package="Rsamtools", mustWork=TRUE)
file = system.file("extdata/yeast_10k/dataset.tsv", package="ezRun", mustWork = TRUE)
param = list()
param$dataRoot = system.file(package="ezRun", mustWork = TRUE)
input = EzDataset$new(file=file, dataRoot=param$dataRoot)
fqFiles = input$getFullPaths("Read1")
fqFiltered = filterFastqByBam(fqFiles, bamFile, doGzip = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.