diff csp2_snp.xml @ 33:6f4e6377ba64

"planemo upload"
author rliterman
date Thu, 05 Dec 2024 12:32:42 -0500
parents a12953834916
children 499342837ad7
line wrap: on
line diff
--- a/csp2_snp.xml	Thu Dec 05 10:47:01 2024 -0500
+++ b/csp2_snp.xml	Thu Dec 05 12:32:42 2024 -0500
@@ -63,7 +63,13 @@
         export RESCUE_ARG="";
 fi;
 
-nextflow run ${__tool_directory__}/CSP2/CSP2.nf -profile csp2_galaxy --cores 2 --runmode snp \$QUERY_FASTA_ARG \$REF_FASTA_ARG \$QUERY_READS_ARG \$REF_READS_ARG \$REF_ID_ARG \$TRIM_ARG \$RESCUE_ARG --readext $readext --forward $forward --reverse $reverse --ref_readext $readext --ref_forward $forward --ref_reverse $reverse --min_cov $min_cov --min_iden $min_iden --min_len $min_len --ref_edge $ref_edge --query_edge $query_edge --dwin $dwin --wsnps $wsnps --max_missing $max_missing --n_ref $n_ref --out \$CSP2_DIR/CSP2_SNP_Output > Nextflow_Log.txt 2>&1;
+if [[ "$ondemand" == "true" ]]; then
+        export PROFILE_ARG="-profile csp2_galaxy1";
+else
+        export PROFILE_ARG="-profile csp2_galaxy2";
+fi;
+
+nextflow run ${__tool_directory__}/CSP2/CSP2.nf \$PROFILE_ARG --runmode snp \$QUERY_FASTA_ARG \$REF_FASTA_ARG \$QUERY_READS_ARG \$REF_READS_ARG \$REF_ID_ARG \$TRIM_ARG \$RESCUE_ARG --readext $readext --forward $forward --reverse $reverse --ref_readext $readext --ref_forward $forward --ref_reverse $reverse --min_cov $min_cov --min_iden $min_iden --min_len $min_len --ref_edge $ref_edge --query_edge $query_edge --dwin $dwin --wsnps $wsnps --max_missing $max_missing --n_ref $n_ref --out \$CSP2_DIR/CSP2_SNP_Output > Nextflow_Log.txt 2>&1;
 zip -r CSP2_Output.zip CSP2_SNP_Output;
         ]]>
         </command>
@@ -87,7 +93,7 @@
                 <param name="rescue" type="boolean" value="false" label="Enable SNP edge rescue mode" optional="true" />
                 <param name="max_missing" type="float" value="50" label="Maximum percent of isolates allowed to have missing data to retain a SNP" optional="true" />
                 <param name="n_ref" type="integer" value="1" label="Number of reference isolates for CSP2 to select" optional="true" />
-
+                <param name="ondemand" type="boolean" value="true" label="Use -profile csp2_galaxy1 (ondemand-small queue; set to false to use csp2_galaxy2 q8cpu)" optional="true" />
         </inputs>
         <outputs>
                 <data name="raw_mummer" format="tabular" label="Raw MUMmer Output" from_work_dir="CSP2_SNP_Output/Raw_MUMmer_Summary.tsv" />