outrigger.io.gtf module¶
Functions for creating GTF databases using gffutils and using those databases to annotate alternative events.
-
class
outrigger.io.gtf.SplicingAnnotator(db, events, splice_type)[source]¶ Bases:
objectAnnotates basic features of splicing events: gene ids and names
Methods
attributes()Retrieve all GTF attributes for each isoform’s event event_introns_regions(exons)Make intron and event regions for an event exon_bedfiles(folder)maybe_get_feature(feature_id)Annotate splicing events with their respective genes
Parameters: db : gffutils.FeatureDB
Database including all the exons found in the events
events : pandas.DataFrame
Table of events, with the event ids as the index
splice_type : ‘se’ | ‘mxe’
The type of alternative splicing, which informs the exon configurations for different isoforms
Methods
attributes()Retrieve all GTF attributes for each isoform’s event event_introns_regions(exons)Make intron and event regions for an event exon_bedfiles(folder)maybe_get_feature(feature_id)