How to detect and eliminate duplicate rows in an expression matrix in an automated way?
1
0
Entering edit mode
@nqueraltclinicubes-4369
Last seen 9.6 years ago
Dear all, I have a R script that sometimes provides that error: > myExpressionSet <- new("ExpressionSet", exprs = myexprs, phenoData = myphenoData, annotation = myannotation) Error in data.frame(numeric(n), row.names = nms) : duplicate row.names: 1368290_at, 1368303_at, 1388202_at I'd like to fix that in an automated way in order to avoid the script abortion. Does anyone know how to detect and eliminate duplicate rows in an expression matrix in an automated way? Best regards, NĂºria [[alternative HTML version deleted]]
Annotation Annotation • 1.0k views
ADD COMMENT
0
Entering edit mode
@matthew-mccall-4459
Last seen 4.9 years ago
United States
Take a look at the function duplicated. You also might want to check that the rows are actually duplicates, not just the rownames. Matt On Fri, Mar 11, 2011 at 11:46 AM, <nqueralt at="" clinic.ub.es=""> wrote: > Dear all, > > > > I have a R script that sometimes provides that error: > > > >> myExpressionSet <- new("ExpressionSet", exprs = myexprs, phenoData = myphenoData, annotation = myannotation) > > Error in data.frame(numeric(n), row.names = nms) : > > ?duplicate row.names: 1368290_at, 1368303_at, 1388202_at > > > > I'd like to fix that in an automated way in order to avoid the script abortion. Does anyone know how to detect and eliminate duplicate rows in an expression matrix in an automated way? > > > > Best regards, > > > > N?ria > > > > > ? ? ? ?[[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 > -- Matthew N McCall, PhD 112 Arvine Heights Rochester, NY 14611 Cell: 202-222-5880
ADD COMMENT

Login before adding your answer.

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