Bam2Fastq | R Documentation |
Convert bam files to fastq files.
Bam2Fastq(
bam.folder = NULL,
bam.path = NULL,
bam.type = c("10x", "other"),
pair.end = NULL,
bamtofastq.path = NULL,
bamtofastq.paras = "--nthreads 4",
sort.name = FALSE,
sort.thread = 4
)
bam.folder |
Folder contains bam files, obtained from |
bam.path |
Paths of bams. |
bam.type |
The source of bam files, choose from 10x (e.g. CellRanger) or other. Default: 10x. |
pair.end |
The bam files are pair-end or single-end, used when |
bamtofastq.path |
Path to 10x bamtofastq ( |
bamtofastq.paras |
Parameters for |
sort.name |
Logical value, whether the bam files are sorted by name, required when |
sort.thread |
The number of threads for bam sorting, used when |
NULL or paths of failed bams.
## Not run:
# need users to provide prefetch.path and bamtofastq.path
GSE138266.runs <- ExtractRun(acce = "GSE138266", platform = "GPL18573")
GSE138266.down <- DownloadBam(
gsm.df = GSE138266.runs, prefetch.path = "/path/to/prefetch",
out.folder = "/path/to/output"
)
GSE138266.convert <- Bam2Fastq(
bam.folder = "/path/to/output",
bamtofastq.path = "/path/to/bamtofastq_linux or samtools",
bamtofastq.paras = "--nthreads 4"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.