Skip to content

Commit

Permalink
Changed construction of sclass (for xcms) using isaobject #5
Browse files Browse the repository at this point in the history
  • Loading branch information
agbeltran committed Jul 20, 2012
1 parent a483557 commit d3d9680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rISAtab.r
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ processAssayType = function(isa)

if (length(grep("Factor.Value", colnames(isa$study_files[[i]]))) != 0) {
## If there are explicit factors, use them
sclass = metadata[ which(metadata$Sample.Name %in% pd$Sample.Name), grep("Factor.Value", colnames(metadata))[1]]
sclass = isa$study_files[[i]][ which(isa$study_files[[i]]$Sample.Name %in% pd$Sample.Name), grep("Factor.Value", colnames(isa$study_files[[i]]))[1]]
isa[[i]] = xcmsSet(files=msfiles, sclass=sclass)
} else {
## Otherwise just use what was there
Expand Down

0 comments on commit d3d9680

Please sign in to comment.