Getting a count matrix from a SummerizedExpriment with EasyRNASeq
2
0
Entering edit mode
@sylvain-foisy-5539
Last seen 5.2 years ago
Canada

Hi,

I previously used EasyRNASeq 1.8 to get count matrices from BAM files with a simple write.table command. I am trying to move to v. 2.0.8 but I just can’t seem to be able to do the same with the SummerizedExperiment object created…  I know that I could create object sot feed directly to edgeR or deseq2 but we want to do our own analysis with various other techniques.

Probably a trivial thing but I am no R/Bioconductor wizard ;-)

Thanks in advance

Sylvain

easyrnaseq • 2.3k views
ADD COMMENT
1
Entering edit mode
@sylvain-foisy-5539
Last seen 5.2 years ago
Canada

 

Hi Andrzej,

It does not provide meaningful info:

> ?SummarizedExperiment

No documentation for ‘SummarizedExperiment’ in specified packages and libraries:

you could try ‘??SummarizedExperiment’

> ??SummarizedExperiment

Help files with alias or concept or title matching

‘SummarizedExperiment’ using fuzzy matching:

easyRNASeq::BamFileList

                        Count summarization and normalization pipeline

                        for Next Generation Sequencing data.

biovizBase::mold        mold data into data.frame

DESeq2::collapseReplicates

                        Collapse replicates in a SummarizedExperiment

                        or DESeqDataSet

GenomicRanges::SummarizedExperiment-class

                        SummarizedExperiment instances

Type '?PKG::FOO' to inspect entries 'PKG::FOO', or 'TYPE?PKG::FOO' for

entries like 'PKG::FOO-TYPE'.

 

What's next?

S

ADD COMMENT
0
Entering edit mode
library(GenomicRanges)
?SummarizedExperiment
ADD REPLY
0
Entering edit mode

Hi James,

Thanks for the input; I would have thought that loading easyRNASeq would have also loaded GenomicRanges... I'll insert the statement in my code.

S

 

ADD REPLY
0
Entering edit mode

easyRNASeq imports all the functions it needs from GenomicRanges, but doesn't depend on that package (e.g., it won't load it by default).

ADD REPLY
0
Entering edit mode
Andrzej Oleś ▴ 750
@andrzej-oles-5540
Last seen 4.0 years ago
Heidelberg, Germany

Hi Sylvain,

you can use the assays method to extract the count table from your SummerizedExperiment object, for details see ?SummarizedExperiment.

Best,

Andrzej

ADD COMMENT

Login before adding your answer.

Traffic: 820 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6