2015-09-02 55 views
0

我想從表達式集的phenoData中選擇列。我要處理的數據是特定的。 (C 1,2 -從表達式集的phenoData中選擇列R

names(pData(teset)) 
[1] "time"   "status"   "Age"    "Gender"   
[5] "TCGA_tumor_type" "Tumor_stage"  "Tumor_grade" 

我只希望在不pData所第一兩列的teset數據,即以pData所(teset)[所有exprs數據,:teset的

class(teset) 
[1] "ExpressionSet" 
attr(,"package") 
[1] "Biobase" 

teset 
ExpressionSet (storageMode: lockedEnvironment) 
assayData: 19420 features, 253 samples 
element names: exprs 
    protocolData: none 
phenoData 
    sampleNames: TCGA-CV-7091-01A-11D-2012-08 TCGA-CJ-4875-01A-01D-1373-10 ... 
    TCGA-25-1626-01A-01W-0615-10 (253 total) 
    varLabels: time status ... Tumor_grade (7 total) 
    varMetadata: labelDescription 
featureData 
    featureNames: 1060P11.3 A1BG ... ZZZ3 (19420 total) 
    fvarLabels: EntrezID Symbol Desc Synonyms 
    fvarMetadata: labelDescription 
experimentData: use 'experimentData(object)' 
Annotation: 

協變量信息)]。我怎樣才能做到這一點?感謝幫助!!!

回答

0

我自己找到一個解決方案,創建一個新的。希望有可能會更好之一:

TE = ExpressionSet(assayData = exprs(teset),phenoData = phenoData(teset), - C(1,2)])