
Create a SummarizedExperiment object from featureCounts output
Source:R/05_03_quantification_featureCounts.R
featureCounts2se.Rd
Create a SummarizedExperiment object from featureCounts output
Arguments
- sample_info
Data frame of sample metadata created with the functions
create_sample_info
.- fc_output
Either a gene expression matrix generated by
fcount
, or the path to the .tsv file containing the gene expression matrix as generated byfcount
.
Examples
data(sample_info)
mappingdir <- system.file("extdata", package="bears")
gff_path <- system.file("extdata", "Homo_sapiens.GRCh37.75_subset.gtf",
package="bears")
fcountsdir <- file.path(tempdir(), "fcountsdir")
if(subread_is_installed()) {
counts <- featureCounts(sample_info, mappingdir, gff_path, fcountsdir)
se <- featureCounts2se(sample_info, counts)
}