Description

Drop query sequences that have too few residues in the occupied columns of the reference alignment, before EPA-ng placement

Input

name:type
description
pattern

meta

:map

Groovy Map containing sample information e.g. [ id:'sample1' ]

reference

:file

Aligned reference sequences in FASTA format, gzipped or not. A column is occupied when at least one reference sequence has a residue in it; gaps are - and ., and also ?, N and n when the reference is nucleotide. It is taken to be nucleotide when at least 90% of its non-gap characters are A, C, G, T, U or N (either case), otherwise protein, where N is asparagine. EPA-ng drops the unoccupied columns.

*.{fasta,fa,afa,aln}{,.gz}

query

:file

Query sequences aligned to the reference, in FASTA format, gzipped or not, with the same number of columns as reference.

*.{fasta,fa,afa,aln}{,.gz}

min_query_columns

:integer

The minimum number of residues a query must have in occupied columns. At least 1, the lowest value EPA-ng accepts. A query is also dropped when it has no unambiguous residue in them, since EPA-ng reads ?, N, X and O (either case) as gaps and aborts on a query with nothing else, whatever this threshold is.

min_reference_coverage

:float

The minimum fraction of the occupied columns that a query must have a residue in, between 0 and 1. 0 turns this filter off.

Output

name:type
description
pattern

query

meta

:map

Groovy Map containing sample information e.g. [ id:'sample1' ]

*.query.fasta.gz

:file

The queries that passed both thresholds, gzipped aligned FASTA. Not written when no query passes, since an empty file makes EPA-ng fail.

*.query.fasta.gz

table

meta

:map

Groovy Map containing sample information e.g. [ id:'sample1' ]

*.filterquery.tsv

:file

One row per query with the columns query, reference_columns (the number of occupied columns), query_columns (residues of the query in them), reference_coverage (the ratio of the two), unambiguous_columns (the number of those columns where the query has a residue other than ?, N, X and O, either case) and kept (true or false).

*.filterquery.tsv

versions_gawk

${task.process}

:string

The name of the process

gawk

:string

The name of the tool

awk -Wversion | sed '1!d; s/.*Awk //; s/,.*//'

:eval

The expression to obtain the version of the tool

Topics

name:type
description
pattern

versions

${task.process}

:string

The name of the process

gawk

:string

The name of the tool

awk -Wversion | sed '1!d; s/.*Awk //; s/,.*//'

:eval

The expression to obtain the version of the tool