Description Usage Arguments Value Examples
get_counts
allows to obtain read counts quickly and
easily from RNASeq data to be used in downstream analyses.
1 2 3 4 5 6 | get_counts(reads, annotation, transcript_id = "transcript_id",
gene_id = "gene_id", mismatches = -1L, minoverlap = 1L,
feature = c("gene_exon", "gene", "exon", "intron"), type = c("default",
"union", "disjoin", "intersect", "longest", "shortest", "overlap"),
library = c("unstranded", "firststrand", "secondstrand"), paired = FALSE,
multiple_feature_overlaps = FALSE, verbose = FALSE)
|
reads |
A |
annotation |
A |
transcript_id |
Column name in |
gene_id |
Column name in |
mismatches |
Default |
minoverlap |
Argument that's passed to
|
feature |
How to count reads?
See |
type |
Same as |
library |
Either |
paired |
Default is |
multiple_feature_overlaps |
logical. Should reads that overlap
multiple features be counted. Default is |
verbose |
logical. Default is |
A data.table with calculated raw counts of overlapping reads for each feature.
1 2 3 4 5 6 | path <- system.file("tests", package="gcount")
gtf_file <- file.path(path, "sample.gtf")
bam_file <- file.path(path, "sample.bam")
bam_counts <- get_counts(bam_file, gtf_file, feature="gene_exon",
type="union", paired=FALSE, library="unstranded",
verbose=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.