Skip to content
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

Merged
merged 36 commits into from
Mar 28, 2024
Merged

Add tracegroomer tool #5898

merged 36 commits into from
Mar 28, 2024

Conversation

bdartigues
Copy link
Contributor

@bdartigues bdartigues commented Mar 21, 2024

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

<command detect_errors="exit_code"><![CDATA[
mkdir -p config &&
#if $sample_metadata_path:
ln -s $sample_metadata_path ./sample_metadata.csv &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ln -s $sample_metadata_path ./sample_metadata.csv &&
ln -s '$sample_metadata_path' ./sample_metadata.csv &&

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

#end if
#if $type_of_file.type_of_file_selector == "rule_tsv":
#if $variable_metadata_path:
ln -s $variable_metadata_path ./variableMetadata.tsv &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ln -s $variable_metadata_path ./variableMetadata.tsv &&
ln -s '$variable_metadata_path' ./variableMetadata.tsv &&

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

ln -s $variable_metadata_path ./variableMetadata.tsv &&
#end if
#end if
ln -s $param_file config/config.yaml &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ln -s $param_file config/config.yaml &&
ln -s '$param_file' config/config.yaml &&

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

#end if
#end if
ln -s $param_file config/config.yaml &&
cat config/config.yaml &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

-lm '${labeled_metabo_file}'
-tf '${type_of_file_selector}'
#if $amount_material:
--amountMaterial_path ${amount_material}
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

</section>
<output file="isotopologuesCorrValues.tsv" name="isotopologuesCorrValues" ftype="tabular"/>
</test>
<!-- <test expect_num_outputs="3">-->
Copy link
Member

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?

Copy link
Contributor Author

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

<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" />
Copy link
Member

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.

Copy link
Contributor Author

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.

@bdartigues bdartigues requested a review from bgruening March 27, 2024 11:38
@@ -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.
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in last commit

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

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>
Copy link
Member

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 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in last commit

</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"/>
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in last commit

cp -rf '${MeanEnrichment13C}.tsv' '${MeanEnrichment13C}' &&
cp -rf '${IsotopologuesProp}.tsv' '${IsotopologuesProp}' &&
cp -rf '${IsotopologuesAbs}.tsv' '${IsotopologuesAbs}'
#end if
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if else if?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in last commit

@bdartigues bdartigues requested a review from bgruening March 27, 2024 15:40
@johaGL
Copy link
Contributor

johaGL commented Mar 27, 2024

a last revision of the short description in course.

@bgruening bgruening merged commit 6a049d6 into galaxyproject:main Mar 28, 2024
11 checks passed
@bgruening
Copy link
Member

Thanks @bdartigues and @johaGL!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants