-
Notifications
You must be signed in to change notification settings - Fork 950
Goalign cleanseqs #1785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goalign cleanseqs #1785
Changes from all commits
1b14872
0f8449d
45c275e
80c677b
f1b2025
a7e7be6
4c00fed
bba8e9d
54d0c13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| process GOALIGN_CLEANSEQS { | ||
| tag "goalign-cleanseqs:${aln}"; | ||
| label 'process_low' | ||
|
|
||
| conda (params.enable_conda ? "bioconda::goalign=0.3.5" : null) | ||
| container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
| 'https://depot.galaxyproject.org/singularity/goalign:0.3.5--h65a6115_0': | ||
| 'quay.io/biocontainers/goalign:0.3.5--h65a6115_0' }" | ||
|
|
||
| input: | ||
| path(aln) | ||
andersgs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| output: | ||
| path("*.{fasta,fas,fa,phy}"), emit: aln | ||
| path "versions.yml" , emit: versions | ||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = "${aln.getName()}_clean" | ||
andersgs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| """ | ||
| goalign \\ | ||
| clean \\ | ||
| seqs \\ | ||
| -t ${task.cpus} \\ | ||
| $args \\ | ||
| -o ${prefix}.${aln.getExtension()} \\ | ||
| -i $aln | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If input format is phylip, the option |
||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| goalign: \$(echo \$(goalign version)) | ||
| END_VERSIONS | ||
| """ | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,32 @@ | ||||||
| name: "goalign_cleanseqs" | ||||||
| description: Filter out poor sequences from a multisequence alignment | ||||||
| keywords: | ||||||
| - multiple sequence alignment | ||||||
| - quality control | ||||||
| tools: | ||||||
| - "goalign": | ||||||
| description: "goalign is a set of command line tools to manipulate multiple alignments" | ||||||
| homepage: "https://github.com/evolbioinfo/goalign" | ||||||
| documentation: "https://github.com/evolbioinfo/goalign/blob/master/docs/index.md" | ||||||
| tool_dev_url: "https://github.com/evolbioinfo/goalign" | ||||||
| doi: "10.1093/nargab/lqab075" | ||||||
| licence: "['GPL v2']" | ||||||
|
|
||||||
| input: | ||||||
| - aln: | ||||||
| type: file | ||||||
| description: MultiFASTA/Phylip alignment file | ||||||
| pattern: "*.{fasta,phy}" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not familiar with goalign, but should this be
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tools also supports compressed inputs, so it should account for those too |
||||||
|
|
||||||
| output: | ||||||
| - versions: | ||||||
| type: file | ||||||
| description: File containing software versions | ||||||
| pattern: "versions.yml" | ||||||
| - aln: | ||||||
| type: file | ||||||
| description: MultiFASTA/Phylip alignment file | ||||||
| pattern: "*.{fasta,phy}" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This is what's in the output.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is true, plus as mentioned below, it can be gzipped. So, I have changed the output file to mirror the input file's extension: path("*.${aln.getExtension()}"), emit: aln |
||||||
|
|
||||||
| authors: | ||||||
| - "@andersgs" | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/usr/bin/env nextflow | ||
|
|
||
| nextflow.enable.dsl = 2 | ||
|
|
||
| include { GOALIGN_CLEANSEQS } from '../../../../modules/goalign/cleanseqs/main.nf' | ||
|
|
||
| workflow test_goalign_cleanseqs { | ||
|
|
||
| input = file(params.test_data['sarscov2']['genome']['all_sites_fas'], checkIfExists: true) | ||
|
|
||
| GOALIGN_CLEANSEQS ( input ) | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| process { | ||
| ext.args = "--cutoff 0.05" | ||
| publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| - name: "goalign cleanseqs" | ||
| command: nextflow run ./tests/modules/goalign/cleanseqs -entry test_goalign_cleanseqs -c ./tests/config/nextflow.config -c ./tests/modules/goalign/cleanseqs/nextflow.config | ||
| tags: | ||
| - "goalign" | ||
| # | ||
andersgs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - "goalign/cleanseqs" | ||
| # | ||
andersgs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| files: | ||
| - path: "output/goalign/all_sites.fas_clean.fas" | ||
| md5sum: f7b946d6d5000f83baa401addd7bb26a | ||
| - path: output/goalign/versions.yml | ||
| md5sum: 2dc17f26bc12547017e2a7eb66ae503f | ||
Uh oh!
There was an error while loading. Please reload this page.