Description Usage Arguments Value Examples
View source: R/alignRsubread.R
This function is not available in Windows environment. Align cell
specific reads to reference genome and write sequence alignment results to
output directory. A wrapper to the align
function in Rsubread
package. For details please refer to Rsubread
manual.
1 2 3 4 5 |
sce |
A |
index |
Path to the |
unique |
Argument passed to |
nBestLocations |
Argument passed to |
format |
File format of sequence alignment results. "BAM" or "SAM". Default is "BAM". |
outDir |
Output directory for alignment results. Sequence alignment
files will be stored in folders in this directory, respectively.
Make sure the folder is empty. Default is |
cores |
Number of cores used for parallelization. Default is
|
threads |
Do not change. Number of threads/CPUs used for
mapping for each core. Refer to |
summaryPrefix |
Prefix for alignment summary filename. Default is
|
overwrite |
Boolean indicating whether to overwrite the output directory. Default is FALSE. |
verbose |
Boolean indicating whether to print log messages. Useful for debugging. Default to FALSE. |
logfilePrefix |
Prefix for log file. Default is current date and time
in the format of |
... |
Additional arguments passed to the |
A SingleCellExperiment object containing the alignment
summary information in the colData
slot. The alignment_path
column of the annotation table contains the paths to alignment files.
of the paths to output alignment files.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | # The SingleCellExperiment object returned by demultiplex function is
# required for running alignRsubread function
# Does not support Windows environment
## Not run:
data(barcodeExample, package = "scruff")
fastqs <- list.files(system.file("extdata", package = "scruff"),
pattern = "\\.fastq\\.gz", full.names = TRUE)
de <- demultiplex(
project = "example",
experiment = c("1h1", "b1"),
lane = c("L001", "L001"),
read1Path = c(fastqs[1], fastqs[3]),
read2Path = c(fastqs[2], fastqs[4]),
barcodeExample,
bcStart = 1,
bcStop = 8,
umiStart = 9,
umiStop = 12,
keep = 75,
overwrite = TRUE)
# Alignment
library(Rsubread)
# Create index files for GRCm38_MT.
fasta <- system.file("extdata", "GRCm38_MT.fa", package = "scruff")
# Specify the basename for Rsubread index
indexBase <- "GRCm38_MT"
buildindex(basename = indexBase, reference = fasta, indexSplit = FALSE)
al <- alignRsubread(de, indexBase, overwrite = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.