-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #581 from KristinaGomoryova/findRecalSeries
Galaxy wrapper for MFAssignR::FindRecalSeries tool
- Loading branch information
Showing
9 changed files
with
131 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<tool id="mfassignr_findRecalSeries" name="MFAssignR FindRecalSeries" version="@TOOL_VERSION@+galaxy0" profile="23.0"> | ||
<description>Selects most suitable series for recalibration</description> | ||
<macros> | ||
<import>macros.xml</import> | ||
<import>help.xml</import> | ||
</macros> | ||
<edam_topics> | ||
<edam_topic>topic_3172</edam_topic> | ||
</edam_topics> | ||
<edam_operations> | ||
<edam_operation>operation_3627</edam_operation> | ||
</edam_operations> | ||
<expand macro="creator" /> | ||
<expand macro="refs" /> | ||
|
||
<expand macro="requirements" /> | ||
<command detect_errors="exit_code"><![CDATA[ | ||
Rscript -e 'packageVersion("MFAssignR")' && | ||
Rscript '${mfassignr_findrecalseries}' | ||
]]> | ||
</command> | ||
<configfiles> | ||
<configfile name="mfassignr_findrecalseries"><![CDATA[ | ||
library(dplyr) | ||
df <- read.table("$input_file", header=TRUE, sep="\t") | ||
result <- MFAssignR::FindRecalSeries( | ||
df = df, | ||
global_min = $global_min, | ||
global_max = $global_max, | ||
number_of_combinations = $number_of_combinations, | ||
abundance_score_threshold = $abundance_score_threshold, | ||
peak_distance_threshold = $peak_distance_threshold, | ||
coverage_threshold = $coverage_threshold, | ||
fill_series = $fill_series | ||
) |> dplyr::rename(Series = series) | ||
write.table(result, file="$final_series", sep="\t", row.names=FALSE) | ||
]]></configfile> | ||
</configfiles> | ||
<inputs> | ||
<expand macro="findrecalseries_param"/> | ||
</inputs> | ||
<outputs> | ||
<data name="final_series" format="tabular" label="Final recalibration series"/> | ||
</outputs> | ||
<tests> | ||
<test> | ||
<param name="input_file" value="recallist/recal_series.tabular"/> | ||
<param name="global_min" value="100"/> | ||
<param name="global_max" value="500"/> | ||
<param name="abundance_score_threshold" value="50"/> | ||
<param name="number_of_combinations" value="3"/> | ||
<param name="coverage_threshold" value="50"/> | ||
<param name="fill_series" value="TRUE"/> | ||
<output name="final_series" file="findrecalseries/selected_series.tabular"/> | ||
</test> | ||
</tests> | ||
<help> | ||
@FINDRECALSERIES_HELP@ | ||
|
||
@GENERAL_HELP@ | ||
</help> | ||
<expand macro="citations"/> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tools/mfassignr/test-data/findrecalseries/selected_series.tabular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"Series" "total_abundance" "total_series_length" "peak_proximity" "peak_distance_proximity" "series_id" "sum_score" | ||
"O_H_7" 437.136255030871 504.562 129.612788237483 2723.59808058946 "O_H_7 O2_H_6 O2_H_11" 3794.90912385781 | ||
"O2_H_6" 437.136255030871 504.562 129.612788237483 2723.59808058946 "O_H_7 O2_H_6 O2_H_11" 3794.90912385781 | ||
"O2_H_11" 437.136255030871 504.562 129.612788237483 2723.59808058946 "O_H_7 O2_H_6 O2_H_11" 3794.90912385781 | ||
"O4_H_11" 943.304144088114 392.438 134.36084248065 1826.47532994759 "O2_H_6 O2_H_11 O4_H_11" 3296.57831651636 | ||
"O3_H_12" 330.037060987448 364.407 135.12153276257 1826.47538570915 "O2_H_6 O3_H_12 O2_H_11" 2656.04097945917 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters