mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
Adding tcoffee module
This commit is contained in:
parent
17ccbce67b
commit
707d2855d6
5 changed files with 70 additions and 2 deletions
4
.github/workflows/tcoffee.yml
vendored
4
.github/workflows/tcoffee.yml
vendored
|
@ -2,7 +2,7 @@ name: FastQC
|
|||
on:
|
||||
push: {}
|
||||
pull_request:
|
||||
paths: tools/fastqc/*
|
||||
paths: tools/tcoffee/*
|
||||
|
||||
jobs:
|
||||
run_ci_test:
|
||||
|
@ -20,4 +20,4 @@ jobs:
|
|||
sudo mv nextflow /usr/local/bin/
|
||||
|
||||
# Test the module
|
||||
- run: nextflow run ./tools/fastqc/test/ -ansi-log false
|
||||
- run: nextflow run ./tools/tcoffee/test/ -ansi-log false
|
||||
|
|
18
tools/tcoffee/main.nf
Normal file
18
tools/tcoffee/main.nf
Normal file
|
@ -0,0 +1,18 @@
|
|||
process tcoffee {
|
||||
tag {fasta}
|
||||
// publishDir "${params.outdir}/tcoffee" //not working
|
||||
publishDir "${baseDir}/results/tcoffee", mode: 'copy'
|
||||
container 'quay.io/biocontainers/t_coffee:11.0.8--py27pl5.22.0_5'
|
||||
|
||||
input:
|
||||
path(fasta)
|
||||
|
||||
output:
|
||||
path("${fasta}.aln")
|
||||
|
||||
script:
|
||||
"""
|
||||
t_coffee -seq $fasta -outfile ${fasta}.aln
|
||||
"""
|
||||
}
|
||||
|
28
tools/tcoffee/meta.yml
Normal file
28
tools/tcoffee/meta.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: t-coffee
|
||||
description: Run tcofee multiple sequence alignment
|
||||
keywords:
|
||||
- MSA
|
||||
- sequence aligment
|
||||
tools:
|
||||
- t-coffee:
|
||||
description: |
|
||||
T-Coffee is a multiple sequence alignment package.
|
||||
It uses a progressive approach and a consistency objective
|
||||
function for alignment evaluation.
|
||||
homepage: http://www.tcoffee.org/
|
||||
documentation: http://www.tcoffee.org/Projects/tcoffee/index.html#DOCUMENTATION
|
||||
input:
|
||||
-
|
||||
- fasta:
|
||||
type: path
|
||||
description: Input fasta file
|
||||
pattern: *.{fasta,fa,tfa}
|
||||
output:
|
||||
-
|
||||
- alignment:
|
||||
type: file
|
||||
description: tcoffee alignment file
|
||||
pattern: *.aln
|
||||
|
||||
authors:
|
||||
- @JoseEspinosa
|
20
tools/tcoffee/test/main.nf
Normal file
20
tools/tcoffee/test/main.nf
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env nextflow
|
||||
|
||||
nextflow.preview.dsl = 2
|
||||
|
||||
include check_output from '../../../nf-core/module_testing/check_process_outputs.nf'
|
||||
include tcoffee from '../main.nf'
|
||||
|
||||
// Define input channels
|
||||
fasta = Channel.fromPath('../../../test-datasets/tools/tcoffee/input/BBA0001.tfa')
|
||||
|
||||
// Run the workflow
|
||||
workflow {
|
||||
tcoffee(fasta)
|
||||
// .check_output()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
2
tools/tcoffee/test/nextflow.config
Normal file
2
tools/tcoffee/test/nextflow.config
Normal file
|
@ -0,0 +1,2 @@
|
|||
docker.enabled = true
|
||||
params.outdir = './results'
|
Loading…
Reference in a new issue