sugar._io.genbank module

GenBank reader

sugar._io.genbank.is_fts_genbank(f, **kw)
sugar._io.genbank.is_genbank(f, **kw)[source]
sugar._io.genbank.iter_genbank(f, exclude=())[source]

Read GenBank records and sequences from file into BioBasket

Parameters:

exclude (tuple) – Tuple of feature names to exclude, possible options are 'seq', 'translation', 'fts'.

Warning

This function should NOT be called directly, it registers via read() and iter_(), call this instead.

sugar._io.genbank.read_fts_genbank(f, exclude=())[source]

Read GenBank feature records from file into FeatureList

Parameters:

exclude (tuple) – Tuple of feature names to exclude, possible options are 'translation', 'fts', sequences are excluded anyway.

Warning

This function should NOT be called directly, it registers via read_fts(), call this instead.