EdgeR- equal number of columns per group?
1
0
Entering edit mode
Lana Schaffer ★ 1.3k
@lana-schaffer-1056
Last seen 9.6 years ago
Hi, I got this message when trying to use 2 columns for HVC and 1 column for WB. > d <- DGEList(counts = D, group = c(rep("d45HVC",2),"d45WB")) Error in DGEList(counts = D, group = c(rep("d45HVC", 2), "d45WB")) : Length of 'group' must equal number of columns in 'counts' So there is no way for me to use all my information (columns) ? Lana Schaffer Biostatistics, Informatics DNA Array Core Facility 858-784-2263 [[alternative HTML version deleted]]
• 2.5k views
ADD COMMENT
0
Entering edit mode
@davis-mccarthy-4138
Last seen 9.6 years ago
Hi Lana It certainly should be possible for you to use all of your information. What is the output from dim(D)? Somehow there is a mismatch between the number of columns of your object D and the group labels you are assigning. The group vector you define, c(rep("d45HVC",2),"d45WB"), should indeed be of length 3, so it seems that D does not consist of exactly three columns. Cheers Davis On May 24, 2011, at 5:21 AM, Lana Schaffer wrote: > Hi, > I got this message when trying to use 2 columns for HVC and 1 column for WB. > >> d <- DGEList(counts = D, group = c(rep("d45HVC",2),"d45WB")) > Error in DGEList(counts = D, group = c(rep("d45HVC", 2), "d45WB")) : > Length of 'group' must equal number of columns in 'counts' > > So there is no way for me to use all my information (columns) ? > > > Lana Schaffer > Biostatistics, Informatics > DNA Array Core Facility > 858-784-2263 > > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor ---------------------------------------------------------------------- -- Davis J McCarthy Research Technician Bioinformatics Division Walter and Eliza Hall Institute of Medical Research 1G Royal Parade, Parkville, Vic 3052, Australia dmccarthy at wehi.edu.au http://www.wehi.edu.au ______________________________________________________________________ The information in this email is confidential and intend...{{dropped:6}}
ADD COMMENT
0
Entering edit mode
Davis, Thanks. I was able to fix my problem. Lana -----Original Message----- From: Davis McCarthy [mailto:dmccarthy@wehi.EDU.AU] Sent: Monday, May 23, 2011 3:42 PM To: Lana Schaffer Cc: 'bioconductor at r-project.org' Subject: Re: [BioC] EdgeR- equal number of columns per group? Hi Lana It certainly should be possible for you to use all of your information. What is the output from dim(D)? Somehow there is a mismatch between the number of columns of your object D and the group labels you are assigning. The group vector you define, c(rep("d45HVC",2),"d45WB"), should indeed be of length 3, so it seems that D does not consist of exactly three columns. Cheers Davis On May 24, 2011, at 5:21 AM, Lana Schaffer wrote: > Hi, > I got this message when trying to use 2 columns for HVC and 1 column for WB. > >> d <- DGEList(counts = D, group = c(rep("d45HVC",2),"d45WB")) > Error in DGEList(counts = D, group = c(rep("d45HVC", 2), "d45WB")) : > Length of 'group' must equal number of columns in 'counts' > > So there is no way for me to use all my information (columns) ? > > > Lana Schaffer > Biostatistics, Informatics > DNA Array Core Facility > 858-784-2263 > > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor ---------------------------------------------------------------------- -- Davis J McCarthy Research Technician Bioinformatics Division Walter and Eliza Hall Institute of Medical Research 1G Royal Parade, Parkville, Vic 3052, Australia dmccarthy at wehi.edu.au http://www.wehi.edu.au ______________________________________________________________________ The information in this email is confidential and intend...{{dropped:6}}
ADD REPLY

Login before adding your answer.

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