Skip to content

Commit

Permalink
Merge pull request #100 from mskcc/enhancement/rm_enable_conda
Browse files Browse the repository at this point in the history
Enhancement/rm enable conda
  • Loading branch information
anoronh4 authored Nov 20, 2023
2 parents 7d6ba62 + 70d0d91 commit b8ac097
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process MAF_SAMPLESHEET_CHECK {
tag "$samplesheet"

conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
conda "conda-forge::python=3.8.3"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/python:3.8.3' :
'quay.io/biocontainers/python:3.8.3' }"
Expand Down
6 changes: 4 additions & 2 deletions modules/local/starfusion/build/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ process STARFUSION_BUILD {
path "*" , emit: reference

script:
def binPath = ( params.enable_conda ? "prep_genome_lib.pl" : "/usr/local/src/STAR-Fusion/ctat-genome-lib-builder/prep_genome_lib.pl" )
"""
if [ -d /usr/local/src/STAR-Fusion/ctat-genome-lib-builder/ ] ; then
export PATH="/usr/local/src/STAR-Fusion/ctat-genome-lib-builder/:\$PATH"
fi
export TMPDIR=/tmp
wget http://ftp.ebi.ac.uk/pub/databases/Pfam/releases/Pfam34.0/Pfam-A.hmm.gz --no-check-certificate
wget https://github.com/FusionAnnotator/CTAT_HumanFusionLib/releases/download/v0.3.0/fusion_lib.Mar2021.dat.gz -O CTAT_HumanFusionLib_Mar2021.dat.gz --no-check-certificate
Expand All @@ -24,7 +26,7 @@ process STARFUSION_BUILD {
wget https://www.dfam.org/releases/Dfam_3.4/infrastructure/dfamscan/homo_sapiens_dfam.hmm.h3m --no-check-certificate
wget https://www.dfam.org/releases/Dfam_3.4/infrastructure/dfamscan/homo_sapiens_dfam.hmm.h3p --no-check-certificate
gunzip Pfam-A.hmm.gz && hmmpress Pfam-A.hmm
$binPath \\
prep_genome_lib.pl
--genome_fa $fasta \\
--gtf $gtf \\
--annot_filter_rule AnnotFilterRule.pm \\
Expand Down

0 comments on commit b8ac097

Please sign in to comment.