Description Usage Arguments Details Value Examples
View source: R/reads_length_distribution.R
This function reads the fastq file of an individual, lane or chip and generate the read length distribution to help decide the threshold to cut the reads to a specific length.
1 2 3 4 5 | reads_length_distribution(
fq.file,
parallel.core = parallel::detectCores() - 1,
with.future = FALSE
)
|
fq.file |
(character, path). The path to the fastq file
(individal, lane or chip).
Default: |
parallel.core |
(integer) Enable parallel execution with the number of threads.
Default: |
with.future |
(logical) When |
coming soon, just try it in the meantime...
The function returns a plot and a tibble with potential reads length thresholds and associated number of reads.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
require(ShortRead)
reads.length.info <- stackr::reads_length_distribution(
fq.file = "my-sample.fq.gz")
# with future package to get faster results:
require(future)
require(listenv)
reads.length.info <- stackr::reads_length_distribution(
fq.file = "my-sample.fq.gz",
with.future = TRUE
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.