#NEWLINE# def process( sequence ) : #NEWLINE# #INDENT# 'Process a sequence of exon lines.\n\n    Args:\n        sequence (sequence): list of chanjo bed lines\n\n    Returns:\n        Result: iterators of transcript models, number of transcripts processed\n    ' #NEWLINE# exons = bed . chanjo ( sequence ) #NEWLINE# transcripts = groupby_tx ( exons ) #NEWLINE# models = ( make_model ( tx_id , exons ) for ( tx_id , exons ) in iteritems ( transcripts ) ) #NEWLINE# return Result ( models = models , count = len ( transcripts ) )