Skip to content

Commit

Permalink
No need to perform a group step for a single file
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienCode404 committed Nov 12, 2024
1 parent 38cc94e commit c89c2dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/camera/CAMERA_groupFWHM.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ if (exists("xdata")) {
if (!exists("xdata")) stop("\n\nERROR: The RData doesn't contain any object called 'xdata'. This RData should have been created by an old version of XMCS 2.*")

# Verification of a group step before doing the fillpeaks job.
if (!hasFeatures(xdata)) stop("You must always do a group step after a retcor. Otherwise it won't work for the groupFWHM step")
if (dim(xdata@phenoData@data)[1] > 1) {
if (!hasFeatures(xdata)) stop("You must always do a group step after a retcor. Otherwise it won't work for the groupFWHM step")
} else {
print("Only one file in the phenoData keep xset as is")
}

# Convert the xset object to xsAnnotate using CAMERA
cat("Converting xset object to xsAnnotate...\n")
Expand Down

0 comments on commit c89c2dd

Please sign in to comment.