-
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 ChewBBACA #5899
add ChewBBACA #5899
Conversation
tools/chewbbaca/AlleleCall.xml
Outdated
mkdir ./input && | ||
mkdir ./schema && | ||
#for $file in $input_file | ||
cp $file ./input/${file.element_identifier} && |
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.
please single-quote all file-path
tools/chewbbaca/CreateSchema.xml
Outdated
<command detect_errors="exit_code"><![CDATA[ | ||
mkdir ./input && | ||
#for $file in $input_file | ||
cp $file ./input/${file.element_identifier} && |
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
cp $file ./input/${file.element_identifier} && | |
ln -sf '$file' './input/${file.element_identifier}' && |
working instead of copying?
tools/chewbbaca/CreateSchema.xml
Outdated
</test> | ||
</tests> | ||
<help><![CDATA[ | ||
chewBBACA version: 3.3.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.
Please create a useful help section, the parameters are already explained in the form, here you can describe the tool, the functionality and maybe where you can get the zip file from.
<expand macro="requirements" /> | ||
<command detect_errors="exit_code"><![CDATA[ | ||
mkdir ./schema && | ||
unzip $input_schema -d ./schema && |
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.
unzip $input_schema -d ./schema && | |
unzip '$input_schema' -d ./schema && |
tools/chewbbaca/macros.xml
Outdated
</xml> | ||
<xml name="citations"> | ||
<citations> | ||
<citation type="bibtex"> |
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.
why not citing here the real publication? 10.1099/mgen.0.000166
tools/chewbbaca/CreateSchema.xml
Outdated
<test expect_num_outputs="1"> | ||
<param name="input_file" value="CDS_Str_agalactiae.fasta"/> | ||
<param name="cds_input" value="true"/> | ||
<output name="schema" file="Str_agalactiae_cds.zip" compare="sim_size"/> |
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.
Instead of comparing the sim_size you can check for members in the archive: https://docs.galaxyproject.org/en/latest/dev/schema.html#has-archive-member
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.
Thanks! Yes that makes more sense. I have added it.
<assert_stdout> | ||
<has_text text="Schema is now available at"/> | ||
<has_text text="Finished at"/> | ||
</assert_stdout> |
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.
same here you can test the zip file content
tools/chewbbaca/JoinProfiles.xml
Outdated
<param argument="--common" type="boolean" truevalue="--common" falsevalue="" checked="false" label="Common" optional="true" help="Create file with profiles for the set of common loci" /> | ||
</inputs> | ||
<outputs> | ||
<data format="tsv" name="JoinedProfile" from_work_dir="JoinedProfile.tsv" label="${tool.name} on ${on_string}: Joined profiles"/> |
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.
Can you use format="tabular"
here?
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.
Yes, I updated it. But isn't it same?
tools/chewbbaca/JoinProfiles.xml
Outdated
<tests> | ||
<test> | ||
<param name="input1" value="results_alleles.tsv,results_alleles2.tsv"/> | ||
<output name="JoinedProfile" file="JoinedProfile.tsv" compare="sim_size"/> |
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.
Why sim_size here and not comparing by diff? Or using asserts?
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.
Updated it with compare="diff"
tools/chewbbaca/NSStats.xml
Outdated
<tests> | ||
<test> | ||
<param name="mode" value="species" /> | ||
<output name="NSStats" file="NSStats.txt" compare="sim_size" /> |
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.
sim_size is not a good test, its the least stringent test that we have and we should do better whenever we can ... please use diff or asserts
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.
Updated in any tool that has sim_size as test
<inputs> | ||
<param format="zip" name="input_schema" type="data" multiple="true" label="Schema Files in zip format" help="The schema directory contains the loci FASTA files and a folder named 'short' that contains the FASTA files with the loci representative alleles."/> | ||
<section name="advanced" title="Advanced options"> | ||
<param argument="--training-file" type="data" format="binary" label="Prodigal training file" optional="true" /> |
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.
format binary is strange? What is this file?
<test expect_num_outputs="1"> | ||
<param name="input_schema" value="GCA_000007265.1_ASM726v1_schema_seed.zip"/> | ||
<param name="size_filter" value="false"/> | ||
<output name="schema" file="GCA_000007265.1_ASM726v1_PExternalschema_seed.zip" compare="sim_size"/> |
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.
please use assserts here: https://docs.galaxyproject.org/en/latest/dev/schema.html#has-archive-member
Co-authored-by: Björn Grüning <[email protected]>
@bgruening the binary file is a file with ".trn" extention (called Prodigal training file). I tried to open it in VSCode and it says: The file is not displayed in the text editor because it is either binary or uses an unsupported text encoding. I googled the file and got this: the prodigal package provides 3 output formats GFF3, GenBank and Sequin table format. |
@@ -8,7 +8,7 @@ Contacts: [email protected] | |||
======================= | |||
chewBBACA - NSStats | |||
======================= | |||
Started at: 2024-04-03T10:24:19 | |||
Started at: 2024-04-11T17:01:56 |
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.
updating the time will not help much, if you have time in your diffs ... you need to allow for certain lines of difference with lines_diff
tools-iuc/tools/lofreq/lofreq_filter.xml
Line 210 in 26fe7d2
<output name="outvcf" file="call-out1.vcf" lines_diff="6" /> |
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.
Thanks.
I added line_diff="4"
and it passed the planemo test but here it got error, I put assert_contents
for the test.
Thanks, @nilchia for your first contribution! Great work - it was a complicated tool! |
Hooray 😃 , |
FOR CONTRIBUTOR: