View source: R/coverage_cal_functions.R
read_coverage | R Documentation |
This function judges whether bam file is single-end and paired-end,
and generate bam file index if needed. It calls function
paired_end_cov_by_ch
or single_end_by_ch
.
It takes multiple-core structure
for parallel computing for efficiency.
read_coverage(bam_file,all_genes,cores)
bam_file |
The name of the bam file. |
all_genes |
An GRangesList object. It's the parsed genes annotation file from GTF file. |
cores |
number of cores to use. |
This function judges whether bam file is single-end and paired-end, and generate bam file index if needed. It takes multiple-core structure for parallel computing for efficiency.
This function returns a coverageClass object. It contains a list of: (1) a list of coverage score for each gene in RLE format and (2) a dataframe for read counts
read_coverage_batch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.