From 8ceb7d2f1f172d5ec6446eff19152507927c9029 Mon Sep 17 00:00:00 2001 From: EVAN <543357597@qq.com> Date: Wed, 27 Nov 2024 22:00:50 +0800 Subject: [PATCH 1/4] support --ctgs parameter --- tools/snippy/snippy.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/snippy/snippy.xml b/tools/snippy/snippy.xml index e69f8a81b6e..a66158d80c6 100644 --- a/tools/snippy/snippy.xml +++ b/tools/snippy/snippy.xml @@ -1,5 +1,5 @@ - + Snippy finds SNPs between a haploid reference genome and your NGS sequence reads. @@ -22,6 +22,8 @@ #set $dir_name = re.sub('[^\w_]', '_', $fastq_input.fastq_input_single.element_identifier) #elif str( $fastq_input.fastq_input_selector ) == "paired_iv" #set $dir_name = re.sub('[^\w_]', '_', $fastq_input.fastq_input_interleaved.element_identifier) + #elif str( $fastq_input.fastq_input_selector ) == "contigs" + #set $dir_name = re.sub('[^\w_]', '_', $fastq_input.fasta_input.element_identifier) #end if snippy @@ -50,6 +52,8 @@ --se '$fastq_input.fastq_input_single' #elif str( $fastq_input.fastq_input_selector ) == "paired_iv" --peil '$fastq_input.fastq_input_interleaved' + #elif str( $fastq_input.fastq_input_selector ) == "contigs" + --ctgs '$fastq_input.fasta_input' #end if #if "outcon" in str($outputs) and $adv.rename_cons @@ -68,6 +72,7 @@ + @@ -82,6 +87,10 @@ + + + +
From 1cd8c49432101d32b97a116ea1fd5aa353182927 Mon Sep 17 00:00:00 2001 From: EVAN <543357597@qq.com> Date: Thu, 16 Jan 2025 00:56:22 +0800 Subject: [PATCH 2/4] add test for snippy --ctgs --- tools/snippy/snippy.xml | 21 +++++++++++++++---- tools/snippy/test-data/contigs.fasta | 11 ++++++++++ .../d_fna_ref_mincov_1_minqual_60.snps.gff | 3 +++ .../d_fna_ref_mincov_1_minqual_60.snps.txt | 7 +++++++ 4 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 tools/snippy/test-data/contigs.fasta create mode 100644 tools/snippy/test-data/d_fna_ref_mincov_1_minqual_60.snps.gff create mode 100644 tools/snippy/test-data/d_fna_ref_mincov_1_minqual_60.snps.txt diff --git a/tools/snippy/snippy.xml b/tools/snippy/snippy.xml index a66158d80c6..1792406e2a5 100644 --- a/tools/snippy/snippy.xml +++ b/tools/snippy/snippy.xml @@ -1,8 +1,7 @@ - + Snippy finds SNPs between a haploid reference genome and your NGS sequence reads. - macros.xml @@ -69,8 +68,8 @@ - + @@ -88,7 +87,7 @@ - + @@ -228,6 +227,20 @@ + + + + + + + + + + + + + + diff --git a/tools/snippy/test-data/contigs.fasta b/tools/snippy/test-data/contigs.fasta new file mode 100644 index 00000000000..ecdab141ed5 --- /dev/null +++ b/tools/snippy/test-data/contigs.fasta @@ -0,0 +1,11 @@ +>reference +TCCACAAGCCATTGTGTGTAATTAACCACTAATTGTGTATAAGTTTAAACTAATTGAAAAGGTTATCCAC +AATAAAAAGGCGTTATTCAGGAGTTATCCACACTTTCTAGGAAAGGATTTCATTGCGCCAATGTGTTAAA +TTATTTACCGAATACGAAAAAAAGACAAATAAATGAGGTTGTGAAAAATGATATTTCAACGGCTTTTGAA +GACTAGAGATACAGAGTTTTATCGAGTTATACAAAACAGGAATATTGACGACGTATTTGGATACTTATTA +ATTCACGATAAACGGGAACCAGCAGAAATTGACGATTTTAAGGTATTTGCAAAAAGTAATATAAATAAAG +AAGCTTTTTCAGTGAATATCAAAAAAAATCATATTTACACGATGTTTTTCCACTTTACTGATTTAGAGGA +AGAACAGGAAATTCCAAAATTTACTAAAGTTATTCGTTTTATAGAAGGACTTTTATCTTTTCAGCCAGAA +ACAAGCCATTACGTTGATAACTATTTAATAAAGGAAAAACTAATTTTTGAATATCCTGCTGAATTTGAGA +AAATCGGGGAGTTTGCTAAATATTTAGTAAAGCTTTCGGGTCGTAAAATTACTATTCCAGACACAACGAG +AGAAAAATATATCTATTTAACGCAATAATTTTCGAAAAATGGTTTTTCTCTCTATAAAAATATGATATGA diff --git a/tools/snippy/test-data/d_fna_ref_mincov_1_minqual_60.snps.gff b/tools/snippy/test-data/d_fna_ref_mincov_1_minqual_60.snps.gff new file mode 100644 index 00000000000..efce0e49f5a --- /dev/null +++ b/tools/snippy/test-data/d_fna_ref_mincov_1_minqual_60.snps.gff @@ -0,0 +1,3 @@ +##gff-version 3 +reference snippy:4.6.0 variation 141 141 . . 0 note=snp C=>T T:4 C:0 +reference snippy:4.6.0 variation 211 211 . . 0 note=snp A=>G G:5 A:0 diff --git a/tools/snippy/test-data/d_fna_ref_mincov_1_minqual_60.snps.txt b/tools/snippy/test-data/d_fna_ref_mincov_1_minqual_60.snps.txt new file mode 100644 index 00000000000..2eb86565fef --- /dev/null +++ b/tools/snippy/test-data/d_fna_ref_mincov_1_minqual_60.snps.txt @@ -0,0 +1,7 @@ +DateTime 2025-01-15T12:20:46 +ReadFiles fake_reads.fq +Reference reference.fasta +ReferenceSize 700 +Software snippy 4.6.0 +Variant-SNP 2 +VariantTotal 2 From 0ef7539702c6911eca5754f6fc1c76ec306eac60 Mon Sep 17 00:00:00 2001 From: EVAN <543357597@qq.com> Date: Sat, 18 Jan 2025 20:30:15 +0800 Subject: [PATCH 3/4] better snippy fastq_input_selector options --- tools/snippy/snippy.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/snippy/snippy.xml b/tools/snippy/snippy.xml index 1792406e2a5..eeb3c151578 100644 --- a/tools/snippy/snippy.xml +++ b/tools/snippy/snippy.xml @@ -66,11 +66,11 @@ - - - - - + + + + + From 8ff92206440d10c6c3debfb40396d5fd773637ad Mon Sep 17 00:00:00 2001 From: M Bernt Date: Mon, 20 Jan 2025 09:41:20 +0100 Subject: [PATCH 4/4] Minor test improvement --- tools/snippy/snippy.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/snippy/snippy.xml b/tools/snippy/snippy.xml index eeb3c151578..de842e1d218 100644 --- a/tools/snippy/snippy.xml +++ b/tools/snippy/snippy.xml @@ -233,8 +233,10 @@ - - + + + +