From 2826ed4d16d867bdc2705752a4e8a29ffb80d144 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Mon, 29 Jul 2024 14:27:05 -0500 Subject: [PATCH] test: Try hard coding the example file? Had to remove the kmer lists as well --- examples/manual.fa | 2 ++ main.nf | 2 +- modules/primer3_calc/main.nf | 2 +- modules/primer3_conf/main.nf | 25 ++++++++++++------------- nextflow.config | 6 +++--- 5 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 examples/manual.fa diff --git a/examples/manual.fa b/examples/manual.fa new file mode 100644 index 0000000..e866202 --- /dev/null +++ b/examples/manual.fa @@ -0,0 +1,2 @@ +>example +GTAGTCAGTAGACNATGACNACTGACGATGCAGACNACACACACACACACAGCACACAGGTATTAGTGGGCCATTCGATCCCGACCCAAATCGATAGCTACGATGACG diff --git a/main.nf b/main.nf index 93869d4..6168934 100644 --- a/main.nf +++ b/main.nf @@ -15,6 +15,6 @@ workflow { primer3_conf(target,ref) primer3_index(ref) - primer3_calc(primer3_conf.out,primer3_index.out) + primer3_calc(primer3_conf.out) primer3_results2fasta(primer3_calc.out) } diff --git a/modules/primer3_calc/main.nf b/modules/primer3_calc/main.nf index 6f08c88..4bb5e31 100644 --- a/modules/primer3_calc/main.nf +++ b/modules/primer3_calc/main.nf @@ -6,7 +6,7 @@ process primer3_calc { input: path conf - path kmer_lists, stageAs: 'kmer_lists/*' + // path kmer_lists, stageAs: 'kmer_lists/*' output: path "*primer3.txt" diff --git a/modules/primer3_conf/main.nf b/modules/primer3_conf/main.nf index 485b300..14fa9e8 100644 --- a/modules/primer3_conf/main.nf +++ b/modules/primer3_conf/main.nf @@ -5,7 +5,7 @@ process primer3_conf { input: path target - path fasta + path fasta // TODO Cut this out output: path "custom_primer3.conf" @@ -23,22 +23,21 @@ process primer3_conf { ## ## - echo "SEQUENCE_ID=$(seqkit fx2tab !{target} | cut -f 1) - SEQUENCE_TEMPLATE=$(seqkit fx2tab !{target} | cut -f 2) - SEQUENCE_TARGET=50000,20 - SEQUENCE_EXCLUDED_REGION=49965,70 + echo "SEQUENCE_ID=example + SEQUENCE_TEMPLATE=GTAGTCAGTAGACNATGACNACTGACGATGCAGACNACACACACACACACAGCACACAGGTATTAGTGGGCCATTCGATCCCGACCCAAATCGATAGCTACGATGACG + SEQUENCE_TARGET=37,21 PRIMER_TASK=generic PRIMER_PICK_LEFT_PRIMER=1 - PRIMER_PICK_INTERNAL_OLIGO=0 + PRIMER_PICK_INTERNAL_OLIGO=1 PRIMER_PICK_RIGHT_PRIMER=1 - PRIMER_OPT_SIZE=20 - PRIMER_MIN_SIZE=18 - PRIMER_MAX_SIZE=22 - PRIMER_PRODUCT_SIZE_RANGE=75-500 + PRIMER_OPT_SIZE=18 + PRIMER_MIN_SIZE=15 + PRIMER_MAX_SIZE=21 + PRIMER_MAX_NS_ACCEPTED=1 + PRIMER_PRODUCT_SIZE_RANGE=75-100 + P3_FILE_FLAG=1 + SEQUENCE_INTERNAL_EXCLUDED_REGION=37,21 PRIMER_EXPLAIN_FLAG=1 - PRIMER_MASK_TEMPLATE=1 - PRIMER_MASK_KMERLIST_PREFIX=!{fasta} - PRIMER_MASK_KMERLIST_PATH=./kmer_lists/ =" > custom_primer3.conf ''' } diff --git a/nextflow.config b/nextflow.config index 55f8946..18728bf 100644 --- a/nextflow.config +++ b/nextflow.config @@ -7,10 +7,10 @@ docker.enabled = true wave.enabled = true profiles { - test { + example { params { - fasta = "${projectDir}/examples/example.fa" - targetseq = "ATGGGAGGAGAAGGGTATCGCGG" + fasta = "${projectDir}/examples/manual.fa" + targetseq = "GTAGTCAGTAGACNATGACNACTGACGATGCAGACNACACACACACACACAGCACACAGGTATTAGTGGGCCATTCGATCCCGACCCAAATCGATAGCTACGATGACG" } } }