Skip to content

Commit

Permalink
Merge pull request #193 from replikation/fix-singularity
Browse files Browse the repository at this point in the history
rm container option that crashes singularity
  • Loading branch information
mult1fractal authored Jul 25, 2024
2 parents 39fdd91 + b04bfa4 commit 6bf724e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
2 changes: 1 addition & 1 deletion configs/container.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ process {
withLabel: prodigal { container = 'nanozoo/prodigal:2.6.3--2769024' }
withLabel: python { container = 'nanozoo/template:3.8--ccd0653' }
withLabel: samtools { container = 'nanozoo/samtools:1.9--76b9270' }
withLabel: seqkit { container = 'nanozoo/seqkit:0.13.2--cd66104' ; containerOptions = '--shm-size 2g' }
withLabel: seqkit { container = 'nanozoo/seqkit:0.13.2--cd66104'}
withLabel: sourmash { container = 'nanozoo/sourmash:4.5.0--e12a57a' }
withLabel: ubuntu { container = 'nanozoo/basics:1.0--962b907' }
withLabel: upsetr { container = 'nanozoo/upsetr:1.4.0--0ea25b3' }
Expand Down
3 changes: 2 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ profiles {
enabled = true
autoMounts = true
cacheDir = params.cachedir
envWhitelist = 'SINGULARITY_LOCALCACHEDIR'
//envWhitelist = 'SINGULARITY_LOCALCACHEDIR'
envWhiteList = "HTTPS_PROXY,HTTP_PROXY,http_proxy,https_proxy,FTP_PROXY,ftp_proxy"
}
includeConfig 'configs/container.config'
}
Expand Down
1 change: 1 addition & 0 deletions workflows/process/sourmash/sourmash.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ process sourmash {
filename=\$(basename \${tempfile} .fa.sig.temporary)
prediction_value=\$(grep -v "similarity,md5,filename,name,query_filename,query_name,query_md5,ani" \${tempfile} |sort -r -k1 | awk 'NR == 1' | cut -d "," -f1 )
touch ${name}_\${PWD##*/}.list
if [ \$value -gt 0 ]
then echo "\$filename,\$prediction_value" >> ${name}_\${PWD##*/}.list
fi
Expand Down
14 changes: 9 additions & 5 deletions workflows/process/virsorter/filter_virsorter.nf
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ process filter_virsorter {
echo "\$line,0" >> pro_phage_virsorter.tsv
fi
done < virsorter_categorized_contigs_*.list
grep ">" virsorter_phage.tsv | \\
sed -e s/\\>VIRSorter_//g | \\
sed -e s/\\-cat_[1-3]//g | \\
awk -F, '{print \$1, \$2}' OFS="\\t" > virsorter_\${PWD##*/}.tsv
rm virsorter_phage.tsv
if [ -s virsorter_phage.tsv ]; then
grep ">" virsorter_phage.tsv | \\
sed -e s/\\>VIRSorter_//g | \\
sed -e s/\\-cat_[1-3]//g | \\
awk -F, '{print \$1, \$2}' OFS="\\t" > virsorter_\${PWD##*/}.tsv
rm virsorter_phage.tsv
else
touch virsorter_\${PWD##*/}.tsv
fi
"""
}
14 changes: 9 additions & 5 deletions workflows/process/virsorter_virome/filter_virsorter_virome.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ process filter_virsorter_virome {
fi
done < virsorter_categorized_contigs_*.list
grep ">" virsorter_phage.tsv | \\
sed -e s/\\>VIRSorter_//g | \\
sed -e s/\\-cat_[1-3]//g | \\
awk -F, '{print \$1, \$2}' OFS="\\t" > virsorter-virome_\${PWD##*/}.tsv
rm virsorter_phage.tsv
if [ -s virsorter_phage.tsv ]; then
grep ">" virsorter_phage.tsv | \\
sed -e s/\\>VIRSorter_//g | \\
sed -e s/\\-cat_[1-3]//g | \\
awk -F, '{print \$1, \$2}' OFS="\\t" > virsorter-virome_\${PWD##*/}.tsv
rm virsorter_phage.tsv
else
touch virsorter-virome_\${PWD##*/}.tsv
fi
"""
}

0 comments on commit 6bf724e

Please sign in to comment.