# HG changeset patch
# User iuc
# Date 1618789676 0
# Node ID 9d79beb19ac3ea2821f848c665187f9c212de5f7
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/merqury commit 561c3bcec49ecef9384b565861ccee11a377f7cd"
diff -r 000000000000 -r 9d79beb19ac3 macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,33 @@
+
+ 1.3
+
+
+ topic_0196
+
+
+ operation_0525
+
+
+
+
+ merqury
+ tar
+ findutils
+ coreutils
+
+
+
+
+
+ @misc{githubMerqury,
+ author = {Arang Rhie, Brian P. Walez, Sergey Koren, Adam M. Phillippy},
+ year = {2020},
+ title = {Merqury},
+ publisher = {GitHub},
+ journal = {GitHub repository},
+ url = {https://github.com/marbl/merqury},
+ }
+
+
+
+
diff -r 000000000000 -r 9d79beb19ac3 merqury.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/merqury.xml Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,444 @@
+
+ evaluate the assembly quality
+
+ macros.xml
+
+
+
+ merqury --version
+ assembly.fasta
+ #else
+ && ln -s '$mode.assembly_options.assembly_01' assembly.fasta
+ #end if
+ && merqury.sh read-db.meryl assembly.fasta ${label}
+ && mv ${label}* output_files
+ && find . -maxdepth 1 -name 'assembly_only*' -type f -print0 | xargs -0r mv -t output_files
+ #else
+ #if $mode.assembly_options.assembly_01.ext.endswith(".gz")
+ && gunzip -c $mode.assembly_options.assembly_01 > assembly_01.fasta
+ #else
+ && ln -s '$mode.assembly_options.assembly_01' assembly_01.fasta
+ #end if
+ #if $mode.assembly_options.assembly_02.ext.endswith(".gz")
+ && gunzip -c $mode.assembly_options.assembly_02 > assembly_02.fasta
+ #else
+ && ln -s '$mode.assembly_options.assembly_02' assembly_02.fasta
+ #end if
+ && merqury.sh read-db.meryl assembly_01.fasta assembly_02.fasta ${label}
+ && mv ${label}* output_files
+ && find . -maxdepth 1 -name 'assembly_only*' -type f -print0 | xargs -0r mv -t output_files
+ #end if
+ #else
+ && mkdir -p read-db.meryl pat.meryl mat.meryl
+ && tar -zxf ${mode.meryldb_F1} -C read-db.meryl --strip-components=1
+ && tar -zxf ${mode.meryldb_PAT} -C pat.meryl --strip-components=1
+ && tar -zxf ${mode.meryldb_MAT} -C mat.meryl --strip-components=1
+ #if $mode.assembly_options.number_assemblies == 'one'
+ #if $mode.assembly_options.assembly_01.ext.endswith(".gz")
+ && gunzip -c $mode.assembly_options.assembly_01 > assembly.fasta
+ #else
+ && ln -s '$mode.assembly_options.assembly_01' assembly.fasta
+ #end if
+ && merqury.sh read-db.meryl pat.meryl mat.meryl assembly.fasta ${label}
+ && mv ${label}* output_files
+ && find . -maxdepth 1 -name 'assembly_only*' -type f -print0 | xargs -0r mv -t output_files
+ #else
+ #if $mode.assembly_options.assembly_01.ext.endswith(".gz")
+ && gunzip -c $mode.assembly_options.assembly_01 > assembly_01.fasta
+ #else
+ && ln -s '$mode.assembly_options.assembly_01' assembly_01.fasta
+ #end if
+ #if $mode.assembly_options.assembly_02.ext.endswith(".gz")
+ && gunzip -c $mode.assembly_options.assembly_02 > assembly_02.fasta
+ #else
+ && ln -s '$mode.assembly_options.assembly_02' assembly_02.fasta
+ #end if
+ && merqury.sh read-db.meryl pat.meryl mat.meryl assembly_01.fasta assembly_02.fasta ${label}
+ && mv ${label}* output_files
+ && find . -maxdepth 1 -name 'assembly_only*' -type f -print0 | xargs -0r mv -t output_files
+ #end if
+ #end if
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r 000000000000 -r 9d79beb19ac3 test-data/assembly.fasta.gz
Binary file test-data/assembly.fasta.gz has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/assembly_02.fasta.gz
Binary file test-data/assembly_02.fasta.gz has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/child.meryldb
Binary file test-data/child.meryldb has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/mat.meryldb
Binary file test-data/mat.meryldb has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.assembly.100_20000.phased_block.blob.png
Binary file test-data/output_01.assembly.100_20000.phased_block.blob.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.assembly.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_01.assembly.bed Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,2 @@
+tig00000005 227845 227853 pat
+tig00000005 426764 426772 pat
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.assembly.block.N.png
Binary file test-data/output_01.assembly.block.N.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.assembly.contig.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_01.assembly.contig.tabular Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,8 @@
+contig assembly 732575
+contig assembly 684532
+contig assembly 512140
+contig assembly 437616
+contig assembly 367569
+contig assembly 295265
+contig assembly 56868
+contig assembly 27107
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.assembly.continuity.N.png
Binary file test-data/output_01.assembly.continuity.N.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.assembly.mat.spectra-cn.ln.png
Binary file test-data/output_01.assembly.mat.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.assembly.pat.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_01.assembly.pat.bed Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,3 @@
+tig00000005 227825 227850 0.2
+tig00000005 227850 227875 0.12
+tig00000005 426750 426775 0.32
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.assembly.pat.spectra-cn.ln.png
Binary file test-data/output_01.assembly.pat.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.assembly.spectra-cn.ln.png
Binary file test-data/output_01.assembly.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.hapmers.blob.png
Binary file test-data/output_01.hapmers.blob.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_01.switches.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_01.switches.txt Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,1 @@
+output_01.assembly.100_20000 switch error rate (%) (Num. switches / Total markers found): 0 2 0%
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_02.assembly.spectra-cn.fl.png
Binary file test-data/output_02.assembly.spectra-cn.fl.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_02.assembly.spectra-cn.ln.png
Binary file test-data/output_02.assembly.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_02.assembly.spectra-cn.st.png
Binary file test-data/output_02.assembly.spectra-cn.st.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_02.completeness.stats.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_02.completeness.stats.tabular Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,1 @@
+assembly all 193949 279149 69.4787
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_02.spectra-asm.fl.png
Binary file test-data/output_02.spectra-asm.fl.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_02.spectra-asm.ln.png
Binary file test-data/output_02.spectra-asm.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_02.spectra-asm.st.png
Binary file test-data/output_02.spectra-asm.st.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_02_qv.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_02_qv.tabular Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,1 @@
+assembly 2882439 3113584
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.assembly_01.spectra-cn.fl.png
Binary file test-data/output_03.assembly_01.spectra-cn.fl.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.assembly_01.spectra-cn.ln.png
Binary file test-data/output_03.assembly_01.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.assembly_01.spectra-cn.st.png
Binary file test-data/output_03.assembly_01.spectra-cn.st.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.assembly_02.spectra-cn.fl.png
Binary file test-data/output_03.assembly_02.spectra-cn.fl.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.assembly_02.spectra-cn.ln.png
Binary file test-data/output_03.assembly_02.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.assembly_02.spectra-cn.st.png
Binary file test-data/output_03.assembly_02.spectra-cn.st.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.completeness.stats.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_03.completeness.stats.tabular Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,3 @@
+assembly_01 all 193949 279149 69.4787
+assembly_02 all 64441 279149 23.0848
+both all 193949 279149 69.4787
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.spectra-asm.ln.png
Binary file test-data/output_03.spectra-asm.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.spectra-cn.fl.png
Binary file test-data/output_03.spectra-cn.fl.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.spectra-cn.ln.png
Binary file test-data/output_03.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03.spectra-cn.st.png
Binary file test-data/output_03.spectra-cn.st.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_03_qv.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_03_qv.tabular Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,3 @@
+assembly_01 2882439 3113584
+assembly_02 964973 1037945
+Both 3847412 4151529
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_01.100_20000.phased_block.blob.png
Binary file test-data/output_04.assembly_01.100_20000.phased_block.blob.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_01.100_20000.switch.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_04.assembly_01.100_20000.switch.bed Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,2 @@
+tig00000005 227845 227853 pat Same pat
+tig00000005 426764 426772 pat Same pat
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_01.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_04.assembly_01.bed Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,2 @@
+tig00000005 227845 227853 pat
+tig00000005 426764 426772 pat
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_01.block.N.png
Binary file test-data/output_04.assembly_01.block.N.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_01.contig.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_04.assembly_01.contig.tabular Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,8 @@
+contig assembly_01 732575
+contig assembly_01 684532
+contig assembly_01 512140
+contig assembly_01 437616
+contig assembly_01 367569
+contig assembly_01 295265
+contig assembly_01 56868
+contig assembly_01 27107
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_01.continuity.N.png
Binary file test-data/output_04.assembly_01.continuity.N.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_01.mat.spectra-cn.ln.png
Binary file test-data/output_04.assembly_01.mat.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_01.pat.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_04.assembly_01.pat.bed Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,3 @@
+tig00000005 227825 227850 0.2
+tig00000005 227850 227875 0.12
+tig00000005 426750 426775 0.32
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_01.pat.spectra-cn.ln.png
Binary file test-data/output_04.assembly_01.pat.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_01.sort.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_04.assembly_01.sort.bed Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,2 @@
+tig00000005 227845 227853 pat
+tig00000005 426764 426772 pat
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_02.contig.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_04.assembly_02.contig.tabular Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,2 @@
+contig assembly_02 732575
+contig assembly_02 305392
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_02.mat.spectra-cn.ln.png
Binary file test-data/output_04.assembly_02.mat.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.assembly_02.pat.spectra-cn.ln.png
Binary file test-data/output_04.assembly_02.pat.spectra-cn.ln.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.hapmers.blob.png
Binary file test-data/output_04.hapmers.blob.png has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04.switches.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_04.switches.txt Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,1 @@
+output_04.assembly_02.100_20000 switch error rate (%) (Num. switches / Total markers found):
diff -r 000000000000 -r 9d79beb19ac3 test-data/output_04_qv.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output_04_qv.tabular Sun Apr 18 23:47:56 2021 +0000
@@ -0,0 +1,1 @@
+Both
diff -r 000000000000 -r 9d79beb19ac3 test-data/pat.meryldb
Binary file test-data/pat.meryldb has changed
diff -r 000000000000 -r 9d79beb19ac3 test-data/read-db.meryldb
Binary file test-data/read-db.meryldb has changed