* output constant sites as a val as well as a file so it can be passed into iqtree

* Using an env variable because that's far safer!

* Update software/snpsites/main.nf

* remove hardcoded param that should be a user option

* Update software/snpsites/main.nf

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
Anthony Underwood 2021-05-06 16:05:07 +01:00 committed by GitHub
parent b6e4ecabba
commit 4422454ba5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -29,8 +29,9 @@ process SNPSITES {
script:
def software = getSoftwareName(task.process)
"""
snp-sites -c \\
snp-sites \\
$alignment \\
$options.args \\
> filtered_alignment.fas
echo \$(snp-sites -C $alignment) > constant.sites.txt

View file

@ -4,6 +4,6 @@
- snpsites
files:
- path: output/snpsites/filtered_alignment.fas
md5sum: 34a3d2ae4439447eabe80282f4625dba
md5sum: f96c7513003e878e16fa9eac9fcda0f4
- path: output/snpsites/constant.sites.txt
md5sum: 8b9b226e3787f7baaefce07405af22c9