View source: R/bbmap_utilities.R
bbdemux | R Documentation |
Demultiplex fusion primers using BBmap Seal
bbdemux(
install = NULL,
fwd,
rev = NULL,
Fbarcodes = NULL,
Rbarcodes = NULL,
restrictleft = NULL,
out.dir = "demux",
kmer = NULL,
hdist = 0,
degenerate = TRUE,
force = TRUE,
threads = NULL,
mem = NULL,
interleaved = FALSE
)
install |
(Required) Install location for bbmap |
fwd |
(Required) Vector of locations of forward reads |
rev |
(Optional) Vector of locations of reverse reads |
Fbarcodes |
(Required) Barcodes used in forward reads |
Rbarcodes |
(Optional) Barcodes used in reverse reads |
restrictleft |
(Optional) Defaults to the size of the largest primer. Restricts the kmer search for primer sequences to just the left side of the molecule. |
out.dir |
(Optional) Default "demux" The path to write the output reads. |
kmer |
(Optional) default the size of the smallest primer will be used. The kmer size to use for primer searching. |
hdist |
(Optional) Default = 0. The hamming distance (number of substitution errors) allowed for mismatch to the query primer. |
degenerate |
(Optional) Default TRUE. Option to search for all possible primer combinations for degenerate primers |
force |
(Optional) Default TRUE Option to overwrite existing output files. |
threads |
(Optional) Default autodetect Number of CPU threads to use WARNING: Thread detection can fail on cluster computing currently |
mem |
(Optional) Default autodetect GB of memory to use WARNING: mem detection can fail on cluster computing currently |
interleaved |
(Optional) Default FALSE Option to input interleaved reads |
#' \dontrun{
path <- "run_test/"
demuxpath <- file.path(path, "demux") # Filtered forward files go into the path/filtered/ subdirectory
fastqFs <- sort(list.files(path, pattern="R1_001.*", full.names = TRUE))
fastqRs <- sort(list.files(path, pattern="R2_001.*", full.names = TRUE))
bbdemux(install="bin/bbmap", fwd=fastqFs, rev=fastqRs,Fbarcodes = c("GAGGDACW","TGTGGDAC","AGAAGGDAC"),
Rbarcodes = c("ACGTRATW","TCCGTRAT","CTGCGTRA"),
degenerate=TRUE, out.dir=demuxpath, threads=1, mem=4,
hdist=0, force=TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.