View source: R/cycler_fuctions.R
RPKM_calc | R Documentation |
RPKM calculation for the genomic features
RPKM_calc( count_matrix, sg, bsj_granges, bs_genome, sample_table, feature_type, fsj_overhang = 3, bsj_overhang = 15, eff_length_correction = T, gc_correction = F )
count_matrix |
count matrix corresponding to the features |
sg |
|
bsj_granges |
GRange of BSJ cooredinates |
bs_genome |
a |
sample_table |
sample table formatted according to the manual, Must contain “sample_name” “treatment” “file_bam” “lib_size” “read_len”; NB the values in column “treatment” can only be “control” and “enriched” |
feature_type |
either “e” for exons ot “j” for junctions |
fsj_overhang |
the FJS overhand used in the mapping a.k.a. anchor |
bsj_overhang |
the BSJ overhand used in the chimeric detection |
eff_length_correction |
whether or not to apply effective length correction |
gc_correction |
whether or not to apply GC-content correction; requires further testing |
This function performs RPKM calculations for the exonic features. The RPKM calculation is performed based on the exact sequences for the exons. For junctions, the sequences are selected based on the exons, flanking the junction. The function takes into account the needed effective length corrections.
BAMFileList
object with info on the trimmed files
Stefan Stefanov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.