-
Notifications
You must be signed in to change notification settings - Fork 480
Adding a new tool: read2tree #7318
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
base: main
Are you sure you want to change the base?
Conversation
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 for the submission. I added a few comments.
|
||
remote_repository_url: https://github.com/galaxyproject/tools-iuc/tree/main/tools/read2tree | ||
categories: | ||
- "Genomics Analysis" No newline at end of file |
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.
You need to use one of the categories of the toolshed.
@@ -0,0 +1,107 @@ | |||
<tool id="read2tree" name="Read2Tree" version="2.0.1" python_template_version="3.5"> |
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 a TOOL_VERSION
macro for the version? Like here: https://github.com/galaxyproject/tools-iuc/blob/main/tools/berokka/berokka.xml
rm -rf ./genes_dir; | ||
rm -rf ./output; |
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 not be needed. Every jobs gets a fresh working dir.
#set $i = 0 | ||
#for $f in $marker_genes | ||
#set $i = $i + 1 |
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.
#set $i = 0 | |
#for $f in $marker_genes | |
#set $i = $i + 1 | |
#for $i, $f in enumerate($marker_genes) |
#set $i = 0 | ||
#for $f in $marker_genes | ||
#set $i = $i + 1 | ||
ln -s -- `readlink -f $f` "./genes_dir/$i".fa; |
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 -- `readlink -f $f` "./genes_dir/$i".fa; | |
ln -s '$f' "./genes_dir/$i".fa; |
]]></command> | ||
|
||
<inputs> | ||
<param name="reads" type="data" multiple="true" format="fasta,fastq" label="Input reads in FASTA or FASTQ" |
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.
Use fastqsanger
and/or fastqillumina
instead of fastq.
Does the software accept gzipped data?
|
||
<!--param name="marker_genes" type="data" multiple="true" format="fasta" label="Marker genes"/--> | ||
|
||
<param name="marker_genes" type="data_collection" collection_type="list" |
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.
You could also use a data parameter with multiple="true"
. Users can still use collections. But there might be good reason for using a acollection?
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.
marker genes could be dozens or more files. I figured it's easier to upload them and build into a collection first than do multiple="true"
. Otherwise on the tool page the user has to select all them one by one again
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 you look at the tool form there are a few buttons left of the data selector (for data inputs with multiple="true"
)
Multiple datasets
: the user can select multiple datasetsDataset collection
the user can select a collection
That is collection input also works in this case. The only downside is that the element_identifiers
are not really useful for users choosing option 1.
I'm completely fine with collection input. Just wanted to make you aware.
|
||
<tests> | ||
<test> | ||
<param name="reads" value="sample_1.fastq,sample_2.fastq"/> |
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.
Guess the fastq files could be downsampled to reduce size?
<param name="marker_genes" type="data_collection" collection_type="list" | ||
label="Marker gene files" help="A set of reference orthologous groups, i.e. marker genes. See https://github.com/DessimozLab/read2tree for detail."/> | ||
|
||
<param name="dna_ref" type="data" format="fasta" label="DNA reference" |
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 seems to be optional? Could you add a few words to the help when this is needed and what it is?
@@ -0,0 +1,107 @@ | |||
<tool id="read2tree" name="Read2Tree" version="2.0.1" python_template_version="3.5"> |
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.
Add profile="24.0"
<param name="marker_genes" type="data_collection" collection_type="list" | ||
label="Marker gene files" help="A set of reference orthologous groups, i.e. marker genes. See https://github.com/DessimozLab/read2tree for detail."/> | ||
|
||
<param name="dna_ref" type="data" format="fasta" label="DNA reference" |
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 the argument
attribute instead of (or in addition to) name
</param> | ||
<param name="dna_ref" value="dna_ref.fa"/> | ||
<output name="output_tree"> | ||
<assert_contents> |
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.
maybe making this test a bit more stricter? For example by asserting the line count?
FOR CONTRIBUTOR:
As the title says, this request adds read2tree.