Inccorect group number in DGEList
2
0
Entering edit mode
Fiona • 0
@0f752196
Last seen 14 months ago
United Kingdom

Hello,

I have a large DGEList which (should) contain 8 groups, however within Samples the Group factor level is only 1. Does anyone know how I can redefine my groups?

The data was sent to me via an .rda file which I then read in to R.

Any help would be greatly appreciated, Many thanks.

edgeR Bioconductor Dseq2 dgelist • 583 views
ADD COMMENT
1
Entering edit mode
@james-w-macdonald-5106
Last seen 12 minutes ago
United States

The 'samples' list item of a DGEList is just a data.frame, so you can do whatever you want to it and put it back into the DGEList.

samps <- dglst$samples

## do stuff to it
dglst$samples <- samps

It's up to you to ensure that the 'samples' list item makes sense in the context of your experiment.

ADD COMMENT
1
Entering edit mode
@gordon-smyth
Last seen 10 hours ago
WEHI, Melbourne, Australia

Just use standard R language. If dgelst is the DGEList object, then

dgelst$samples$group <- YourGroupFactor
ADD COMMENT

Login before adding your answer.

Traffic: 749 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