Skip to content

Commit

Permalink
Extract rRNA alleles with barrnap
Browse files Browse the repository at this point in the history
Addresses #56
  • Loading branch information
Sam Minot committed Jan 26, 2021
1 parent 6169416 commit b966b47
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions modules/assembly.nf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ workflow assembly_wf {
assembly.out
)

// Extract rRNA alleles from all contigs
barrnap(
assembly.out
)

// Calculate summary metrics for every assembled gene in each sample
parseGeneAnnotations(
prodigal.out[0]
Expand Down Expand Up @@ -265,6 +270,31 @@ gzip ${specimen}.faa
}


// Extraction of rRNA alleles with barrnap

process barrnap{
tag "Extract predicted rRNA alleles"
container "quay.io/biocontainers/barrnap:0.9--3"
label 'io_limited'
errorStrategy 'retry'
publishDir "${params.output_folder}/assembly/${specimen}", mode: "copy"

input:
tuple val(specimen), file(fasta), file(spades_log)

output:
path "${specimen}.rrna.fasta"
path "${specimen}.rrna.gff"

"""
#!/bin/bash
gunzip -c ${fasta} > FASTA
barrnap -o ${specimen}.rrna.fasta < FASTA > ${specimen}.rrna.gff
"""

}

// Summarize the depth of sequencing and GC content for every assembled gene
process parseGeneAnnotations {
tag "Summarize every assembled gene"
Expand Down

0 comments on commit b966b47

Please sign in to comment.