gffutils.helpers.sanitize_gff_db

gffutils.helpers.sanitize_gff_db(db, gid_field='gid')[source]

Sanitize given GFF db. Returns a sanitized GFF db.

Sanitizing means:

  • Ensuring that start < stop for all features

  • Standardizing gene units by adding a ‘gid’ attribute that makes the file grep-able

TODO: Do something with negative coordinates?