From fe9bc1410366ce33ebf4ac909ae04397c3f81a39 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Thu, 14 Mar 2024 14:53:12 +1100 Subject: [PATCH 01/27] add sam output - means no delta.out so some filters and a new test. Fixed many parameters with both name and argument making planemo lint upset. --- tools/mummer4/macros.xml | 6 +-- tools/mummer4/nucmer.xml | 65 ++++++++++++++++++++--------- tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/plot.png | Bin 6147 -> 0 bytes 4 files changed, 49 insertions(+), 24 deletions(-) diff --git a/tools/mummer4/macros.xml b/tools/mummer4/macros.xml index d5433d987e9..611ef8d8d9c 100644 --- a/tools/mummer4/macros.xml +++ b/tools/mummer4/macros.xml @@ -34,9 +34,9 @@ - - + @@ -54,7 +54,7 @@ - + diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index a859d2c2f8d..03f16403d75 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -11,8 +11,11 @@ - + + + + + + + @@ -76,7 +85,7 @@ help="Set the maximum diagonal difference between two adjacent anchors in a cluster. (-D)" /> - + @@ -85,9 +94,9 @@ - - @@ -95,16 +104,16 @@ - - + - + @@ -118,7 +127,7 @@ - + @@ -128,14 +137,20 @@ - + + out_format == "delta" + + + out_format != "delta" + mumplot['plot'] == 'yes' - + + @@ -143,6 +158,16 @@ + + + + + + + + + + NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/plot.png b/tools/mummer4/test-data/plot.png index 16f80abaf6db03379bb72e6cba2182b5352a3c6b..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 GIT binary patch literal 0 HcmV?d00001 literal 6147 zcmeHLX;@QN8om(rMTny8BnGr>BZ5{yAp{8!tfHa_ZUjL^lr`dlEJ?s(6d{QP`(W8B zu~-o>xFE7c3?&7HDX3sa2^gY9Fc9_x$eo*o4)&S((I4|m^JKj__k7>^mi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g7_JX~^uA6be<7;>sD0SW#FFCr#6WjXgY(D;92n%L*`0l(> zRK2X&_`kqU)bAtt+UK$OnG>cJn{}|O?=0uMDAT6~`#Rp*8s(n(LP%+@36l0gr}rbA ztEq!QZ=x4Hof)tDb_kgy>wu9x5?XRuF8EVo({NBr2C2eBM#`huK#(}GG zhJz?RbluSALIS;ACVJQ}y~Qtrv~&loeR40B2X(rKU9`U)!GxSmH6N%jMK5m;@qzBF z!^O(m@Da|?CSvx&@_IG6XSBZJPqqK_X#U5Rnr_eXH!(3}*4GHptPUzD~kW`&>S1fRT(HE4`Vt+>Ugi(u9 zI9~m__ly@koGEl^l#C0YqJ(Pp&!T*(COoB2Z^mFz3(M(AHfMA7s;DxI9z-3KfpJvB z$L&voI$dSrZY}MoOkGa^!8OmfB>J-;J+Khig|IO&*j7h< zsJ8an%OkTPM7_p>L^f-_>EwBCl|0}xC9CCyT(9WI8lmr3V0gpk2TQ#U?BMUz^wmwFao8H>P+udZuk}pE=ifTKq6ow<=17fTy9X zD?-xi>YJ|{4mvF>dKWFLCg7q;>(%N|Np?N{Rzyqz<*kD z1@-Z49J16|AnCsN>FFB6lruQ-d^7fzlmr(@r*IjkzVTSb$;#`{xtf$A6OSR^t@P#5 z$!@hvfqDOf9Uktl9wt}2 z;&zX0`7D#)u<71QNUp4?#xTjDo7KkT%&_vxKyUbXJ Date: Fri, 15 Mar 2024 14:39:41 +1100 Subject: [PATCH 02/27] Much pfaffing about - mummer creates malformed sam headers!! These need to be replaced for any conversions --- tools/mummer4/macros.xml | 10 +- tools/mummer4/nucmer.xml | 174 +++++++++++++++++++---------- tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/plot.png | Bin 0 -> 6147 bytes 4 files changed, 122 insertions(+), 64 deletions(-) diff --git a/tools/mummer4/macros.xml b/tools/mummer4/macros.xml index 611ef8d8d9c..c13ee1de7e9 100644 --- a/tools/mummer4/macros.xml +++ b/tools/mummer4/macros.xml @@ -2,7 +2,7 @@ - mumer4 + mummer4 @@ -10,16 +10,14 @@ 10.1371/journal.pcbi.1005944 - - gnuplot - 4.0.0rc1 - 2 + 1 20.05 mummer4 - + gnuplot + samtools diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 03f16403d75..805fff4d83a 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -5,7 +5,6 @@ - outsambody + && samtools dict reference.fa > outsamhead + && cat outsambody >> outsamhead + #if $outform.out_format in ['bam-short', 'bam-long']: + && samtools view -b -o bam_out.bam outsamhead + && samtools sort bam_out.bam -o outsam + && samtools index outsam + #else if $outform.out_format in ['cram-short', 'cram-long']: + && samtools view -C -o cram_out.cram -T reference.fa outsamhead && mv cram_out.cram outsam + && samtools index outsam + #else + && mv outsamhead outsam + #end if #end if ]]> - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -112,39 +181,22 @@ - - - - - - - - - - - - - - - - - - - - - - - - out_format == "delta" + outform["out_format"] == "delta" - - out_format != "delta" + + outform["out_format"] != "delta" + + + + + + - mumplot['plot'] == 'yes' + outform["out_format"] == "delta" and outform['mumplot']['plot'] == 'yes' @@ -160,13 +212,21 @@ - - + + - - + + + + + + + + + + NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/plot.png b/tools/mummer4/test-data/plot.png index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..16f80abaf6db03379bb72e6cba2182b5352a3c6b 100644 GIT binary patch literal 6147 zcmeHLX;@QN8om(rMTny8BnGr>BZ5{yAp{8!tfHa_ZUjL^lr`dlEJ?s(6d{QP`(W8B zu~-o>xFE7c3?&7HDX3sa2^gY9Fc9_x$eo*o4)&S((I4|m^JKj__k7>^miK+nxwymM zS69nK3jhFJKO8my0ANVzO9KX78LpVx2LMWzJGSoj20;+IQe0dt{a^tA31k5vAP}%H z0EYv3M)rd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0uMDAT6~`#Rp*8s(n(LP%+@36l0gr}rbA ztEq!QZ=x4Hof)tDb_kgy>wu9x5?XRuF8EVo({NBr2C2eBM#`huK#(}GG zhJz?RbluSALIS;ACVJQ}y~Qtrv~&loeR40B2X(rKU9`U)!GxSmH6N%jMK5m;@qzBF z!^O(m@Da|?CSvx&@_IG6XSBZJPqqK_X#U5Rnr_eXH!(3}*4GHptPUzD~kW`&>S1fRT(HE4`Vt+>Ugi(u9 zI9~m__ly@koGEl^l#C0YqJ(Pp&!T*(COoB2Z^mFz3(M(AHfMA7s;DxI9z-3KfpJvB z$L&voI$dSrZY}MoOkGa^!8OmfB>J-;J+Khig|IO&*j7h< zsJ8an%OkTPM7_p>L^f-_>EwBCl|0}xC9CCyT(9WI8lmr3V0gpk2TQ#U?BMUz^wmwFao8H>P+udZuk}pE=ifTKq6ow<=17fTy9X zD?-xi>YJ|{4mvF>dKWFLCg7q;>(%N|Np?N{Rzyqz<*kD z1@-Z49J16|AnCsN>FFB6lruQ-d^7fzlmr(@r*IjkzVTSb$;#`{xtf$A6OSR^t@P#5 z$!@hvfqDOf9Uktl9wt}2 z;&zX0`7D#)u<71QNUp4?#xTjDo7KkT%&_vxKyUbXJ Date: Fri, 15 Mar 2024 15:05:20 +1100 Subject: [PATCH 03/27] conditional added to tests - passing now --- tools/mummer4/nucmer.xml | 20 +++++++++++++------- tools/mummer4/test-data/nucmer.txt | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 805fff4d83a..cd7174ac92b 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -202,7 +202,9 @@ - + + + @@ -210,19 +212,23 @@ - + - - + + + + - + - - + + + + diff --git a/tools/mummer4/test-data/nucmer.txt b/tools/mummer4/test-data/nucmer.txt index a1e3a06be2c..eae530ab476 100644 --- a/tools/mummer4/test-data/nucmer.txt +++ b/tools/mummer4/test-data/nucmer.txt @@ -1,4 +1,4 @@ -/tmp/tmppews9qic/files/f/4/6/dataset_f46ded9e-52fb-4c4c-8e30-0e2765387c49.dat /tmp/tmppews9qic/files/2/5/1/dataset_25144f20-49a3-462c-9254-7c7a55cb192f.dat +/tmp/tmptxadxefw/files/e/6/5/dataset_e65143c6-5d0d-4b39-a3bb-803a153e03c1.dat /tmp/tmptxadxefw/files/a/d/5/dataset_ad5ab542-3f9f-4286-9025-94e9a55c878e.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 From 7e8a1eff8bdb08184c0c398d5fd4a898dc9a44b9 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 15:10:03 +1100 Subject: [PATCH 04/27] bump version prefix - same mummer4 conda from 4 years ago :( --- tools/mummer4/macros.xml | 2 +- tools/mummer4/test-data/nucmer.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mummer4/macros.xml b/tools/mummer4/macros.xml index c13ee1de7e9..b3505cf7396 100644 --- a/tools/mummer4/macros.xml +++ b/tools/mummer4/macros.xml @@ -11,7 +11,7 @@ 4.0.0rc1 - 1 + 3 20.05 diff --git a/tools/mummer4/test-data/nucmer.txt b/tools/mummer4/test-data/nucmer.txt index eae530ab476..790940e3c9f 100644 --- a/tools/mummer4/test-data/nucmer.txt +++ b/tools/mummer4/test-data/nucmer.txt @@ -1,4 +1,4 @@ -/tmp/tmptxadxefw/files/e/6/5/dataset_e65143c6-5d0d-4b39-a3bb-803a153e03c1.dat /tmp/tmptxadxefw/files/a/d/5/dataset_ad5ab542-3f9f-4286-9025-94e9a55c878e.dat +/tmp/tmpc2brs3qy/files/6/4/a/dataset_64a5193b-2c86-4944-b9b2-57de4d931c91.dat /tmp/tmpc2brs3qy/files/4/0/3/dataset_40346e9e-472b-47a5-a06d-b658657af917.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 From ba002ad8192db965b5adfbea29bd92b75f8edb75 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 15:26:23 +1100 Subject: [PATCH 05/27] add all test data and fix old warts in other modules... --- tools/mummer4/dnadiff.xml | 6 ++-- tools/mummer4/mummer.xml | 18 +++++------ tools/mummer4/mummerplot.xml | 12 ++++---- tools/mummer4/test-data/1delta.txt | 2 +- tools/mummer4/test-data/delta.txt | 2 +- tools/mummer4/test-data/mdelta.txt | 2 +- tools/mummer4/test-data/out.bam | Bin 0 -> 479 bytes tools/mummer4/test-data/out.cram | Bin 0 -> 2679 bytes tools/mummer4/test-data/out.sam | 0 tools/mummer4/test-data/report.txt | 48 ++++++++++++++--------------- 10 files changed, 45 insertions(+), 45 deletions(-) create mode 100644 tools/mummer4/test-data/out.bam create mode 100644 tools/mummer4/test-data/out.cram create mode 100644 tools/mummer4/test-data/out.sam diff --git a/tools/mummer4/dnadiff.xml b/tools/mummer4/dnadiff.xml index bb3413515e6..aa1422d24d2 100755 --- a/tools/mummer4/dnadiff.xml +++ b/tools/mummer4/dnadiff.xml @@ -12,7 +12,7 @@ dnadiff 'reference.fa' 'query.fa' - ]]> + ]]> @@ -48,7 +48,7 @@ report_only == 'no' - + @@ -65,7 +65,7 @@ - + diff --git a/tools/mummer4/mummer.xml b/tools/mummer4/mummer.xml index 9c284d9c84b..4fa2baef911 100755 --- a/tools/mummer4/mummer.xml +++ b/tools/mummer4/mummer.xml @@ -9,7 +9,7 @@ No - - @@ -112,7 +112,7 @@ - + @@ -128,7 +128,7 @@ mummer - -mumreference Compute maximal matches that are unique in the reference- sequence but not + -mumreference Compute maximal matches that are unique in the reference- sequence but not necessarily in the query-sequence (default) -maxmatch Compute all maximal matches regardless of their uniqueness @@ -154,16 +154,16 @@ mummerplot - -b Highlight alignments with breakpoints further than breaklen nucleotides from the nearest + -b Highlight alignments with breakpoints further than breaklen nucleotides from the nearest sequence end - -color Color plot lines with a percent similarity gradient or turn off all plot color (default - color by match dir) If the plot is very sparse, edit the .gp script to plot with + -color Color plot lines with a percent similarity gradient or turn off all plot color (default + color by match dir) If the plot is very sparse, edit the .gp script to plot with 'linespoints' instead of 'lines' -c Generate a reference coverage plot (default for .tiling) - --filter Only display .delta alignments which represent the "best" hit to any particular spot on + --filter Only display .delta alignments which represent the "best" hit to any particular spot on either sequence, i.e. a one-to-one mapping of reference and query subsequences --fat Layout sequences using fattest alignment only diff --git a/tools/mummer4/mummerplot.xml b/tools/mummer4/mummerplot.xml index 3a0b516abee..4340e1b8d2b 100755 --- a/tools/mummer4/mummerplot.xml +++ b/tools/mummer4/mummerplot.xml @@ -49,7 +49,7 @@ - + @@ -75,7 +75,7 @@ - + @@ -99,16 +99,16 @@ Mummerplot is a perl script that generates gnuplot scripts and data collections **Options:**:: - -b Highlight alignments with breakpoints further than breaklen nucleotides from the nearest + -b Highlight alignments with breakpoints further than breaklen nucleotides from the nearest sequence end - -color Color plot lines with a percent similarity gradient or turn off all plot color (default - color by match dir) If the plot is very sparse, edit the .gp script to plot with + -color Color plot lines with a percent similarity gradient or turn off all plot color (default + color by match dir) If the plot is very sparse, edit the .gp script to plot with 'linespoints' instead of 'lines' -c Generate a reference coverage plot (default for .tiling) - --filter Only display .delta alignments which represent the "best" hit to any particular spot on + --filter Only display .delta alignments which represent the "best" hit to any particular spot on either sequence, i.e. a one-to-one mapping of reference and query subsequences --fat Layout sequences using fattest alignment only diff --git a/tools/mummer4/test-data/1delta.txt b/tools/mummer4/test-data/1delta.txt index b146c49d5bf..9e84f82ea55 100644 --- a/tools/mummer4/test-data/1delta.txt +++ b/tools/mummer4/test-data/1delta.txt @@ -1,4 +1,4 @@ -/tmp/tmpm1aw7z9b/files/6/1/9/dataset_619c747c-cdb5-4d85-adda-e0ec5f7fa2fe.dat /tmp/tmpm1aw7z9b/files/f/e/c/dataset_fec4ecfe-55bb-4ff9-86e1-292952d00dd1.dat +/tmp/tmpmprg208i/files/f/1/b/dataset_f1b7734e-9d42-4c7c-9775-5f18da934854.dat /tmp/tmpmprg208i/files/6/f/5/dataset_6f561e62-f409-4d5b-9469-6080685d3666.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/delta.txt b/tools/mummer4/test-data/delta.txt index b146c49d5bf..9e84f82ea55 100644 --- a/tools/mummer4/test-data/delta.txt +++ b/tools/mummer4/test-data/delta.txt @@ -1,4 +1,4 @@ -/tmp/tmpm1aw7z9b/files/6/1/9/dataset_619c747c-cdb5-4d85-adda-e0ec5f7fa2fe.dat /tmp/tmpm1aw7z9b/files/f/e/c/dataset_fec4ecfe-55bb-4ff9-86e1-292952d00dd1.dat +/tmp/tmpmprg208i/files/f/1/b/dataset_f1b7734e-9d42-4c7c-9775-5f18da934854.dat /tmp/tmpmprg208i/files/6/f/5/dataset_6f561e62-f409-4d5b-9469-6080685d3666.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/mdelta.txt b/tools/mummer4/test-data/mdelta.txt index b146c49d5bf..9e84f82ea55 100644 --- a/tools/mummer4/test-data/mdelta.txt +++ b/tools/mummer4/test-data/mdelta.txt @@ -1,4 +1,4 @@ -/tmp/tmpm1aw7z9b/files/6/1/9/dataset_619c747c-cdb5-4d85-adda-e0ec5f7fa2fe.dat /tmp/tmpm1aw7z9b/files/f/e/c/dataset_fec4ecfe-55bb-4ff9-86e1-292952d00dd1.dat +/tmp/tmpmprg208i/files/f/1/b/dataset_f1b7734e-9d42-4c7c-9775-5f18da934854.dat /tmp/tmpmprg208i/files/6/f/5/dataset_6f561e62-f409-4d5b-9469-6080685d3666.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/out.bam b/tools/mummer4/test-data/out.bam new file mode 100644 index 0000000000000000000000000000000000000000..b8d1959c8fe26856219fd6876a419d9cf40e742c GIT binary patch literal 479 zcmb2|=3rp}f&Xj_PR>jW@{Fw$&Uzg&5NS0&eTKVZ_dbVNcl>@$553wLIAi72MYkuJ zaE2{&o89y1wzudX=YqnAMPm1lTP|1Mee^HW!dErD`PqzyhutXm1+PQt}iHd_C^h9@sTl#N3>-}PDD+|}`;<>6ph0L0#Kc3yX z;qW~UuS^N~=dXoLe_p+;J-66jS63rIxA}`&$+m_=44YY&7`5DX5>C}o?$Vy|bi*Uh zHK`F{XW8P{v`$Yh$a`NHT>tm|)CE1lHQWCBEPj4)kBf`z5m&Fixz;TaCk>0*A3Uu{ zU-Iv4&qMaDng5I{%v&Y@H~z_s)Dv)W=UBL3-1V%XQ@&o8)|IJ@3=HyU;j@TgYTsVo zLk=R%`$iCg?^eOAE|>rz>E-O}c&^ zXVHP8H;+7i$3HC&y{4qJ^Ns)X^l7JddUPK?$3FXZ&v}M>Y+?uIJn&_aPG9jZ_0y%3 z@j?Q|5?@_p+S|ee--^f`;EG@lXEywxx+5cBZNt_d+}ruSE&0#>3>b6hPLyU~2FECf F004@u%LD)b literal 0 HcmV?d00001 diff --git a/tools/mummer4/test-data/out.cram b/tools/mummer4/test-data/out.cram new file mode 100644 index 0000000000000000000000000000000000000000..7372e04dd0c1feb1a278a623a178a9dc3106aee9 GIT binary patch literal 2679 zcmc&$i96Km7yo|EckIkqCd(N6Ue}f-QDGSCjA6#|h^%qxM%HTy6Jsmch6WeWMToj; zDocbSYvoebP#Gc@A=?di-0uC|KjC+t=RBYDJ@0wXdp_s+KJR(4_QrS^;2q+5(LE?U zOzqGBzDqRtj{&f;0hG;K0_a?phw}LfQtBG#_oV}T#yi3@X#h8`a2?Uk!!R=Mo2lu! zVM9wBs(H-EG{5smnMiMGDbQ@Xrmn9q;{KA^={4wjv5h8N-d5UzS{IJBcs$qer#I!W&MR5I9mqAN`|BiDy1suNxv9blOx7WqU(`MT8Y zh5Lx$ohZ|LttR7Y`TT5hy2 ze!p7jiE?}Nmf!mk4}^yMvq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d|loKY$ zXB#lZqEDH}2b)RRH&@P(m64hKEG9Sch;;-D|DMw`X12IPdLRIA8M9>pJNw~N0|b`6 HLF>N&#IHFv literal 0 HcmV?d00001 diff --git a/tools/mummer4/test-data/out.sam b/tools/mummer4/test-data/out.sam new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tools/mummer4/test-data/report.txt b/tools/mummer4/test-data/report.txt index 784a47d1141..94f7aadc383 100644 --- a/tools/mummer4/test-data/report.txt +++ b/tools/mummer4/test-data/report.txt @@ -1,4 +1,4 @@ -/tmp/tmpm1aw7z9b/files/6/1/9/dataset_619c747c-cdb5-4d85-adda-e0ec5f7fa2fe.dat /tmp/tmpm1aw7z9b/files/f/e/c/dataset_fec4ecfe-55bb-4ff9-86e1-292952d00dd1.dat +/tmp/tmpmprg208i/files/f/1/b/dataset_f1b7734e-9d42-4c7c-9775-5f18da934854.dat /tmp/tmpmprg208i/files/6/f/5/dataset_6f561e62-f409-4d5b-9469-6080685d3666.dat NUCMER [REF] [QRY] @@ -39,49 +39,49 @@ TandemInsAvg 0.0000 0.0000 [SNPs] TotalSNPs 78 78 +AT 2(2.5641%) 2(2.5641%) +AC 6(7.6923%) 5(6.4103%) +AG 2(2.5641%) 5(6.4103%) +TA 2(2.5641%) 2(2.5641%) TG 2(2.5641%) 5(6.4103%) TC 9(11.5385%) 28(35.8974%) -TA 2(2.5641%) 2(2.5641%) -GC 6(7.6923%) 6(7.6923%) -GA 5(6.4103%) 2(2.5641%) -GT 5(6.4103%) 2(2.5641%) CT 28(35.8974%) 9(11.5385%) CA 5(6.4103%) 6(7.6923%) CG 6(7.6923%) 6(7.6923%) -AT 2(2.5641%) 2(2.5641%) -AG 2(2.5641%) 5(6.4103%) -AC 6(7.6923%) 5(6.4103%) +GT 5(6.4103%) 2(2.5641%) +GA 5(6.4103%) 2(2.5641%) +GC 6(7.6923%) 6(7.6923%) TotalGSNPs 1 1 -TA 0(0.0000%) 0(0.0000%) -TG 0(0.0000%) 0(0.0000%) -TC 0(0.0000%) 0(0.0000%) -AG 0(0.0000%) 0(0.0000%) -AC 1(100.0000%) 0(0.0000%) -AT 0(0.0000%) 0(0.0000%) -GC 0(0.0000%) 0(0.0000%) -GA 0(0.0000%) 0(0.0000%) GT 0(0.0000%) 0(0.0000%) -CT 0(0.0000%) 0(0.0000%) +GA 0(0.0000%) 0(0.0000%) +GC 0(0.0000%) 0(0.0000%) CG 0(0.0000%) 0(0.0000%) +CT 0(0.0000%) 0(0.0000%) CA 0(0.0000%) 1(100.0000%) +TC 0(0.0000%) 0(0.0000%) +TG 0(0.0000%) 0(0.0000%) +TA 0(0.0000%) 0(0.0000%) +AT 0(0.0000%) 0(0.0000%) +AG 0(0.0000%) 0(0.0000%) +AC 1(100.0000%) 0(0.0000%) TotalIndels 13 13 +A. 3(23.0769%) 0(0.0000%) T. 0(0.0000%) 2(15.3846%) -G. 2(15.3846%) 1(7.6923%) C. 5(38.4615%) 0(0.0000%) -A. 3(23.0769%) 0(0.0000%) -.G 1(7.6923%) 2(15.3846%) -.C 0(0.0000%) 5(38.4615%) +G. 2(15.3846%) 1(7.6923%) .A 0(0.0000%) 3(23.0769%) .T 2(15.3846%) 0(0.0000%) +.C 0(0.0000%) 5(38.4615%) +.G 1(7.6923%) 2(15.3846%) TotalGIndels 0 0 -T. 0(0.0000%) 0(0.0000%) -A. 0(0.0000%) 0(0.0000%) G. 0(0.0000%) 0(0.0000%) C. 0(0.0000%) 0(0.0000%) -.A 0(0.0000%) 0(0.0000%) +T. 0(0.0000%) 0(0.0000%) +A. 0(0.0000%) 0(0.0000%) .C 0(0.0000%) 0(0.0000%) .G 0(0.0000%) 0(0.0000%) +.A 0(0.0000%) 0(0.0000%) .T 0(0.0000%) 0(0.0000%) From ef6345a4b18a184b504fdfefd316764f847c472e Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 16:00:48 +1100 Subject: [PATCH 06/27] trying a mesa dependency for libGL --- tools/mummer4/macros.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mummer4/macros.xml b/tools/mummer4/macros.xml index b3505cf7396..1cd81bf59fd 100644 --- a/tools/mummer4/macros.xml +++ b/tools/mummer4/macros.xml @@ -18,6 +18,7 @@ mummer4 gnuplot samtools + mesa-libgl-devel-cos7-x86_64 From 9a7630ce4ea6811dcc803898f9d1dab00a6bddef Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 16:06:50 +1100 Subject: [PATCH 07/27] add version to libgl thingy --- tools/mummer4/macros.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mummer4/macros.xml b/tools/mummer4/macros.xml index 1cd81bf59fd..a458e4a1f32 100644 --- a/tools/mummer4/macros.xml +++ b/tools/mummer4/macros.xml @@ -18,7 +18,7 @@ mummer4 gnuplot samtools - mesa-libgl-devel-cos7-x86_64 + mesa-libgl-devel-cos7-x86_64 From 502f0f9f003d5e5065bc35951996956fb71ebd30 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 19:35:13 +1100 Subject: [PATCH 08/27] remove useless mesa test --- tools/mummer4/macros.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/mummer4/macros.xml b/tools/mummer4/macros.xml index a458e4a1f32..b3505cf7396 100644 --- a/tools/mummer4/macros.xml +++ b/tools/mummer4/macros.xml @@ -18,7 +18,6 @@ mummer4 gnuplot samtools - mesa-libgl-devel-cos7-x86_64 From 1c0373f51f59d5faee0fbc5cc1f603b7b45d56de Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 19:40:19 +1100 Subject: [PATCH 09/27] restore separate gnuplot macro --- tools/mummer4/macros.xml | 5 ++++- tools/mummer4/nucmer.xml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/mummer4/macros.xml b/tools/mummer4/macros.xml index b3505cf7396..60e658c2885 100644 --- a/tools/mummer4/macros.xml +++ b/tools/mummer4/macros.xml @@ -13,11 +13,14 @@ 4.0.0rc1 3 20.05 + + gnuplot + mummer4 - gnuplot samtools + diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index cd7174ac92b..66dcbe202f2 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -5,6 +5,7 @@ + Date: Fri, 15 Mar 2024 10:52:29 +0100 Subject: [PATCH 10/27] fix spelling --- tools/mummer4/macros.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mummer4/macros.xml b/tools/mummer4/macros.xml index 60e658c2885..d03a61523b4 100644 --- a/tools/mummer4/macros.xml +++ b/tools/mummer4/macros.xml @@ -31,7 +31,7 @@ - + From e80a86bd0319860a418e9fe04fd5791bbca5f229 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 21:30:30 +1100 Subject: [PATCH 11/27] update test outs --- tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/out.bam | Bin 479 -> 481 bytes tools/mummer4/test-data/out.cram | Bin 2679 -> 2679 bytes 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mummer4/test-data/nucmer.txt b/tools/mummer4/test-data/nucmer.txt index 790940e3c9f..009b49695b7 100644 --- a/tools/mummer4/test-data/nucmer.txt +++ b/tools/mummer4/test-data/nucmer.txt @@ -1,4 +1,4 @@ -/tmp/tmpc2brs3qy/files/6/4/a/dataset_64a5193b-2c86-4944-b9b2-57de4d931c91.dat /tmp/tmpc2brs3qy/files/4/0/3/dataset_40346e9e-472b-47a5-a06d-b658657af917.dat +/tmp/tmp6b44nh5p/files/8/c/3/dataset_8c31c46f-d1a9-4049-849a-9512bcbf746a.dat /tmp/tmp6b44nh5p/files/c/8/8/dataset_c88946f4-1dea-4e89-8914-5beea5bf845e.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/out.bam b/tools/mummer4/test-data/out.bam index b8d1959c8fe26856219fd6876a419d9cf40e742c..c9d238f1a4a68a3996920351566391263c8ba964 100644 GIT binary patch delta 297 zcmV+^0oMNC1K|UIABzYC000000RIL6LPG)oApwPu-AcnS9L2NC>;=TTzCfC!`!`u~ zHFYqBtyYWPmZV8pWnIRa>FY}s{6g5pfy24@9nQJF+Du+12rX`x__@$LWw^T6O$bNV z?M?L4MfHHILKmx=F$q$nT!Rvfa1Jwt*M$}^XLyrq*H{UExof53jca+v=dA=MGGoE> zoJsujsM~JmHKjE6hf%@;?6>)Wj`=_vYN@2oL^JqUH&&`l%{*x=w*(-wL@_ZZ-bt4M zfSKhYbtX<1|^9b2 v{ni`zmznY)U(~WZ*D!=*9PyvXpDoh~Lg)e^^#7x%yhP|7XlT03lNx>q@WPqocU=(U9e3Y&ACB~oz% zDa-NAwXnn92uf)fALr{6HTl)kE1h#sEiEWeErawXbhd!P0J8+7GKAYg6J;zTiYu7q zu;NLqWms0t24Ad&mt$~l?{QOq{qL2aj1zpe{Y<0h!MsF7MZ`r)j-5M%SjjPRhv4OS tXQckkjNu0!wQ2q{csGR^|AG8&SuPMlM+l+67e&o6LT@gLD%6u60mHAoiwOV# diff --git a/tools/mummer4/test-data/out.cram b/tools/mummer4/test-data/out.cram index 7372e04dd0c1feb1a278a623a178a9dc3106aee9..7b1a3d68e029ac5a7f0d249b3a63c3e244f02a6c 100644 GIT binary patch delta 252 zcmVB(c%9X|4Y*s&Ne?N6&k5|*nSbkvC`z!}{#*FfyCck3Fb~i~ zJ+xs?#R*{k3@@)?nA4<(z0)@P0Y6zs9uNTl0Nc|O*Z=?kdwY{H0dkW-0SU9C0n`X# CWp@Ms delta 252 zcmV9P-T`Dl4WufFdNKD-Unb7zKN zb@JheFvf_ZUyp)yHrPqq!l|s;Z^89OL^USw-y_(|fBvZ_yePqX_h;ePU=J`~!`wq1 z)Y$ns6(@lC13bTmeoj%1FIJiC8&}E5k`Ms^0Fc=E1ONa4dwY{H0dkW-0SU9C0n`Xr Cws|E0 From b9fec7852c5490384ab8d12d92b230ab97378095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gr=C3=BCning?= Date: Fri, 15 Mar 2024 11:31:39 +0100 Subject: [PATCH 12/27] updates --- tools/mummer4/nucmer.xml | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 66dcbe202f2..dfae2adde62 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -88,19 +88,19 @@ - - - - - - - - + + + + + + + + - - + + @@ -114,7 +114,7 @@ - + @@ -142,32 +142,32 @@ - + - + help="Set the distance an alignment extension will attempt to extend poor scoring regions before giving up." /> + + help="Set the maximum diagonal difference between two adjacent anchors in a cluster." /> - + help="Set the maximum diagonal difference between two adjacent anchors in a cluster as a differential fraction of the gap length." /> + - + - + - - - + + + + help="Don't simplify alignments by removing shadowed clusters. Use this option when aligning a sequence to itself to look for repeats." /> From efc3033a96893c254e6b66688411cd2b7b984be6 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 21:35:29 +1100 Subject: [PATCH 13/27] remove bogus samtools index steps - thanks Bjoern --- tools/mummer4/nucmer.xml | 2 -- tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/out.bam | Bin 481 -> 483 bytes tools/mummer4/test-data/out.cram | Bin 2679 -> 2679 bytes 4 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index dfae2adde62..5a4a9458375 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -74,10 +74,8 @@ #if $outform.out_format in ['bam-short', 'bam-long']: && samtools view -b -o bam_out.bam outsamhead && samtools sort bam_out.bam -o outsam - && samtools index outsam #else if $outform.out_format in ['cram-short', 'cram-long']: && samtools view -C -o cram_out.cram -T reference.fa outsamhead && mv cram_out.cram outsam - && samtools index outsam #else && mv outsamhead outsam #end if diff --git a/tools/mummer4/test-data/nucmer.txt b/tools/mummer4/test-data/nucmer.txt index 009b49695b7..20a93ba2acb 100644 --- a/tools/mummer4/test-data/nucmer.txt +++ b/tools/mummer4/test-data/nucmer.txt @@ -1,4 +1,4 @@ -/tmp/tmp6b44nh5p/files/8/c/3/dataset_8c31c46f-d1a9-4049-849a-9512bcbf746a.dat /tmp/tmp6b44nh5p/files/c/8/8/dataset_c88946f4-1dea-4e89-8914-5beea5bf845e.dat +/tmp/tmpnkfvax_1/files/2/9/1/dataset_291257b3-0107-40ad-9408-31d1d8005698.dat /tmp/tmpnkfvax_1/files/0/d/8/dataset_0d81d37d-b366-4fb8-a93d-b176e429dd81.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/out.bam b/tools/mummer4/test-data/out.bam index c9d238f1a4a68a3996920351566391263c8ba964..e11aef0202ecccf7fadad93a98c8b7fdfa90a8df 100644 GIT binary patch delta 299 zcmV+`0o4BC1LFgKABzYC000000RIL6LPG)oBLRhwO-{ow6olQSdjZ5Q7jW#Cyu^uD z1u7M!HUuizMs^*GKvSc}EgT;OB>sfNVx-Y5zR}G2*=q7QA!K$rr}veDSkU#g+IYXW z-A;#gI$Ph+b)~9BBZNem$Dpvx1p~meq{~X>SO~hxl-(GAiJ5h>gpGBOK;b0XJkbVQ z$b_VKx5{w!fJoG5ny`^?wb6--i+Zf&AVwoe)A!2qAwzO6pTW-T-nZhQ^Z~0mIyOj!6Ij delta 297 zcmV+^0oMNG1K|UIABzYC000000RIL6LPG)oApwPu-AcnS9L2NC>;=TTzCfC!`!`u~ zHFYqBtyYWPmZV8pWnIRa>FY}s{6g5pfy24@9nQJF+Du+12rX`x__@$LWw^T6O$bNV z?M?L4MfHHILKmx=F$q$nT!Rvfa1Jwt*M$}^XLyrq*H{UExof53jca+v=dA=MGGoE> zoJsujsM~JmHKjE6hf%@;?6>)Wj`=_vYN@2oL^JqUH&&`l%{*x=w*(-wL@_ZZ-bt4M zfSKhYbtX<1|^9b2 v{ni`zmznY)U(~WZ*D!=*9PyvXpDoh~Lg)e^^#7x%yhP|7XlT03lOO@ZxGRxN diff --git a/tools/mummer4/test-data/out.cram b/tools/mummer4/test-data/out.cram index 7b1a3d68e029ac5a7f0d249b3a63c3e244f02a6c..cfc5b4672e575fbbd7dadbf5dbbff7d9ef40b3b5 100644 GIT binary patch delta 252 zcmVycSo47U>=}} zdQf3b#R*{k2+yx!nA4<(SEp_E4P*)uj}QR>0QDE5D*ylhdwY{H0dkW-0SU9C0n`Xt CMRyqh delta 252 zcmVB(c%9X|4Y*s&Ne?N6&k5|*nSbkvC`z!}{#*FfyCck3Fb~i~ zJ+xs?#R*{k3@@)?nA4<(z0)@P0Y6zs9uNTl0Nc|O*Z=?kdwY{H0dkW-0SU9C0n`X# CWp@Ms From fb278738593bd13558b879c96166270130fb6d0b Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 21:47:57 +1100 Subject: [PATCH 14/27] add note on long and short outputs --- tools/mummer4/nucmer.xml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 5a4a9458375..6e83a0792f2 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -235,9 +235,12 @@ Date: Fri, 15 Mar 2024 22:19:58 +1100 Subject: [PATCH 15/27] Update tools/mummer4/nucmer.xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Björn Grüning --- tools/mummer4/nucmer.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 6e83a0792f2..4fffd48d244 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -220,7 +220,7 @@ - + From 90d0187d24e37248b4d2db59b230302b5ec481b2 Mon Sep 17 00:00:00 2001 From: Ross Lazarus Date: Fri, 15 Mar 2024 22:20:46 +1100 Subject: [PATCH 16/27] Update tools/mummer4/nucmer.xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Björn Grüning --- tools/mummer4/nucmer.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 4fffd48d244..94cd760057c 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -231,7 +231,7 @@ - + Date: Fri, 15 Mar 2024 22:53:28 +1100 Subject: [PATCH 17/27] revert invalid xml --- tools/mummer4/nucmer.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 94cd760057c..b568c2d9b23 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -220,7 +220,7 @@ - + From 08d67639084e9c62860f971625da8e463a8a6948 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 22:58:06 +1100 Subject: [PATCH 18/27] remove empty sam from test data and update tests again.. --- tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/out.bam | Bin 483 -> 481 bytes tools/mummer4/test-data/out.cram | Bin 2679 -> 2679 bytes tools/mummer4/test-data/out.sam | 0 4 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 tools/mummer4/test-data/out.sam diff --git a/tools/mummer4/test-data/nucmer.txt b/tools/mummer4/test-data/nucmer.txt index 20a93ba2acb..26ff4372919 100644 --- a/tools/mummer4/test-data/nucmer.txt +++ b/tools/mummer4/test-data/nucmer.txt @@ -1,4 +1,4 @@ -/tmp/tmpnkfvax_1/files/2/9/1/dataset_291257b3-0107-40ad-9408-31d1d8005698.dat /tmp/tmpnkfvax_1/files/0/d/8/dataset_0d81d37d-b366-4fb8-a93d-b176e429dd81.dat +/tmp/tmpnf8gcn5v/files/b/d/f/dataset_bdfc9456-0f15-4f5d-96ca-574b25b33e43.dat /tmp/tmpnf8gcn5v/files/d/4/6/dataset_d462e1f9-1691-4066-a872-6d0853ed89b6.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/out.bam b/tools/mummer4/test-data/out.bam index e11aef0202ecccf7fadad93a98c8b7fdfa90a8df..a3dd132d77963084c6fc4380cd35a3aa85b3623a 100644 GIT binary patch delta 297 zcmV+^0oMNG1K|UIABzYC000000RIL6LPG)oApwPu%}N6?9K_RO`U2u@Um%_?_Z~rj~bY9@A#aEggH{mTKO-5qY*lryUDQ|3-#Y5_C v_Z+PM%go^*7qzZWHS}?x2K*=TXUlkm5IRE${r@Pc&k=eDxdqHolOO@ZoqCat delta 299 zcmV+`0o4BC1LFgKABzYC000000RIL6LPG)oBLRhwO-{ow6olQSdjZ5Q7jW#Cyu^uD z1u7M!HUuizMs^*GKvSc}EgT;OB>sfNVx-Y5zR}G2*=q7QA!K$rr}veDSkU#g+IYXW z-A;#gI$Ph+b)~9BBZNem$Dpvx1p~meq{~X>SO~hxl-(GAiJ5h>gpGBOK;b0XJkbVQ z$b_VKx5{w!fJoG5ny`^?wb6--i+Zf&AVwoe)A!2qAwzO6pTW-T-nZhQ^Z~0mIyOj!6Ij diff --git a/tools/mummer4/test-data/out.cram b/tools/mummer4/test-data/out.cram index cfc5b4672e575fbbd7dadbf5dbbff7d9ef40b3b5..13eb027d39b4e1a9df95d184c23481d6b97ffe95 100644 GIT binary patch delta 252 zcmVCiN(($CTp^`y9b>Va@%9fD60!1D6er&2)*K9Cq+#g z3~no7^uTCk9OFbAM@rH-MonF+fm%{w2A&=SO4G-A-Zcm9t7s#74MTql@on^n-i*=e z6yhhs7$c5;Jc`!YXuYycSo47U>=}} zdQf3b#R*{k2+yx!nA4<(SEp_E4P*)uj}QR>0QDE5D*ylhdwY{H0dkW-0SU9C0n`Xt CMRyqh diff --git a/tools/mummer4/test-data/out.sam b/tools/mummer4/test-data/out.sam deleted file mode 100644 index e69de29bb2d..00000000000 From e0da3abd2829ee62eb9377f36c2751ff2dc20469 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Fri, 15 Mar 2024 23:23:35 +1100 Subject: [PATCH 19/27] fix a silly strange form bug - misnamed hidden variable --- tools/mummer4/nucmer.xml | 8 ++++---- tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/out.bam | Bin 481 -> 480 bytes tools/mummer4/test-data/out.cram | Bin 2679 -> 2679 bytes 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index b568c2d9b23..f9c0e896599 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -96,7 +96,7 @@ - + @@ -131,7 +131,7 @@ - + @@ -213,8 +213,8 @@ - + @@ -224,8 +224,8 @@ - + diff --git a/tools/mummer4/test-data/nucmer.txt b/tools/mummer4/test-data/nucmer.txt index 26ff4372919..d90adfc5990 100644 --- a/tools/mummer4/test-data/nucmer.txt +++ b/tools/mummer4/test-data/nucmer.txt @@ -1,4 +1,4 @@ -/tmp/tmpnf8gcn5v/files/b/d/f/dataset_bdfc9456-0f15-4f5d-96ca-574b25b33e43.dat /tmp/tmpnf8gcn5v/files/d/4/6/dataset_d462e1f9-1691-4066-a872-6d0853ed89b6.dat +/tmp/tmp0utvulpx/files/4/6/e/dataset_46e8d66a-7e94-469f-8937-84d85194b6c3.dat /tmp/tmp0utvulpx/files/1/b/2/dataset_1b2e463c-4205-4945-bc0a-04862da609a6.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/out.bam b/tools/mummer4/test-data/out.bam index a3dd132d77963084c6fc4380cd35a3aa85b3623a..8c331d89237a914c93321bbc72e88882cc215541 100644 GIT binary patch delta 296 zcmV+@0oVTF1KTe{lV? z32l^Dx3DU7v8f4>Op1hRrUXHhvNHv@g%&I$aL2W4tYqAObyCsBbu^_}Cz%tev8<(> zNO*szyMAaj#yE`oMPv@gdDy?=C7&?I0t@U+FjE_9E=1-iBPg@NA;x)!EK57os8mU# zxN^=U&V(p0H}HC`Co=}`hY6O&mw%r`Rg%KX?PnSv`}QS9Hby?SW~}`j5^KiT&tWp- uV{6=RW_?_Z~rj~bY9@A#aEggH{mTKO-5qY*lryUDQ|3-#Y5_C v_Z+PM%go^*7qzZWHS}?x2K*=TXUlkm5IRE${r@Pc&k=eDxdqHolN|xWnf8%~ diff --git a/tools/mummer4/test-data/out.cram b/tools/mummer4/test-data/out.cram index 13eb027d39b4e1a9df95d184c23481d6b97ffe95..14efc219e6dcb440abb05c550d275e71cf1c0730 100644 GIT binary patch delta 252 zcmV2~k_0*CIGw}2vP#h2E;S`T)e`xqXZ@%wNKD-apOJ{~) zb@bsAVT=(+KOP0^Y_OBIg;QCx+kl(3nAI4)-_Kwt|MCiN(($CTp^`y9b>Va@%9fD60!1D6er&2)*K9Cq+#g z3~no7^uTCk9OFbAM@rH-MonF+fm%{w2A&=SO4G-A-Zcm9t7s#74MTql@on^n-i*=e z6yhhs7$c5;Jc`!YXuY Date: Sat, 16 Mar 2024 11:57:24 +1100 Subject: [PATCH 20/27] removed all short-sam output options added samtools calmd to fix broken MD and NM headers - thanks, mummer. --- tools/mummer4/nucmer.xml | 77 +++++++++++------------------ tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/out.bam | Bin 480 -> 2368 bytes tools/mummer4/test-data/out.cram | Bin 2679 -> 2528 bytes 4 files changed, 30 insertions(+), 49 deletions(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index f9c0e896599..9cdec9c476c 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -14,11 +14,7 @@ nucmer $anchoring #if $outform.out_format != "delta": - #if $outform.makeshort == "1": - --sam-short=outsam.sam - #else: - --sam-long=outsam.sam - #end if + --sam-long=outsam.sam #end if -b '$breaklen' -c '$mincluster' @@ -71,13 +67,14 @@ && tail -n +3 outsam.sam > outsambody && samtools dict reference.fa > outsamhead && cat outsambody >> outsamhead - #if $outform.out_format in ['bam-short', 'bam-long']: - && samtools view -b -o bam_out.bam outsamhead - && samtools sort bam_out.bam -o outsam - #else if $outform.out_format in ['cram-short', 'cram-long']: - && samtools view -C -o cram_out.cram -T reference.fa outsamhead && mv cram_out.cram outsam + && samtools calmd outsamhead reference.fa > outsamcalm + #if $outform.out_format == 'bam-long': + && samtools view -b -o bam_out.bam outsamcalm + && samtools sort -o outsam -O bam bam_out.bam + #else if $outform.out_format == 'cram-long': + && samtools view -C -o outsam -T reference.fa outsamcalm #else - && mv outsamhead outsam + && samtools sort -o outsam -O sam outsamcalm #end if #end if ]]> @@ -86,17 +83,13 @@ - - - - - - - - + + + + + - @@ -121,24 +114,9 @@ - - - - - - - - - - - - - - - - - - + + + @@ -188,9 +166,7 @@ outform["out_format"] != "delta" - - @@ -214,8 +190,7 @@ - - + @@ -225,7 +200,6 @@ - @@ -233,6 +207,16 @@ + + + + + + + + + + NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/out.bam b/tools/mummer4/test-data/out.bam index 8c331d89237a914c93321bbc72e88882cc215541..05aefec7b15a6f1266e07212f7e49582b35ef406 100644 GIT binary patch literal 2368 zcmV-G3BUFqiwFb&00000{{{d;LjnLn0fo^`PQx$|1z>mSUI4Mn1#HKO9VcEDs8o>J zG*H2|vSV8mC3Tg!?K!y-3LyR~79)+`;(Z#;<;7z3JOW^HJ%taYq&SAFrL4X0%x0^C z9Zy!ba8=53wvJ=LM24wkMHVAUSz5q(DKnPGaKWXiwP4&hQPA2rn$X+{X0k+SW+{&a zyuXuf(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%UEq%A5zTod>&fF>C+c#*H zY+T7X(Wk2=YZ;5yM#_Uboy<&l>F~+s%~a(cH7d{{FM>PK6c}LqS52z z>^u2sPW1t&KkaWjDSxQxze8PqXBb0+FvEfS{Y{@l8q6m|Mfgo+WMGg-3!p^|Q~UPv z9&!+A-ruamp;9-A(SgJ3!f8Q|1x{XvMVBNritrrb;yK9BGeI{(Sz2K3J6!?uZPNAY zIExMxy?NyEJN{{L=rtv!op1c7r%yYz)1&+FIriDNd(Jc5V-q_t=YcPaboz>Ssh=*L zj299xmiX!-)7};)_*O*j09OQaIJ4mg)g2l6Y8$rx;NH&nZOMQ3XTYdKccL@{GdM~? F1OOl3#q0n8 diff --git a/tools/mummer4/test-data/out.cram b/tools/mummer4/test-data/out.cram index 14efc219e6dcb440abb05c550d275e71cf1c0730..fc1fc27f4079b2b4677db060c8cbf22266ef092d 100644 GIT binary patch delta 433 zcmew^@<6!WImpqMnIXTlq&P8`0R{9i!njOK42?{aBFn!5MH;?0rptG8K&1Y+_TBYs zHehIdo?6+pk73KvOMP(@b55Gf>{xVf(k1y+zFkxDj%+tKcG)alUN~v;`$yL9cXh;$ z-j&)jwMj+dO8+B^`kr&_ix)4dV=C1=<=bqye2%Kig*gvr2vp5(&efENP5Ll_b8VEL zac-sGlx-@i-ltclt;|`eDEaKc*T@AIui19Z1U&%cR$>FaZXxv&VMI~ zV6(MW3*?~eHHz;6e4{^eNpY5o5_>Xnn4u6~>Dr22iYMcX?Gx1046 zD<9VHYl)Fq{c6_VD>FHdX-n*`WICoV&TVYBzhfWc9J6gF(t(~|{l29e=<|lghQ`T; zj75_j82MGKgjwrfvjauFrcPsGm>w*^*l>&^VeWATMuvvn4ZDR{LR=UppJLo%$;e>+ z_TNheCI&4nh*~~gZXP~4Uhn+xdp7<-)1YQhuBWnz#8F L(xmM$=h0kBRAh}n7wtzRf)a#&nKw=|FL`Chea%_->z>xesEsGKCPym z?N%!`e%2IAZ}_SFr=GXAYqM1RTBDod^^ zzCH~U0$x+6F)>UJ7G!L=^25c3kAab);bg-}QI-%F7GIaB$+sD|=<_f>05VxwIYHDb z3I9?CCI&q{h)#Y!ZXP~zPDZCY!A2+kArQ6I(qa3rMh`yWtEX z$YoC*>|`kQR($n8{`gd(xAGVFxCOVSTiHzB-rRm*yP0&TPsx>i vE6m$tvzPeYx%EV9hwNO5{ZEZA?hc+f|Gj;PhCu%rpttAy@_(MZi&G5%rRnl6 From 961152f378128e3702eebff63a28720bb16ea092 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Sat, 16 Mar 2024 12:49:08 +1100 Subject: [PATCH 21/27] add missing sam.out test file :( --- tools/mummer4/nucmer.xml | 5 +++-- tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/out.bam | Bin 2368 -> 2377 bytes tools/mummer4/test-data/out.cram | Bin 2528 -> 2561 bytes tools/mummer4/test-data/out.sam | 6 ++++++ 5 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 tools/mummer4/test-data/out.sam diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 9cdec9c476c..556e67de953 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -67,14 +67,15 @@ && tail -n +3 outsam.sam > outsambody && samtools dict reference.fa > outsamhead && cat outsambody >> outsamhead - && samtools calmd outsamhead reference.fa > outsamcalm + && samtools sort -o outsamheadsort outsamhead + && samtools calmd outsamheadsort reference.fa > outsamcalm #if $outform.out_format == 'bam-long': && samtools view -b -o bam_out.bam outsamcalm && samtools sort -o outsam -O bam bam_out.bam #else if $outform.out_format == 'cram-long': && samtools view -C -o outsam -T reference.fa outsamcalm #else - && samtools sort -o outsam -O sam outsamcalm + && mv outsamcalm outsam #end if #end if ]]> diff --git a/tools/mummer4/test-data/nucmer.txt b/tools/mummer4/test-data/nucmer.txt index dbd97540df7..4d207057955 100644 --- a/tools/mummer4/test-data/nucmer.txt +++ b/tools/mummer4/test-data/nucmer.txt @@ -1,4 +1,4 @@ -/tmp/tmpf56vpwj6/files/a/c/c/dataset_acc56cef-a327-4edc-8327-229262f73b1e.dat /tmp/tmpf56vpwj6/files/1/9/3/dataset_19318e75-7522-408f-b67f-a11b1f9e80ef.dat +/tmp/tmp885k3_3o/files/9/9/8/dataset_99883b3a-5339-4acd-82bb-7e6cc0cad9db.dat /tmp/tmp885k3_3o/files/c/b/a/dataset_cbaf4d80-a79c-4055-8ede-298a050d1575.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/out.bam b/tools/mummer4/test-data/out.bam index 05aefec7b15a6f1266e07212f7e49582b35ef406..2424d37470d4c9d7c20474c9d3b10a73b542cc36 100644 GIT binary patch delta 340 zcmV-a0jvJN63G&OABzYC000000RIL6LPG)oN&$`1+fKqT90u^}U3mfH-Ckfltvj?= zs3d3tV@mXP>3WDnM$K0A_05P81&LlXX}^o_*MHONtNEEY2Vi_VflsBRh`{ASYVSL< z+NfYhdMSL;E_cqDWtoI`MeOd#o|T1RE7pZ$qsaVTtB0HksiuPYI2Ma5NST zDO4t`OACdJ3Zro~g?AI#t2TJQ?qOB#_q&m(Kn&i@zS5}oU5H{I`EBS``)rljCHv!H zC!#-EtLiUHL92CZ4*NUnY-cyxBBzc7c1l3>gz>hr?@`Y1 mX|R92R1_};>N__&0{~nA0Dk`>x)O-{ow5Cvd&>0SV_%LQ!5i5(|i z6{u8@+B8tXwz6Ye6eV?)xa~Q)5egvwD;6V--r{{4&E>^n^gIG!ay^9)rKC89tEH^H z@62Yaf*ns*w{TU;a<-0R!9<3sWJMMuN?BUKc_}lN$8f=arKz=G+&EFt+Bllf+zDo~ zL}_Lzj|IHHlWx;kNeBt;ZWzb2!|wQ$ks5JR_)sF1JKuR<<2DH*`~jm$0SMJmoM8X} diff --git a/tools/mummer4/test-data/out.cram b/tools/mummer4/test-data/out.cram index fc1fc27f4079b2b4677db060c8cbf22266ef092d..a1a5c44975a2805ee697c9fd6ea68af46b3a5577 100644 GIT binary patch delta 333 zcmV-T0kZz!6M+D{((ZFS0r09O(vqKx1_X1af6ytU3^I2$!u99Te9uqB<_{i zqYNE5vbxn)4^qQcczL-5cMCp>-WjtQL0L@uzCX!e2W{`cKQO-ea--bxW~pqcAsOc2^;w|MAI`BEI~}GSLp#?tlk=b5@ZRXo8x@@YLKtI|qnRUb ztnp@0Cb2Rqstvebi&6H$x%~*L@~{8ACwY>B)%KS{CHK9C?ifbde;BFZf4+oV7^~`< z{nVKW#w!@Rc^(4BFBc0lKEH^*0h~6r$Y%in0ITnWivR!sfPsL4lTiVI1UeH1f3w^H FB?$8Eh*tmr diff --git a/tools/mummer4/test-data/out.sam b/tools/mummer4/test-data/out.sam new file mode 100644 index 00000000000..69883d1bed4 --- /dev/null +++ b/tools/mummer4/test-data/out.sam @@ -0,0 +1,6 @@ +@HD VN:1.0 SO:coordinate +@SQ SN:NG_007476.1:4960-11439 LN:6480 M5:dcb745df791cdf1218f74d62ab4e1507 UR:file:///tmp/tmp885k3_3o/files/8/f/5/dataset_8f5d35c8-47ee-4bac-87e6-449833607f46.dat +@PG ID:samtools PN:samtools VN:1.19.2 CL:samtools sort -o outsamheadsort outsamhead +@PG ID:samtools.1 PN:samtools PP:samtools VN:1.19.2 CL:samtools calmd outsamheadsort reference.fa +NC_000070.6:c41098183-41092724 0 NG_007476.1:4960-11439 74 10 42S25M1I1M1I124M5266S * 0 0 ACCGCTCTCGGTGCCTTGCGCTAGCTACTTTGCACTCGTACGCCGCCGGACCTCGCCGCTGCCTGCCTCGCGCCATGGGTCGACAGAAGGAGTTGATGAATCGTTGTGGGGAGATGCTTCACATCCGCTACCGGCTGCTTCGCCAGGCGCTGGCGGAGTGCCTGGGGACCCTCATCCTTGTGGTGAGTGCAGGGTAGTGAGCAGTCCTATCTATTTCAGGCCCCGTGGTCCCCAACTCCTTATTCACTCCAGGGACAGTTTTCCAGGCAGACACGACCAGTTCCCCAGCTCTGCTCCCGAGGCTTAACCCT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CTCTTTTGATCTCTCTCCGTGGCCCCCACCTCCTCCACTATGACCTGGGCTTTGGAAGAGTCCAGGACGATGGGGTATTTCCTACCTCTGTGTGCCAAATCTGGAGGACGGGCAGAAACTGCTGTAGTGATAGCTCCCTTCTGTGCCCTTCCCGGATTCAAGAAAAACCAGTGGATGTCATTTAACCACCTGGGTCCCCAGTCATGTACCCATTACTGATTCCCCCCCATCCCCCCATGAGGCTCTGCACGTCTCCTCTTTCTGGGACTTAAGGAGGGATTTGGGTTATATCCCAGGAAGCACCTTCAGTGGTGTCAGGCATGTCTGATCTCAGTGGGACTTCACTTGCTTTGTTTTCCGACAGATGTTTGGCTGTGGCTCCGTGGCTCAGGTGGTGCTCAGCCGTGGCACCCATGGTGGCTTCCTCACCATCAACTTGGCTTTTGGCTTCGCTGTCACCCTTGGCATCTTGGTGGCTGGCCAGGTGTCTGGTAAGGCCTCAACCCCAGCTTCAGTTTTCAGCCCTCACCAGCATTTCCAACAAGTATCTGCCTAGAGAGCAGAGGGGGAGGAACAACTCCAACCAAGGACGCACACTAACAGCACCTCAGCTTTGGGCCCTTTGGAGGCAAGGGTGGAAGAGACTTCACAGAACCTTTGACTTTCACCTTGGAATCAAAGATCAGTCTGTGACATAGTCCAACTGCCATCCAGGCTAAGAAAACCTACCTACACCCCAGAAAGGAAGAGCCCAAGGTGGCAGGCTGTAACTAATGGATGCTATCTCCTCTTCGCAGGTGCCCACTTGAACCCCGCTGTGACCTTCGCAATGTGCTTCCTGGCACGAGAGCCCTGGATCAAGCTGCCCATCTATGCACTGGCACAGACACTGGGGGCCTTCTTGGGCGCTGGGATTGTTTTTGGGCTGTACTACGGTAAGCATTCCCCATCCCGCCCTCCCTTCTCCACACTTTCCCTCTTTAAGTACTTGTTGGCACCAAGCCCACTGATGACAACCGGGGCCTGCCCAGGCCCAGGGCCCGTGACTCATTCACGAACACTCAGGCCCAGGTTGGGGGCCTAGGGGAAAGAAACGAGTTGGGCAACAACAGAATCTCAGGTCCTCCACCCCGCCC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GCCCATTAGGGCATTAGGTTCCCACCCACCTTTAAGCCAAGGTAGGATAGCAAATAAGATGGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAATGAATGTGTACATGTGTGCTGTTTTCTAAGCTGAATGATGCAAAGGCAAGGGACCAAGTTTTCAAAACAAACTGTAGCAGCTCAGGGGAAGGGAGCCCAGGGGAAGGGAGAAAGTGAGTCAGGAATGTGCCAGAGTGTGCATGCTTCAGGGACTCCTCCATGTGGAGGTGGACCCAGAAGTGAGTTTCTAAGTATGCGTGTGCCTACTGTTTTTTTTTTTTTTTTTGAAATGGACTTCTAGGCTTGGGGAGGGGGAAGGGATAAGAAGGGTGTAGCTCACATCTGGAGCTATGACCCTTGACTGGGGGCTGTGTAATATGTTTCTGTTATAAGATAGACATTGGGAGGGGCTGAAGTCCAGGTCGTAAGTTTCATAATTTGTTTTTTAAATATATAAATATATACATACATATATGTTACAGCCCTAGGAATAGGGGTGGGAAACTCCACTTTTTAAAAGGGGTTTCCTTTCTTTAATCCTCCAATCAACAATGTACTGTTGCCTTTTATATATAAAAAAGAATAAAACGTATACATGCTACAGG * NM:i:19 MD:Z:5C3A0G6C30C2G2T0C0C2C2C11C20C2A11C23G10G4 +NC_000070.6:c41098183-41092724 2048 NG_007476.1:4960-11439 5080 10 4147H31M1I239M5D2M2D20M1D11M1D19M1D188M802H * 0 0 GGAGCTGGCCCTCACCGTGCTCTCTCCCCTCTCCCAGTTCATAGGCACAGCCGCCCTTATTGTGTGTGTACTGGCCATCGTTGACCCTTATAACAACCCTGTGCCCCGTGGCCTGGAGGCTTTCACTGTGGGCCTGGTGGTCCTGGTCATTGGAACCTCCATGGGCTTCAATTCTGGCTATGCCGTCAACCCTGCCCGTGACTTTGGACCTCGCCTCTTCACCGCCCTGGCTGGCTGGGGCTCAGAAGTCTTCACGTGAGTACAGTCCCCACTCCCCAGCTTGCCTCCCCTCTTCCTGCCGACCTGTCTCTGATTTCCGGTGTTCTCCCTCCAGGACTGGCCGGCACTGGTGGTGGGTACCCATTGTCTCCCCACTCCTGGGTTCCATCGCTGGTGTCTTCGTGTACCAGCTCATGATTGGTTGCCACCTGGAGCAGCCCCCACCCTCCACCGAGGAAGAGAATGTGAAGCTGGCCCACATGAAACACAAGGAGCAGATCTGAGTGGGCAG * NM:i:72 MD:Z:7C0A0G6C2T4C2A23T7C8G8T8C2C8C2C5A11C5C26C17C2C23G8C2C5T2T2A5T2G11T1C19C5^CCCAG2^CA7C6T5^G0C6C0C2^A4C4C1A0T0G0A4^C1G4C7C4A3T11G5C2G14C5T2G20G5C2C28A27T0G4G26 From 8ac9199bf3b5252a737914dfde2eab72501bad75 Mon Sep 17 00:00:00 2001 From: Ross Lazarus Date: Sat, 16 Mar 2024 21:08:10 +1100 Subject: [PATCH 22/27] Update tools/mummer4/nucmer.xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Björn Grüning --- tools/mummer4/nucmer.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 556e67de953..fff870f1ad4 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -92,7 +92,7 @@ - + From d589b9dec920c3776a5dfc4a469ca10cb485f302 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Sat, 16 Mar 2024 21:15:26 +1100 Subject: [PATCH 23/27] remove sam output option --- tools/mummer4/nucmer.xml | 17 +---------------- tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/out.bam | Bin 2377 -> 2377 bytes tools/mummer4/test-data/out.cram | Bin 2561 -> 2559 bytes 4 files changed, 2 insertions(+), 17 deletions(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 556e67de953..3df76c311de 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -74,8 +74,6 @@ && samtools sort -o outsam -O bam bam_out.bam #else if $outform.out_format == 'cram-long': && samtools view -C -o outsam -T reference.fa outsamcalm - #else - && mv outsamcalm outsam #end if #end if ]]> @@ -86,7 +84,6 @@ - @@ -115,7 +112,6 @@ - @@ -164,10 +160,9 @@ outform["out_format"] == "delta" - + outform["out_format"] != "delta" - @@ -208,16 +203,6 @@ - - - - - - - - - - NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/out.bam b/tools/mummer4/test-data/out.bam index 2424d37470d4c9d7c20474c9d3b10a73b542cc36..827195cd2111941b49675e09b2cc34e28334445c 100644 GIT binary patch delta 321 zcmV-H0lxmp63G&f6o21N!Y~vD@Zw#00ps0XVC_!n{`Cr#1WjN}iQba4wT(nZ4J-Ki zX2ghsL@%1O-^KUqX?k-#?d2DQ4DUwtxlq6&I-jZ9xs6_~(VPBo{y^u2D#nW_N@bcb zP%=-V5I_!cIw@2lvxrV(rRyq{v9@UrwYDH2v#HdHz)Bj3qkoh>Ju16g8O1sG&0Dwf z8g|~ldfw$NM{c;_8a=kgFVKiM5}6KVig73b<1iC835AG3)W&828Pn+d!*WdTN2KHVe1)tit9K?JjU)49*(jUoRDevyS@C^?QVnOG3!+ TAB2=wgnR%j$tB3MM*#u|7l5Gc delta 321 zcmV-H0lxmp63G&f6o1=J!Y~{L@akQ80ps0XU_Grnv{$GkXaZwO^mgfbh(t!sR`m7F zh!F*eUNmXHi|^Ne)9b7GnK%bvd^>?prKE_!Cag;fg^UWLaW#c^6WOaa zc)#vpRqpq@k*Gin-pszzsP|onVjuZ!=vDh{mDwfx<6$SFKU%BmFF~tyYYzK6>uhH? z+9Icp1a?Y5^fiR>wzBV0+zf*>s;&JtphmTy=x~7}BROfXf4x)`F9zy6H#!3VTmS%m T{~(~c1mFYfSt9VWM*#u|Yp0qR diff --git a/tools/mummer4/test-data/out.cram b/tools/mummer4/test-data/out.cram index a1a5c44975a2805ee697c9fd6ea68af46b3a5577..7f2262fb97274ac27273dcc220f82d07e6d798f7 100644 GIT binary patch delta 332 zcmV-S0ki&r6#o;D8h@<;00000000000s;Vm7oO=70RaF2feeAsABzY8000000RM%L zK~BRk5Jk(upT0x&`4y-?OV-S*O(X;waB7{+vVi1(4B!2{;*Bq^Kk8b}C3&yOPV-N$~og01&!AHCbU+F7@5``1dh&M0r)S40Sj zcy#2EGmUYkR|Yq7niWfQyAXryytSJF75TUy`UA%?ny-FoFj(h<&<6I?53+kRQXj~8 zo@Zh>NiB;13^Ph@I(?r1S8E(!GGMsi*tTXDg!A!{AbdJ;9Pz%(^as1;$D{((ZFS0r09O(vqKx1_X1af6ytU3^I2$!u99Te9uqB<_{i zqYNE5vbxn)4^qQcczL-5cMCp>-WjtQL0L@uzCX!e2W{`cKQO-ea-- Date: Sun, 17 Mar 2024 14:11:46 +1100 Subject: [PATCH 24/27] Noticed that cat and tail each take a long time when there are many GB to process, so removed one file copy operation by appending the tail output to the prepared head for the fixed sam to save 10 minutes in a 3 hour job on my test server... --- tools/mummer4/nucmer.xml | 6 ++---- tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/out.bam | Bin 2377 -> 2356 bytes tools/mummer4/test-data/out.cram | Bin 2559 -> 2561 bytes 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index e73e9699c34..50aebc58654 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -64,14 +64,12 @@ @MUMMER_GNUPLOT_MANUAL@ #end if #else: - && tail -n +3 outsam.sam > outsambody && samtools dict reference.fa > outsamhead - && cat outsambody >> outsamhead + && tail -n +3 outsam.sam >> outsamhead && samtools sort -o outsamheadsort outsamhead && samtools calmd outsamheadsort reference.fa > outsamcalm #if $outform.out_format == 'bam-long': - && samtools view -b -o bam_out.bam outsamcalm - && samtools sort -o outsam -O bam bam_out.bam + && samtools view -b -o outsam outsamcalm #else if $outform.out_format == 'cram-long': && samtools view -C -o outsam -T reference.fa outsamcalm #end if diff --git a/tools/mummer4/test-data/nucmer.txt b/tools/mummer4/test-data/nucmer.txt index 9d9ca0a1c53..7ca0b635805 100644 --- a/tools/mummer4/test-data/nucmer.txt +++ b/tools/mummer4/test-data/nucmer.txt @@ -1,4 +1,4 @@ -/tmp/tmp9c1vttkt/files/d/a/d/dataset_dad621f0-f707-414f-9100-3fea68df8a40.dat /tmp/tmp9c1vttkt/files/9/9/3/dataset_993c6a6c-b8c1-4d0f-8ddb-d66169de19cd.dat +/tmp/tmpy6gw75je/files/a/8/d/dataset_a8dfaa04-d4b3-4511-a077-0f1d1613de54.dat /tmp/tmpy6gw75je/files/2/f/e/dataset_2fe26f9b-5fd1-4dbe-86f6-7aac41156c5a.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/out.bam b/tools/mummer4/test-data/out.bam index 827195cd2111941b49675e09b2cc34e28334445c..e99718bd46a75b8fcc848f75928b18c0e4bd5c8e 100644 GIT binary patch delta 319 zcmV-F0l@yr60{P3ABzYC000000RIL6LPG)oH35Z@O-{ow5QW{PdjZ5Q7fAer6E|KJ zs8o>J5U5~VP2w>WH8n~M6}RL_s1+ijP_Y=z%v-!qPw(PIPm0|AHQ#VuVFrkE}{*GgxJFe=Y@EQC7C>8voB8gV**PmQfBty1fBE^6z96eFjV z%_LL`Manh3zcX&NM#C5j&C71yv&XGYpONkKj%kKWG7AAZ3`>o&#*9NObC9tD4sqr5 zD8@=U)KXhWd14_9$K{k>PfQ0*@P6IVvgq%9B#|eQUe3PNsPk=zVjua}&_VNrVE0P@ z9(pF?hih3j{zs@`-Pl9_79F;@sWEZziy)5?5^;p_w!&=`SACGLwPOzlgpdkTb3N_l7laJ&M)bK*z#=-IsoJ@X zUarxb{&4<4=Y=Z9izrHEnlMl@PofY&4stpvR3fv8PGhBi>nfG8wrLKvwjdz0snm(U zN*aixls-KwyIdK?Irq(5xAGcx-oJX@*dk|LLAQd(XxAm;T<`eBMaAFM3 m8sc9s6@;^n`p)%xgpf-@$nPJ7lvjj&04&KR$YcVeGyw?h5u|qj diff --git a/tools/mummer4/test-data/out.cram b/tools/mummer4/test-data/out.cram index 7f2262fb97274ac27273dcc220f82d07e6d798f7..0b9d2fe0caecb7fa69ace0147a6fab9c08f30e28 100644 GIT binary patch delta 333 zcmV-T0kZ!86M+D{$YhmuShg;OB`ck+bt<=aX6t%=|+6Wz0;yG5>3>LlbrLr_W*RjNKxP zF-p*ZBdcp|btg5fg_q_F@HpqaXq_>e9^~1$@B5PkhG4clQolFW`GN7xkLyMIsfF5; z@jTCjupT0x&`4y-?OV-S*O(X;waB7{+vVi1(4B!2{;*Bq^Kk8b}C3&yOPV-N$~og01&!AHCbU+F7@5``1dh&M0r)S40Sj zcy#2EGmUYkR|Yq7niWfQyAXryytSJF75TUy`UA%?ny-FoFj(h<&<6I?53+kRQXj~8 zo@Zh>NiB;13^Ph@I(?r1S8E(!GGMsi*tTXDg!A!{AbdJ;9Pz%(^as1;$ Date: Mon, 18 Mar 2024 16:29:55 +1100 Subject: [PATCH 25/27] Incorporating suggestions for samtools wrangling. --- tools/mummer4/nucmer.xml | 7 +++---- tools/mummer4/test-data/nucmer.txt | 2 +- tools/mummer4/test-data/out.bam | Bin 2356 -> 2355 bytes tools/mummer4/test-data/out.cram | Bin 2561 -> 2559 bytes 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 50aebc58654..4131bb87971 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -66,12 +66,11 @@ #else: && samtools dict reference.fa > outsamhead && tail -n +3 outsam.sam >> outsamhead - && samtools sort -o outsamheadsort outsamhead - && samtools calmd outsamheadsort reference.fa > outsamcalm + && samtools view -T reference.fa -u -x ^ outsamhead | samtools sort -@ \${GALAXY_SLOTS:-1} -u -T "\${TMPDIR:-.}" | #if $outform.out_format == 'bam-long': - && samtools view -b -o outsam outsamcalm + samtools calmd -b --threads {GALAXY_SLOTS:-1} - reference.fa > outsam #else if $outform.out_format == 'cram-long': - && samtools view -C -o outsam -T reference.fa outsamcalm + samtools view -C --reference reference.fa -o outsam - #end if #end if ]]> diff --git a/tools/mummer4/test-data/nucmer.txt b/tools/mummer4/test-data/nucmer.txt index 7ca0b635805..e515076f29e 100644 --- a/tools/mummer4/test-data/nucmer.txt +++ b/tools/mummer4/test-data/nucmer.txt @@ -1,4 +1,4 @@ -/tmp/tmpy6gw75je/files/a/8/d/dataset_a8dfaa04-d4b3-4511-a077-0f1d1613de54.dat /tmp/tmpy6gw75je/files/2/f/e/dataset_2fe26f9b-5fd1-4dbe-86f6-7aac41156c5a.dat +/tmp/tmpk0v09mol/files/2/f/7/dataset_2f771d7a-b9f1-4fc9-b1ea-d06b84d013a0.dat /tmp/tmpk0v09mol/files/d/1/b/dataset_d1bcd825-fbc8-415a-9896-a6af5fd5ebaa.dat NUCMER >NG_007476.1:4960-11439 NC_000070.6:c41098183-41092724 6480 5460 74 223 43 194 19 19 0 diff --git a/tools/mummer4/test-data/out.bam b/tools/mummer4/test-data/out.bam index e99718bd46a75b8fcc848f75928b18c0e4bd5c8e..cf2fb8bbbab03220cc8aaeb7b738cd6238fe1699 100644 GIT binary patch delta 317 zcmV-D0mA;Y60;J2ABzYC000000RIL6LPG)oGy#Q?%}xR_6ot#Oynt~xFVJ7gblMdv z37Wt-N_0!wX&Z?%)XY?TO&`fXj6{^MxViV9#rbk_uCEq@&jA3F+bMi5HNzAx?{ytx z=hhpO{BW{-fXh;svlXRM$Q&~*R8A3NVx-`_)VU}qT#U7UtF07c7o=jf3yiZONa1pB ztnh41C473+VcmF52ubbRZeHn@sx~%cr}u=Df&}7BGQCeLUIZ&g(jqEkj)assQlmm3 zu9UZm@gOY4&ZOa_n!&rN?oFFwYfVu zJu&;`T2<#W2(@WickJK!;5)ymJr3p%fuAB^c7m~8`;QFSLy+&aV-E)afC~V?|Gk0g P5`Zs`hu~ndG64bzy*8A) delta 318 zcmV-E0m1&W60{P3ABzYC000000RIL6LPG)oH35Z@O-{ow5QW{PdjZ5Q7fAer6E|KJ zs8o>J5U5~VP2w>WH8n~M6}RL_s1+ijP_Y=z%v-!qPw(PIPm0|AHQ#VuVFrkE}{*GgxJFe=Y@EQC7C>8voB8gV**PmQfBty1fBE^6z96eFjV z%_LL`Manh3zcX&NM#C5j&C71yv&XGYpONkKj%kKWG7AAZ3`>o&#*9NObC9tD4sqr5 zD8@=U)KXhWd14_9$K{k>PfQ0*@P6IVvgq%9B#|eQUe3PNsPk=zVjua}&_VNrVE0P@ z9(pF?hih3h{zs@`-Pl9_79F;@sWEZziy)5?5^;p_w!&=`SACGLwPOzlgpdD{=q`mUXg6cG?|E^-jdQ5#Q`;?Zt)>~C$nXdY{~TEB5AS)k0nTvc?VazB?ArX|PIDaC9UURU{MM~!w+$BP* zn$bizj1#3B5|equs7_;9Q$rHW!1JR(zW>-Bm5U#($$$pFa($F?=QFj`EHgwfN9D{$YhmuShg;OB`ck+bt<=aX6t%=|+6Wz0;yG5>3>LlbrLr_W*RjNKxP zF-p*ZBdcp|btg5fg_q_F@HpqaXq_>e9^~1$@B5PkhG4clQolFW`GN7xkLyMIsfF5; z@jTCj Date: Mon, 18 Mar 2024 16:37:06 +1100 Subject: [PATCH 26/27] do not remove any headers - they've been repaired! --- tools/mummer4/nucmer.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 4131bb87971..0bb0669701d 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -66,7 +66,7 @@ #else: && samtools dict reference.fa > outsamhead && tail -n +3 outsam.sam >> outsamhead - && samtools view -T reference.fa -u -x ^ outsamhead | samtools sort -@ \${GALAXY_SLOTS:-1} -u -T "\${TMPDIR:-.}" | + && samtools view -T reference.fa -u outsamhead | samtools sort -@ \${GALAXY_SLOTS:-1} -u -T "\${TMPDIR:-.}" | #if $outform.out_format == 'bam-long': samtools calmd -b --threads {GALAXY_SLOTS:-1} - reference.fa > outsam #else if $outform.out_format == 'cram-long': From 4a3953854916763fd5d4b3abf5fa6090081a0a85 Mon Sep 17 00:00:00 2001 From: fubar2 Date: Mon, 18 Mar 2024 20:39:40 +1100 Subject: [PATCH 27/27] remove redundant samtools view --- tools/mummer4/nucmer.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mummer4/nucmer.xml b/tools/mummer4/nucmer.xml index 0bb0669701d..97081d7ab0d 100644 --- a/tools/mummer4/nucmer.xml +++ b/tools/mummer4/nucmer.xml @@ -66,7 +66,7 @@ #else: && samtools dict reference.fa > outsamhead && tail -n +3 outsam.sam >> outsamhead - && samtools view -T reference.fa -u outsamhead | samtools sort -@ \${GALAXY_SLOTS:-1} -u -T "\${TMPDIR:-.}" | + && samtools sort -@ \${GALAXY_SLOTS:-1} -T "\${TMPDIR:-.}" outsamhead | #if $outform.out_format == 'bam-long': samtools calmd -b --threads {GALAXY_SLOTS:-1} - reference.fa > outsam #else if $outform.out_format == 'cram-long':