Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use all factors as phenoData for XCMS #12

Open
sneumann opened this issue Feb 14, 2013 · 1 comment
Open

Use all factors as phenoData for XCMS #12

sneumann opened this issue Feb 14, 2013 · 1 comment

Comments

@sneumann
Copy link
Contributor

Hi,

Currently, processAssayXcmsSet() will obtain the first factor from the ISAtab
and use it as sampclass() for the xcmsSet. It would be great if all factors were used.
Below is an example.

Yours,
Steffen

# Create a data.frame with one column per factor
phenodataMtbls2 <- cbind(genotype=c("Col-0", "Col-0", "Col-0", "Col-0", "cyp79", "cyp79", "cyp79",  "cyp79", "Col-0", "Col-0", "Col-0", "Col-0", "cyp79", "cyp79",  "cyp79", "cyp79"), replicate=rep(c("Exp1", "Exp2"), each=8))

# add the assay names as rownames
rownames(phenodataMtbls2) <- c("MSpos-Ex1-Col0-48h-Ag-1_1-A,1_01_9818", "MSpos-Ex1-Col0-48h-Ag-2_1-A,1_01_9820",  "MSpos-Ex1-Col0-48h-Ag-3_1-A,1_01_9822", "MSpos-Ex1-Col0-48h-Ag-4_1-A,1_01_9824",  "MSpos-Ex1-cyp79-48h-Ag-1_1-B,1_01_9819", "MSpos-Ex1-cyp79-48h-Ag-2_1-B,2_01_9821",  "MSpos-Ex1-cyp79-48h-Ag-3_1-B,1_01_9823", "MSpos-Ex1-cyp79-48h-Ag-4_1-B,2_01_9825",  "MSpos-Ex2-Col0-48h-Ag-1_1-A,2_01_9827", "MSpos-Ex2-Col0-48h-Ag-2_1-A,3_01_9829",  "MSpos-Ex2-Col0-48h-Ag-3_1-A,4_01_9831", "MSpos-Ex2-Col0-48h-Ag-4_1-A,2_01_9833",  "MSpos-Ex2-cyp79-48h-Ag-1_1-B,3_01_9828", "MSpos-Ex2-cyp79-48h-Ag-2_1-B,4_01_9830",  "MSpos-Ex2-cyp79-48h-Ag-3_1-B,3_01_9832", "MSpos-Ex2-cyp79-48h-Ag-4_1-B,4_01_9834" )

# Assign to phenoData sloe in xcmsSet
phenoData(mtblsSet) <- phenodataMtbls2

# As you see, each assay file has its catenation of factors as sampclass().
sampclass(mtblsSet )
 [1] Col-0.Exp1 Col-0.Exp1 Col-0.Exp1 Col-0.Exp1 cyp79.Exp1 cyp79.Exp1
 [7] cyp79.Exp1 cyp79.Exp1 Col-0.Exp2 Col-0.Exp2 Col-0.Exp2 Col-0.Exp2
[13] cyp79.Exp2 cyp79.Exp2 cyp79.Exp2 cyp79.Exp2
Levels: Col-0.Exp1 cyp79.Exp1 Col-0.Exp2 cyp79.Exp2
@agbeltran
Copy link
Contributor

For the step 2

# add the assay names as rownames

it should be

# add the 'raw spectral data files' as rownames

agbeltran added a commit to agbeltran/Risa that referenced this issue Mar 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants