Skip to content

Commit

Permalink
pass nextflow config on to remapping pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
apriltuesday committed Jun 7, 2024
1 parent a072bf1 commit f5d05b2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion eva_assembly_ingestion/nextflow/remap_cluster.nf
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,22 @@ process remap_variants {
done
PATH=`pwd`/bin:\$PATH
source $params.executable.python_activate
# Set nextflow config if needed - has to be passed via commandline arg rather than env var
if [[ -z "\${ASSEMBLY_NEXTFLOW_CONFIG:-}" ]]
then
nextflow_config_flag=""
else
nextflow_config_flag="-c \${ASSEMBLY_NEXTFLOW_CONFIG}"
fi
# Nextflow needs the full path to the input parameters hence the pwd
$params.executable.nextflow run $params.nextflow.remapping -resume \
--oldgenome `pwd`/${source_fasta} \
--newgenome `pwd`/${target_fasta} \
--vcffile `pwd`/${source_vcf} \
--outfile `pwd`/${basename_source_vcf}_remapped.vcf
--outfile `pwd`/${basename_source_vcf}_remapped.vcf \
\${nextflow_config_flag}
"""
}

Expand Down

0 comments on commit f5d05b2

Please sign in to comment.