Learn R Programming

SGSeq (version 1.0.6)

getSGFeatureCounts: Compatible counts for splice graph features from BAM files

Description

Compatible counts are obtained for each sample and combined into an SGFeatureCounts object.

Usage

getSGFeatureCounts(sample_info, features, cores_per_sample = 1, BPPARAM = MulticoreParam(1))

Arguments

sample_info
data.frame with sample information. Required columns are “sample_name”, “file_bam”, “paired_end”, “read_length”, “frag_length” and “lib_size”. Alignment information can be obtained with function getBamInfo.
features
SGFeatures object
cores_per_sample
Number of cores per sample
BPPARAM
BiocParallelParam for processing samples in parallel, defaults to MulticoreParam(1)

Value

An SGFeatureCounts object

Examples

Run this code
dir <- system.file("extdata", package = "SGSeq")
si$file_bam <- file.path(dir, "bams", si$file_bam)
sgfc <- getSGFeatureCounts(si, sgf)

Run the code above in your browser using DataLab