Assembly & Annotation#
Note
This is not a guide for getting started with Metasmith. See the tutorial instead.
Usage#
Metasmith includes a built-in library of transformations covering common workflows in genomic assembly and functional annotation.
1from metasmith.python_api import *
2dtypes, containers, transforms = Std()
dtypes: the data types provided by the librarytransforms: the transforms provided by the librarycontainers: a data instance library providing containers for execution of thetransforms
You can use these APIs when generating a workflow. For example:
1smith.GenerateWorkflow(
2 samples = [inputs],
3 resources = [containers],
4 transforms = [transforms],
5 targets = [dtypes["functional_annotation"]]
6)
assuming inputs is a DataInstanceLibrary with some user-provided inputs.
Data Types#
The assembly and annotation library provides the following data types:
Quality Control#
read_stats: short OR long read quality stats
Assembly#
long_reads_filtered: filtered to remove low-quality reads (based on length and identity)long_reads_assemblyshort_reads_trimmed: quality trimmed and adapters clippedshort_reads_assemblysequence_alignment_map: short reads mapped on a draft assembly built with long readsbinary_alignment_map: binary version of sequence_alignment_maphybrid_assembly: long read draft assembly improved with short readsassembly: a generic type over short_reads_assembly, long_reads_assembly, or hybrid_assembly
Annotation#
Databases#
bakta_database: the BAKTA database, hosted herebakta_database_light: the lightweight BAKTA databasebakta_database_full: the default BAKTA database
Kofamscan
cazy_ref: the CAZy database, hosted hereBUSCO
All lineage databases are hosted here
busco_ref: therefseq_db.faafile from a lineage databasebusco_map: thespecies.infofile from a lineage database
Annotation outputs#
coding_sequences: a FASTA of all predicted coding sequencesgene_features: a GFF3 annotation file including genomic coordinates and other metadatabakta_annotations: a genome annotated by BAKTAkofamscan_annotations: a genome annotated by Kofamscancazy_annotations: a BLAST-style TSV of CDS hits against CAZybusco_annotations: a BLAST-style TSV of CDS hits against BUSCOfunctional_annotations: a compiled directory of all annotation outputs