def get_fasta_record(fasta_file, transcript_name):
with open_pysam_file(fname=fasta_file, ftype='<STR_LIT>') as f:<EOL><INDENT>sequence = f.fetch(transcript_name)<EOL><DEDENT>return {transcript_name: sequence}<EOL>
Return a single transcript from a valid fasta file as a record.

    record[transcript_name] = sequence

    Keyword arguments:
    fasta_file -- FASTA format file of the transcriptome
    transcript_name -- Name of the transcript as in the FASTA header