-
Notifications
You must be signed in to change notification settings - Fork 441
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
Add tracegroomer tool #5898
Add tracegroomer tool #5898
Conversation
switched to configfile and general wrapper updates
compatibility with tracegroomer 0.1.3
tools/tracegroomer/tracegroomer.xml
Outdated
<command detect_errors="exit_code"><![CDATA[ | ||
mkdir -p config && | ||
#if $sample_metadata_path: | ||
ln -s $sample_metadata_path ./sample_metadata.csv && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ln -s $sample_metadata_path ./sample_metadata.csv && | |
ln -s '$sample_metadata_path' ./sample_metadata.csv && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
tools/tracegroomer/tracegroomer.xml
Outdated
#end if | ||
#if $type_of_file.type_of_file_selector == "rule_tsv": | ||
#if $variable_metadata_path: | ||
ln -s $variable_metadata_path ./variableMetadata.tsv && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ln -s $variable_metadata_path ./variableMetadata.tsv && | |
ln -s '$variable_metadata_path' ./variableMetadata.tsv && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
tools/tracegroomer/tracegroomer.xml
Outdated
ln -s $variable_metadata_path ./variableMetadata.tsv && | ||
#end if | ||
#end if | ||
ln -s $param_file config/config.yaml && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ln -s $param_file config/config.yaml && | |
ln -s '$param_file' config/config.yaml && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
tools/tracegroomer/tracegroomer.xml
Outdated
#end if | ||
#end if | ||
ln -s $param_file config/config.yaml && | ||
cat config/config.yaml && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
tools/tracegroomer/tracegroomer.xml
Outdated
-lm '${labeled_metabo_file}' | ||
-tf '${type_of_file_selector}' | ||
#if $amount_material: | ||
--amountMaterial_path ${amount_material} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
single quote for all paths and text parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
tools/tracegroomer/tracegroomer.xml
Outdated
</section> | ||
<output file="isotopologuesCorrValues.tsv" name="isotopologuesCorrValues" ftype="tabular"/> | ||
</test> | ||
<!-- <test expect_num_outputs="3">--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what the problem with this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was the same problem we encoutered with DIMet when there are too many decimals in output test file. So i modified the input file for this test and it should works now
tools/tracegroomer/macros.xml
Outdated
<section name="advanced_options" title="Advanced options" expanded="false"> | ||
<param name="alternative_div_amount_material" type="boolean" value="true" label="add strip plot on abundance bar" help="When dividing values by the amount of material, also multiplies by mean(amountMaterial) to stay in abundance units"/> | ||
<param name="div_isotopologues_by_amount_material" type="boolean" value="true" label="isotopologues by amount material" help="Apply normalization by the amount of material, at the level of isotopologue absolute values. After this, re-computes all derived metrics. If False, only total abundances are normalized"/> | ||
<param name="use_internal_standard" type="text" optional="true" help="Internal Standard for performing the division: abundances/internal_standard, example: --use_internal_standard Myristic_acid_d27. By default is not performed." label="internal standard" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i added some explanation in help section and there is also a link to the wiki in the help section.
tools/tracegroomer/tracegroomer.xml
Outdated
@@ -0,0 +1,327 @@ | |||
<tool id="tracegroomer" name="@TOOL_LABEL@" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05"> | |||
<description> | |||
TraceGroomer is a solution for formatting and normalising Tracer metabolomics given file(s), to produce the .csv files which are ready for DIMet tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be shorter. It will be used in the tool panel and the tool bar, so as short as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in last commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello @bdartigues , if not too late, please make this short description to be: Format and normalise files for DIMet tool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
tools/tracegroomer/tracegroomer.xml
Outdated
TraceGroomer is a solution for formatting and normalising Tracer metabolomics given file(s), to produce the .csv files which are ready for DIMet tool. | ||
</description> | ||
<macros> | ||
<token name="@TOOL_LABEL@">tracegroomer</token> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TOOL_LABEL is only used one time, isn't it? Maybe that an overuse of macros :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in last commit
tools/tracegroomer/macros.xml
Outdated
</xml> | ||
<xml name="advanced_options"> | ||
<section name="advanced_options" title="Advanced options" expanded="false"> | ||
<param name="alternative_div_amount_material" type="boolean" value="true" label="alternative isotopologues division by amount material" help="In the normalisation by the amount of material, not only the division of the given absolute values by these amounts is performed, but also the product of the resulting quotients and the averaged amount of material is computed"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a boolean, you should use truevalue="--alternative_div_amount_material" falsvalue="" this will simplify the param here but also the command section (no if clause needed).
You can also use argument="--alternative_div_amount_material" here I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in last commit
tools/tracegroomer/tracegroomer.xml
Outdated
cp -rf '${MeanEnrichment13C}.tsv' '${MeanEnrichment13C}' && | ||
cp -rf '${IsotopologuesProp}.tsv' '${IsotopologuesProp}' && | ||
cp -rf '${IsotopologuesAbs}.tsv' '${IsotopologuesAbs}' | ||
#end if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if else if?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in last commit
…n truevalue,falsevalue and argument attributes + repalce multiple if by if else
a last revision of the short description in course. |
Thanks @bdartigues and @johaGL! |
FOR CONTRIBUTOR: