#NEWLINE# def make_model( sample_obj , transcript_id , fields ) : #NEWLINE# #INDENT# 'Compose a transcript stat model from fields.\n\n    Args:\n        sample_obj (Sample): Sample database model\n        transcript_id (str): unique transcript id\n        fields (dict): key/values of metrics\n\n    Returns:\n        Transcript: composed transcript model\n    ' #NEWLINE# tx_model = TranscriptStat ( sample_id = sample_obj . id , transcript_id = transcript_id , ** fields ) #NEWLINE# return tx_model