Skip to content

Commit

Permalink
Corrected arguments for retrieving galaxyPath and sampleName + Remove…
Browse files Browse the repository at this point in the history
…d the correct number of sample columns in tsv output.
  • Loading branch information
DamienCode404 committed Oct 23, 2024
1 parent 572667c commit da3a0af
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions tools/camera/CAMERA_findAdducts.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ args <- list(
convertRTMinute = as.logical(args_vec[10]), # TRUE - FALSE
numDigitsMZ = as.numeric(args_vec[11]), # Number of digits MZ
numDigitsRT = as.numeric(args_vec[12]), # Number of digits RT
singlefile_galaxyPath = args_vec[13], # @COMMAND_FILE_LOAD@
singlefile_sampleName = args_vec[14] # @COMMAND_FILE_LOAD@
singlefile_galaxyPath = args_vec[14], # @COMMAND_FILE_LOAD@
singlefile_sampleName = args_vec[16] # @COMMAND_FILE_LOAD@
)

# Check if the 'rules' argument in 'args' is NULL
Expand Down Expand Up @@ -198,7 +198,7 @@ ncols <- length(colnames(peakList))
sample_cols <- length(xa@sample) # Number of samples

# Indices for the columns of interest
main_cols <- 1:(ncols - (3 + sample_cols)) # Main columns before sample columns
main_cols <- 1:(ncols - (6 + sample_cols)) # Main columns before sample columns
tail_cols <- (ncols - 2):ncols # The last 3 columns (adduct, isotope, pcgroup)

# Combine the selected columns from matgrp with the group names
Expand Down
6 changes: 3 additions & 3 deletions tools/camera/CAMERA_findIsotopes.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ args <- list(
convertRTMinute = as.logical(args_vec[9]), # TRUE - FALSE
numDigitsMZ = as.numeric(args_vec[10]), # Number of digits MZ
numDigitsRT = as.numeric(args_vec[11]), # Number of digits RT
singlefile_galaxyPath = args_vec[12], # @COMMAND_FILE_LOAD@
singlefile_sampleName = args_vec[13] # @COMMAND_FILE_LOAD@
singlefile_galaxyPath = args_vec[13], # @COMMAND_FILE_LOAD@
singlefile_sampleName = args_vec[15] # @COMMAND_FILE_LOAD@
)

print("Converted arguments:")
Expand Down Expand Up @@ -196,7 +196,7 @@ ncols <- length(colnames(peakList))
sample_cols <- length(xa@sample) # Number of samples

# Indices for the columns of interest
main_cols <- 1:(ncols - (3 + sample_cols)) # Main columns before sample columns
main_cols <- 1:(ncols - (6 + sample_cols)) # Main columns before sample columns
tail_cols <- (ncols - 2):ncols # The last 3 columns (adduct, isotope, pcgroup)

# Combine the selected columns from matgrp with the group names
Expand Down
6 changes: 3 additions & 3 deletions tools/camera/CAMERA_groupCorr.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ args <- list(
numDigitsMZ = as.numeric(args_vec[10]), # Digits for MZ "customname"
numDigitsRT = as.numeric(args_vec[11]), # Digits for RT "customname"
convertRTMinute = as.logical(args_vec[12]), # TRUE - FALSE
singlefile_galaxyPath = args_vec[13], # @COMMAND_FILE_LOAD@
singlefile_sampleName = args_vec[14] # @COMMAND_FILE_LOAD@
singlefile_galaxyPath = args_vec[14], # @COMMAND_FILE_LOAD@
singlefile_sampleName = args_vec[16] # @COMMAND_FILE_LOAD@
)

print("Converted arguments:")
Expand Down Expand Up @@ -171,7 +171,7 @@ ncols <- length(colnames(peakList))
sample_cols <- length(xa@sample) # Number of samples

# Indices for the columns of interest
main_cols <- 1:(ncols - (3 + sample_cols)) # Main columns before sample columns
main_cols <- 1:(ncols - (6 + sample_cols)) # Main columns before sample columns
tail_cols <- (ncols - 2):ncols # The last 3 columns (adduct, isotope, pcgroup)

# Combine the selected columns from matgrp with the group names
Expand Down
6 changes: 3 additions & 3 deletions tools/camera/CAMERA_groupFWHM.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ args <- list(
convertRTMinute = as.logical(args_vec[5]), # TRUE - FALSE
numDigitsMZ = as.numeric(args_vec[6]), # Number of digits MZ
numDigitsRT = as.numeric(args_vec[7]), # Number of digits RT
singlefile_galaxyPath = args_vec[8], # @COMMAND_FILE_LOAD@
singlefile_sampleName = args_vec[9] # @COMMAND_FILE_LOAD@
singlefile_galaxyPath = args_vec[9], # @COMMAND_FILE_LOAD@
singlefile_sampleName = args_vec[11] # @COMMAND_FILE_LOAD@
)

print("Converted arguments:")
Expand Down Expand Up @@ -186,7 +186,7 @@ ncols <- length(colnames(peakList))
sample_cols <- length(xa@sample) # Number of samples

# Indices for the columns of interest
main_cols <- 1:(ncols - (3 + sample_cols)) # Main columns before sample columns
main_cols <- 1:(ncols - (6 + sample_cols)) # Main columns before sample columns
tail_cols <- (ncols - 2):ncols # The last 3 columns (adduct, isotope, pcgroup)

# Combine the selected columns from matgrp with the group names
Expand Down
6 changes: 3 additions & 3 deletions tools/camera/findAdducts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
</outputs>
<tests>
<test>
<param name="image" value="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.groupCorr.findIsotopes.RData" />
<param name="image" value="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.groupCorr.findIsotopes.RData" />
<!--<param name="ppm" value="5" />
<param name="mzabs" value="0.015" />
<param name="polarity" value="positive" />
Expand All @@ -121,8 +121,8 @@
<param name="max_peaks" value="100" />
<param name="psg_list" value="NULL" />-->
<expand macro="test_file_load_single"/>
<output name="variableMetadata" file="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.groupCorr.findIsotopes.findAdducts.variableMetadata.tsv" />
<output name="camera_findAdducts_rdata" file="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.groupCorr.findIsotopes.findAdducts.RData" />
<output name="variableMetadata" file="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.groupCorr.findIsotopes.findAdducts.variableMetadata.tsv" />
<output name="camera_findAdducts_rdata" file="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.groupCorr.findIsotopes.findAdducts.RData" />
</test>
</tests>
<help><![CDATA[
Expand Down
6 changes: 3 additions & 3 deletions tools/camera/findIsotopes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</outputs>
<tests>
<test>
<param name="image" value="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.groupCorr.RData" />
<param name="image" value="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.groupCorr.RData" />
<!--<param name="maxcharge" value="3" />
<param name="maxiso" value="4" />
<param name="ppm" value="5" />
Expand All @@ -59,8 +59,8 @@
<param name="minfrac" value="0.5" />
<param name="filter" value="FALSE" />-->
<expand macro="test_file_load_single"/>
<output name="variableMetadata" file="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.groupCorr.findIsotopes.variableMetadata.tsv" />
<output name="camera_findIsotopes_rdata" file="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.groupCorr.findIsotopes.RData" />
<output name="variableMetadata" file="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.groupCorr.findIsotopes.variableMetadata.tsv" />
<output name="camera_findIsotopes_rdata" file="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.groupCorr.findIsotopes.RData" />
</test>
</tests>
<help><![CDATA[
Expand Down
6 changes: 3 additions & 3 deletions tools/camera/groupCorr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</outputs>
<tests>
<test>
<param name="image" value="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.RData" />
<param name="image" value="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.RData" />
<!--<param name="cor_eic_th" value="0.75" />
<param name="pval" value="0.05" />
<param name="graphMethod" value="hcs" />
Expand All @@ -68,8 +68,8 @@
<param name="cor_exp_th" value="0.75" />
<param name="intval" value="into" />-->
<expand macro="test_file_load_single"/>
<output name="variableMetadata" file="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.groupCorr.variableMetadata.tsv" />
<output name="camera_groupCorr_rdata" file="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.groupCorr.RData" />
<output name="variableMetadata" file="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.groupCorr.variableMetadata.tsv" />
<output name="camera_groupCorr_rdata" file="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.groupCorr.RData" />
</test>
</tests>
<help><![CDATA[
Expand Down
6 changes: 3 additions & 3 deletions tools/camera/groupFWHM.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@

<tests>
<test>
<param name="image" value="xset.merged.groupChromPeaks.fillChromPeaks.RData" />
<param name="image" value="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.RData" />
<!--<param name="sigma" value="6" />
<param name="perfwhm" value="0.6" />
<param name="intval" value="into" />-->
<expand macro="test_file_load_single"/>
<output name="variableMetadata" file="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.variableMetadata.tsv" />
<output name="camera_fwhm" file="xset.merged.groupChromPeaks.fillChromPeaks.fwhm.rdata" />
<output name="variableMetadata" file="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.variableMetadata.tsv" />
<output name="camera_fwhm" file="faahKO-single-class.xset.merged.group.retcor.group.fillpeaks.fwhm.rdata" />
</test>
</tests>
<help><![CDATA[
Expand Down

0 comments on commit da3a0af

Please sign in to comment.