Skip to content

Create summary tables #1033

Description

@erikrikarddaniel

Description of feature

In magmap and metatdenovo we're producing summary tables in <OUTDIR>/summary_tables that are gzipped tsv tables with consistent column names (lower case only) ready for analysis in R, Python or whichever tool one prefers. For Ampliseq, this would mean producing two tables: <OUTDIR>/summary_tables/ampliseq.counts.tsv.gz, ASV counts in "long" format without zeroes, i.e. missing ASVs in a particular sample, and <OUTDIR>/summary_tables/ampliseq.taxonomy.<tool><db>.tsv.gz, where <tool> is the annotation tool, e.g. dada_add_species or phyloplace, <db> is the name (including version number) of the annotation database.

In an ideal world, I'd also like to consolidate taxonomies, i.e. create a table that for each ASV selects the best scoring taxonomy from a number of different databases run with the same tool. I can see two ways of doing this: Either allow the database flags, e.g. --dada_ref_taxonomy to take a comma-separated list of databases or let the pipeline check for existing taxonomies when invoked with --consolidate_taxonomies. I think the latter would be easiest if a bit unorthodox that the pipeline reads its own output directory.

I'm ready to work on a PR for this that we can take under consideration later.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions