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

Update Plasmid finder #4845

Merged
merged 90 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
4470654
rebuild test for summary
pimarin Jul 7, 2022
33682bb
Merge branch 'recentrifuge' of github.com:pimarin/tools-iuc into rece…
pimarin Aug 4, 2022
6b308b5
add the html summary output as a one html file with all the sample ou…
pimarin Aug 4, 2022
bcb44d0
update version tool
pimarin Aug 4, 2022
695880b
update test log files
pimarin Aug 5, 2022
e9feaaa
change version of the update, test files, and indentation
pimarin Aug 16, 2022
8011a34
update test file for the 4 test
pimarin Aug 16, 2022
dcdc64c
PR for shovill and bam files
pimarin Aug 16, 2022
969b7fb
update from comments
pimarin Aug 16, 2022
aebd844
update test data and xml file for element identifier and re lib
pimarin Aug 16, 2022
079075d
update log diff for test 4 and add {} for identifier and extension file
pimarin Aug 16, 2022
b2e8ded
restore &&
pimarin Aug 16, 2022
652eff6
ok
pimarin Aug 16, 2022
07a1cd4
restore test 4
pimarin Aug 16, 2022
a910543
remove the edam section
pimarin Aug 18, 2022
1117037
remove the echo test and corrige the if test
pimarin Aug 18, 2022
73e9612
update logfile option
pimarin Aug 22, 2022
9d1da45
in progress
pimarin Aug 22, 2022
dd2b4b8
change filter option for bam file
pimarin Aug 22, 2022
df153de
new tool isescan
pimarin Aug 22, 2022
7f7d4f8
first draft of isescan
pimarin Aug 23, 2022
7d1764a
line_diff
pimarin Aug 23, 2022
950a18c
diff line
pimarin Aug 23, 2022
90cd6aa
failed to extract output files
pimarin Aug 26, 2022
3d64e5f
add a symlink to retrieve all output files
pimarin Aug 31, 2022
8af0175
fix number of output and filter for the logfile
pimarin Sep 1, 2022
bbb4a23
fix the logfile test
pimarin Sep 1, 2022
d76a65d
Merge branch 'master' into isescan
pimarin Sep 1, 2022
777d761
Update isescan.xml
bgruening Sep 1, 2022
699d212
not finished to fix all remarks
pimarin Sep 2, 2022
852018d
update test
pimarin Sep 9, 2022
5384bd2
resolve some indentation error
pimarin Sep 13, 2022
99b91f3
proper information for bam file
pimarin Sep 15, 2022
ec0e030
add a lines_diff for bam file
pimarin Sep 15, 2022
06a432c
check test 7
pimarin Sep 15, 2022
b46fbdf
try solve error in bam file
pimarin Sep 15, 2022
1e7af3c
test bam file using size estimation
pimarin Sep 15, 2022
eded1f8
PR for shovill and bam files
pimarin Aug 16, 2022
32cc507
ok
pimarin Aug 16, 2022
09fe81e
restore test 4
pimarin Aug 16, 2022
c8a2277
remove the edam section
pimarin Aug 18, 2022
96f590d
in progress
pimarin Aug 22, 2022
9e55871
change filter option for bam file
pimarin Aug 22, 2022
fcff59c
not finished to fix all remarks
pimarin Sep 2, 2022
f4f6a30
update test
pimarin Sep 9, 2022
a971a35
resolve some indentation error
pimarin Sep 13, 2022
6c5c107
proper information for bam file
pimarin Sep 15, 2022
a6f877e
add a lines_diff for bam file
pimarin Sep 15, 2022
6f3fe98
check test 7
pimarin Sep 15, 2022
255ec48
try solve error in bam file
pimarin Sep 15, 2022
586331d
test bam file using size estimation
pimarin Sep 15, 2022
b230985
first draft of isescan
pimarin Aug 23, 2022
c7eda03
line_diff
pimarin Aug 23, 2022
6d3d06f
diff line
pimarin Aug 23, 2022
9a263d8
failed to extract output files
pimarin Aug 26, 2022
b430df0
add a symlink to retrieve all output files
pimarin Aug 31, 2022
a639920
Merge branch 'isescan' of github.com:pimarin/tools-iuc into isescan
pimarin Sep 16, 2022
40c6170
Merge branch 'recentrifuge'
pimarin Sep 16, 2022
e34c970
Merge pull request #1 from pimarin/isescan
pimarin Sep 16, 2022
3c9e728
Merge branch 'shovill' of github.com:pimarin/tools-iuc into shovill
pimarin Sep 16, 2022
ded57a5
remove shovill.bam
pimarin Sep 16, 2022
4a0ef30
Merge branch 'shovill'
pimarin Sep 16, 2022
303c3d3
Merge branch 'master' of github.com:pimarin/tools-iuc
pimarin Sep 16, 2022
6c5b769
Merge branch 'galaxyproject:master' into master
pimarin Sep 19, 2022
dcfc015
PR for shovill and bam files
pimarin Aug 16, 2022
d88eee8
ok
pimarin Aug 16, 2022
1de5987
restore test 4
pimarin Aug 16, 2022
2281530
remove the edam section
pimarin Aug 18, 2022
82a3edd
in progress
pimarin Aug 22, 2022
8a3ebf1
change filter option for bam file
pimarin Aug 22, 2022
0460374
not finished to fix all remarks
pimarin Sep 2, 2022
d34c74a
update test
pimarin Sep 9, 2022
89a68ce
resolve some indentation error
pimarin Sep 13, 2022
f006b77
proper information for bam file
pimarin Sep 15, 2022
5d74e9c
add a lines_diff for bam file
pimarin Sep 15, 2022
760ab54
check test 7
pimarin Sep 15, 2022
f40bc75
try solve error in bam file
pimarin Sep 15, 2022
1ee1193
test bam file using size estimation
pimarin Sep 15, 2022
eea612c
remove shovill.bam
pimarin Sep 16, 2022
b52f796
Bakta update to 1.5.0 (#4787)
pimarin Sep 16, 2022
ca072f9
Add HAPO-G: assembly polishing (#4786)
abretaud Sep 16, 2022
640bfb3
Merge branch 'master' of github.com:pimarin/tools-iuc
pimarin Sep 26, 2022
3af5d8d
Merge branch 'master' of https://github.com/galaxyproject/tools-iuc
pimarin Sep 26, 2022
a7bd2bf
Merge branch 'galaxyproject:master' into master
pimarin Sep 27, 2022
45437f0
restore the isescan
pimarin Sep 27, 2022
caa5540
not working with docker
pimarin Sep 27, 2022
96a7f68
remove the format file
pimarin Sep 27, 2022
c357cce
increase version
bgruening Oct 14, 2022
666cc33
rename the plasmidfinder_db.loc
pimarin Oct 14, 2022
b0fae0e
Merge branch 'plasmid_finder' of github.com:pimarin/tools-iuc into pl…
pimarin Oct 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PR for shovill and bam files
  • Loading branch information
pimarin committed Sep 16, 2022
commit eded1f86bb5acf815f2cc9e5cf6ee41fd19d1153
86 changes: 68 additions & 18 deletions tools/shovill/shovill.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<tool id="shovill" name="Shovill" version="@TOOL_VERSION@+galaxy1">
<tool id="shovill" name="Shovill" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
<description>Faster SPAdes assembly of Illumina reads</description>
<xrefs>
<xref type="bio.tools">shovill</xref>
</xrefs>
<macros>
<token name="@TOOL_VERSION@">1.1.0</token>
<token name="@VERSION_SUFFIX@">1</token>
</macros>
<edam_topics>
<edam_topic>topic_0525</edam_topic>
</edam_topics>
<xrefs>
<xref type="bio.tools">shovill</xref>
</xrefs>
<requirements>
<requirement type="package" version="@TOOL_VERSION@">shovill</requirement>
</requirements>
Expand All @@ -19,10 +23,10 @@
#set r2_ext = $library.R2.extension
#if $r1_ext == 'fastqsanger.gz' or $r1_ext == 'fastqsanger.bz2'
cp '$library.R1' fastq_r1.'$r1_ext' &&
cp '$library.R2' fastq_r2.'$r2_ext' &&
cp '$library.R2' fastq_r2.'$r2_ext' &&
#else
ln -s '$library.R1' fastq_r1.'$r1_ext' &&
ln -s '$library.R2' fastq_r2.'$r2_ext' &&
ln -s '$library.R2' fastq_r2.'$r2_ext' &&
#end if
#else if str($library.lib_type) == "collection"
#set r1_ext = $library.input1.forward.extension
Expand All @@ -42,7 +46,6 @@
## (3) Or default to 4 GB if GALAXY_MEMORY_MB is unset
GALAXY_MEMORY_GB=\$((\${GALAXY_MEMORY_MB:-4096}/1024)) &&
SHOVILL_RAM=\${SHOVILL_RAM:-\${GALAXY_MEMORY_GB}} &&

shovill
--outdir 'out'
--cpus \${GALAXY_SLOTS:-1}
Expand All @@ -61,7 +64,11 @@
#if $adv.opts
--opts '$adv.opts'
#end if
$adv.nocorr
#if $adv.keep_files.nocorr == 'no_correction'
--nocorr
#else
$adv.keep_files.keepfiles
#end if
--minlen $adv.minlen
--mincov $adv.mincov
--assembler $assembler
Expand Down Expand Up @@ -104,20 +111,34 @@
<param name="gsize" argument="--gsize" type="text" value="" label="Estimated genome size" help="An estimate of the final genome size, it will autodetect if this is blank. (default: '')" />
<param name="kmers" argument="--kmers" type="text" value="" label="List of kmer sizes to use" help="List of K-mer sizes to use in SPAdes. Blank is AUTO. default: ''" />
<param name="opts" argument="--opts" type="text" value="" label="Extra SPAdes options" help="eg. --plasmid --sc ... (default: '')" />
<param name="nocorr" argument="--nocorr" type="boolean" truevalue="--nocorr" falsevalue="" checked="True" label="Disable post-assembly correction" help="Disable post assembly correction with pilon (default: ON)" />
<conditional name="keep_files">
<param name="nocorr" argument="--nocorr" type="select" label="Disable post-assembly correction" help="Disable post assembly correction with pilon (default: ON)">
<option value="no_correction" selected="true">No corrections</option>
<option value="yes_correction">Post assembly corrections</option>
</param>
<when value="no_correction"/>
<when value="yes_correction">
<param name="keepfiles" argument="--keepfiles" type="boolean" truevalue="--keepfiles" checked="False" falsevalue="" label="Keep bam files" help="Keep bam files only if post-assembly correction is enable"/>
</when>
</conditional>
<param name="minlen" argument="--minlen" type="integer" value="0" label="Minimum contig length" help="Minimum length of contig to be output. 0 is AUTO (default: 0)" />
<param name="mincov" argument="--mincov" type="integer" value="2" label="Minimum contig coverage" help="Minimum coverage to call part of a contig. 0 is AUTO (default: 2)" />
</section>
</inputs>

<outputs>
<data name="shovill_std_log" format="txt" label="${tool.name} on ${on_string} Log file" from_work_dir="out/shovill.log" >
<filter>log</filter>
</data>
<data format="fasta" name="contigs" label="${tool.name} on ${on_string}: Contigs" from_work_dir="out/contigs.fa"/>
<data format="txt" name="contigs_graph" label="${tool.name} on ${on_string}: Contig Graph" from_work_dir="out/contigs.gfa"/>
</outputs>
<data name="contigs" format="fasta" label="${tool.name} on ${on_string}: Contigs" from_work_dir="out/contigs.fa"/>
<data name="contigs_graph" format="txt" label="${tool.name} on ${on_string}: Contig Graph" from_work_dir="out/contigs.gfa"/>
<data name="bamfiles" format="bam" label="Bam file for ${tool.name} on ${on_string}">
<filter>keep_files['nocorr'] == 'yes_correction' and keepfiles == 'True' </filter>
</data>
<data name="baifiles" format="bai" label="Index bam file for ${tool.name} on ${on_string}">
<filter>keep_files['nocorr'] == 'yes_correction' and keepfiles == 'True' </filter>
</data>

</outputs>
<tests>
<test> <!-- Test 1: Basic test -->
<param name="lib_type" value="paired" />
Expand All @@ -134,8 +155,8 @@
<has_text text="[lighter] Processed 820 reads"/>
<has_text text="[FLASH] FLASH v1.2.11 complete!"/>
<has_text text="[spades] ======= SPAdes pipeline finished."/>
</assert_contents>
</output>
</assert_contents>
</output>
</test>
<test> <!-- Test 2: Auto everything + trim + different name format test -->
<param name="lib_type" value="paired" />
Expand All @@ -146,7 +167,9 @@
<param name="depth" value="0"/>
<param name="minlen" value="0"/>
<param name="mincov" value="0"/>
<param name="nocorr" value="false"/>
<conditional name="keep_files">
<param name="nocorr" value="yes_correction"/>
</conditional>
<param name="namefmt" value="contig%03d"/>
</section>
<output name="contigs" ftype="fasta">
Expand Down Expand Up @@ -174,7 +197,7 @@
<output name="contigs" ftype="fasta">
<assert_contents>
<has_text text="&gt;contig00001"/>
</assert_contents>
</assert_contents>
</output>
<output name="shovill_std_log" ftype="txt" >
<assert_contents>
Expand All @@ -190,7 +213,7 @@
<param name="R1" value="mutant_R1.fastq" ftype="fastqsanger" />
<param name="R2" value="mutant_R2.fastq" ftype="fastqsanger" />
<param name="assembler" value="skesa" />
<output name="contigs" ftype="fasta">
<output name="contigs" value="contigs.fa" ftype="fasta">
<assert_contents>
<has_text text="&gt;contig00001"/>
</assert_contents>
Expand Down Expand Up @@ -242,6 +265,32 @@
</assert_contents>
</output>
</test>
<test expect_num_outputs="5"> <!-- Test 7: Add keepfiles option -->
<param name="lib_type" value="paired" />
<param name="R1" value="mutant_R1.fastq" ftype="fastqsanger" />
<param name="R2" value="mutant_R2.fastq" ftype="fastqsanger" />
<section name="adv">
<conditional name="keep_files">
<param name="nocorr" value="yes_correction" />
<param name="keepfiles" value="true" />
</conditional>
</section>
<output name="contigs" ftype="fasta">
<assert_contents>
<has_text text="&gt;contig00001"/>
</assert_contents>
</output>
<output name="shovill_std_log" ftype="txt" lines_diff="4" >
<assert_contents>
<has_text text="Read stats: total_bp = 300000"/>
<has_text text="[lighter] Processed 820 reads"/>
<has_text text="[FLASH] FLASH v1.2.11 complete!"/>
<has_text text="[spades] ======= SPAdes pipeline finished."/>
</assert_contents>
</output>
<output name="bamfiles" ftype="bam" value="shovill.bam" lines_diff="1"/>
<output name="baifiles" ftype="bai" value="shovill.bam.bai" lines_diff="1"/>
</test>
</tests>
<help><![CDATA[
Synopsis:
Expand All @@ -260,6 +309,7 @@ Advanced options:
- List of kmers to use: List of K-mer sizes to use in SPAdes. Blank is AUTO. (default: '')
- Extra SPAdes options: Extra SPAdes options eg. --plasmid --sc ... (default: '')
- Disable post-assembly correction: Disable post assembly correction with pilon (default: ON)
- Keep the bam files : Enable to keep mapped files from bwa in the post assembly correction (default: OFF)
- Minimum contig length: Minimum length of contig to be output. 0 is AUTO (default: 0)
- Minimum contig coverage: Minimum coverage to call part of a contig. 0 is AUTO (default: 2)
- Spades result to correct: Spades result to correct: before_rr, contigs or scaffolds (default: 'contigs')
Expand Down
42 changes: 20 additions & 22 deletions tools/shovill/test-data/contigs.fa
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
>contig00001 len=14151 cov=4.0 corr=0 spades=NODE_1_length_14151_cov_3.95289_pilon
GAAGAAGTAAAAAAGGGCTATTTTCCAATCAAACGTGCGATTGACTTGGTATTAAGTATC
GTTTTATTATTTTTAACATTTCCGATTATGTTCATATTCGCCATTGCTATCGTCATAGAT
TCGCCAGGAAACCCTATTTATAGTCAGGTTAGAGTTGGGAAGATGGGTAAATTAATTAAA
ATATACAAATTACGTTCGATGTGTAAAAACGCAGAGAAAAACGGTGCGCAATGGGCTGAT
AAAGATGATGATCGTATAACAAATGTCGGGAAGTTTATTCGTAAAACACGCATTGATGAA
TTACCACAACTAATTAATGTTGTTAAAGGGGAAATGAGTTTTATTGGACCACGCCCGGAA
CGTCCAGAATTTGTAGAATTATTTAGTTCAGAAATAATAGGATTTGAGCAAAGATGTCTT
GTTACACCAGGATTAACAGGTCTTGCGCAAATTCAAGGTGGATATGACTTAACACCACAA
CAAAAATTAAAATATGACATGAAATATATACATAAAGGTAGCTTAATGATGGAATTATAT
ATATCAATTAGAACATTGATGGTTGTTATTACAGGGGAAGGCTCAAGGTAGTCTTAATTT
GCTTAATAAGTTTAAATAAAAGTTACATTTTAAAGATTGTGACCAATTGTTACAGTATAA
CGAGGAATCCCTTGAGACAGTATCAAATGGCATTAAGAAATATTTGCCATCATTGATTTG
CATGGCTATAAATACTATTCATCTGATGAGATAGCCATGTTAAGAAATTGAAAGTATAGC
ATTAAAGGGGTTTGTAACAGTTGAAAATTATATATTGTATTACTAAAGCAGATAATGGTG
GTGCACAAACACATCTCATTCAACTCGCTAACCATTTTTGCGTACACCATGATGTTTATG
TCATTGTAGGCAATCATGGACCAATGATTGAACAACTAGATGCAAGAGTCAATGTAATTA
TTATCGAACATTTAGTAGGTCCAATTGACTTTAAACAAGATATTTTAGCTGTCAAAGTGT
TAGCACAGTTATTCTCGAAAATTAAACCTGATGTTATCCATCTACATTCTTCCAAAGCTG
GAACGGTCGGACGAATTGCGAAGTTCATTTCGAAATCGAAAGACACACGTGTAGTTTTTA
CTGCGCATGGATGGGCTTTTACAGAGGGTGTTAAACCAGCTAAAAAATTTCTATATCTAG
TTATTGAAAAATTAATGTCACGTATTACAGATAGCATTATTTGTGTTTCAGATTTCGATA
>contig00001 len=1129 cov=61.4 corr=0 origname=Contig_1_61.3517 sw=shovill-skesa/1.1.0 date=20220816
TAGAAATTTTTTAGCTGGTTTAACACCCTCTGTAAAAGCCCATCCATGCGCAGTAAAAAC
TACACGTGTGTCTTTCGATTTCGAAATGAACTTCGCAATTCGTCCGACCGTTCCAGCTTT
GGAAGAATGTAGATGGATAACATCAGGTTTAATTTTCGAGAATAACTGTGCTAACACTTT
GACAGCTAAAATATCTTGTTTAAAGTCAATTGGACCTACTAAATGTTCGATAATAATTAC
ATTGACTCTTGCATCTAGTTGTTCAATCATTGGTCCATGATTGCCTACAATGACATAAAC
ATCATGGTGTACGCAAAAATGGTTAGCGAGTTGAATGAGATGTGTTTGTGCACCACCATT
ATCTGCTTTAGTAATACAATATATAATTTTCAACTGTTACAAACCCCTTTAATGCTATAC
TTTCAATTTCTTAACATGGCTATCTCATCAGATGAATAGTATTTATAGCCATGCAAATCA
ATGATGGCAAATATTTCTTAATGCCATTTGATACTGTCTCAAGGGATTCCTCGTTATACT
GTAACAATTGGTCACAATCTTTAAAATGTAACTTTTATTTAAACTTATTAAGCAAATTAA
GACTACCTTGAGCCTTCCCCTGTAATAACAACCATCAATGTTCTAATTGATATATATAAT
TCCATCATTAAGCTACCTTTATGTATATATTTCATGTCATATTTTAATTTTTGTTGTGGT
GTTAAGTCATATCCACCTTGAATTTGCGCAAGACCTGTTAATCCTGGTGTAACAAGACAT
CTTTGCTCAAATCCTATTATTTCTGAACTAAATAATTCTACAAATTCTGGACGTTCCGGG
CGTGGTCCAATAAAACTCATTTCCCCTTTAACAACATTAATTAGTTGTGGTAATTCATCA
ATGCGTGTTTTACGAATAAACTTCCCGACATTTGTTATACGATCATCATCTTTATCAGCC
CATTGCGCACCGTTTTTCTCTGCGTTTTTACACATCGAACGTAATTTGTATATTTTAATT
AATTTACCCATCTTCCCAACTCTAACCTGACTATAAATAGGGTTTCCTGGCGAATCTATG
ACGATAGCAATGGCGAATATGAACATAATCGGAAATGTTAAAAATAATA
Empty file.
Empty file.
Loading