Biobase: How to replace the ExpressionSet phenoData?
1
1
Entering edit mode
Daniel Brewer ★ 1.9k
@daniel-brewer-1791
Last seen 10.2 years ago
Hello, I have an ExpressionSet object (nodups) and I would like to replace its phenoData with a different data.frame object (pdata). I cannot work out how to do it. I have tired: > phenoData(nodups) <- new("AnnotatedDataFrame",pData) Error in value[[3L]](cond) : AnnotatedDataFrame 'data' is class 'standardGeneric' but should be or extend 'data.frame' AnnotatedDataFrame 'initialize' could not update varMetadata: perhaps pData and varMetadata are inconsistent? Any ideas? Thanks Dan -- ************************************************************** Daniel Brewer, Ph.D. Institute of Cancer Research Molecular Carcinogenesis Email: daniel.brewer at icr.ac.uk ************************************************************** The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the a...{{dropped:2}}
Cancer Cancer • 2.0k views
ADD COMMENT
0
Entering edit mode
Daniel Brewer ★ 1.9k
@daniel-brewer-1791
Last seen 10.2 years ago
Don't worry I had a typo. Ooops. On 25/08/2010 10:58 AM, Daniel Brewer wrote: > Hello, > > I have an ExpressionSet object (nodups) and I would like to replace its > phenoData with a different data.frame object (pdata). I cannot work out > how to do it. I have tired: > >> phenoData(nodups) <- new("AnnotatedDataFrame",pData) > Error in value[[3L]](cond) : > AnnotatedDataFrame 'data' is class 'standardGeneric' but should be or > extend 'data.frame' > AnnotatedDataFrame 'initialize' could not update varMetadata: > perhaps pData and varMetadata are inconsistent? > > Any ideas? > > Thanks > > Dan > -- ************************************************************** Daniel Brewer, Ph.D. Institute of Cancer Research Molecular Carcinogenesis MUCRC 15 Cotswold Road Sutton, Surrey SM2 5NG United Kingdom Tel: +44 (0) 20 8722 4109 ************************************************************** The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the a...{{dropped:2}}
ADD COMMENT

Login before adding your answer.

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