-
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 Fairy #6647
base: main
Are you sure you want to change the base?
Add Fairy #6647
Conversation
I know that there will be an error because of the format I can do it but i have to read and maybe ask question about it. I tried to use the tabular format but with this the tool had always erros possible because the bcsp is a binary file. |
i also get this error when i try to test
I dont know how this error happen but i will have a look at this the next couple of days. Maybe i can fix it somehow |
Yes. Is they documentation available? |
I think |
Yes and i found the right tab to it. I will read it and try it out! |
yes i didnt saw this typo yesterday thank you for the hint :) |
@bernt-matthias i have a question about adding a datatype. Do i have to add a sniffer or is this an optional function? |
Optional, I would say. |
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.
Added a few more comments.
tools/fairy/fairy_cov.xml
Outdated
<command detect_errors="exit_code"> | ||
<![CDATA[ | ||
|
||
ln -s '$contig' '$contig.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.
It's not a good idea to just use the element identifiers, since they might contain dangerous or forbidden characters. We usually solve this like so
tools-iuc/tools/coverm/macros.xml
Line 55 in 295026b
#set $fn = 'bam/' + re.sub('[^\s\w\-\\.]', '_', str($mapped.mode.bam_files.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.
Did change it on both wrappers
tools/fairy/fairy_cov.xml
Outdated
fairy coverage | ||
'$contig.element_identifier' | ||
'$bcsp_file.element_identifier' | ||
-t \${GALAXY_SLOTS:-8} |
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.
Double quotes around bash variables are often a good idea.
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.
should have done if i did understand it correct
tools/fairy/fairy_cov.xml
Outdated
-m ${minimum_ani} | ||
-M ${min_number_kmers} | ||
-c ${c} | ||
-k ${k.value} |
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 just $k
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.
change it
tools/fairy/fairy_cov.xml
Outdated
-k ${k.value} | ||
--min-spacing ${min_spacing} | ||
${full_contig_name} | ||
#if $output_type.value == 'semi': |
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.
Also here no .value
needed.
You could simplify this, by using the command line parameter as value in the options and then just use $output_value
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.
Change it and there is no need for the value. I just forgot it to remove it since it did work with it
tools/fairy/fairy_cov.xml
Outdated
<param name="contig" type="data" format="fasta,fasta.gz" label="Input fasta contig file" help="Input the raw fasta contig file. It can be gzip!"/> | ||
<param name="bcsp_file" type="data" format="bcsp" label="Input the pre-sketched file (.bcsp file)" help="This file will be generated with the fairy sketch tool."/> | ||
<param argument="--minimum-ani" type="integer" optional="true" min="0" max="100" value="95" label="Set minimum ANI" help="Set the minimum adjusted ANI for the coverage calculation. CARE: only adjust it when you know what it does!"/> | ||
<param argument="--min-number-kmers" type="integer" value="8" optional="true" label="Genome filter" help="Set the number for exclude genomes with less than this number of sampled k-mers."/> |
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.
Don't undersand this parameter. For the default sequences with less than 8 kmers are removed?
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 did rewrote this help, maybe it is better now to understand but yes this paramtere should be a filter to filter out genomes with less k-mers then this paramter
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 still do not understand this parameter. What does it mean if a genome has x k-mers?
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 means that a genome have less then x (the value of the parameter) k-mers it will execlude from the algorithm. It should not appear in the coverage file generated by Fairy. It this more cleare? And sorry for this missunderstanding
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.
Unfortunately no. I just do not understand what it means that a genome has a kmer. A genome of length n has n-k+1 kmers. There must be something special about the x kmers the help text is talking about.
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 x stands for a lower border to filter out genomes with less then x k-mers to not appear in the coverage file.
For an example there are 3 genome in a contig. The first hast 5 k-mers, the second has 10 k-mers and the last one has 8 k-mers. We set this paramter to a 7 which means that the first genome with 5 k-mers will not be included since it hast less then 7 k-mers. When we set this to 2 then there will be no excluding of a genome since all 3 has more then 2 k-mers.
Is this explenation better?
<param argument="--reads" type="data" format="fastqsanger,fasta,fastq,fasta.gz,fastq.gz" label="Input single-end reads"/> | ||
</when> | ||
<when value="pair"> | ||
<param argument="--first_pairs" type="data" format="fastqsanger,fasta,fastq,fasta.gz,fastq.gz" label="Input first paired-end reads"/> |
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 would prefer input as paired collection, at least add it as option.
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 this option with a test!
Will still fail since the datatype is not in galaxy yet |
FOR CONTRIBUTOR: