ebv/talon_GTF_2_transcript_bed.py
def create_metadata_entry(gtf_transcript):
    """ Given a GTF transcript (in list form), determine which novelty types
        the transcript has. """

    meta = gtf_transcript[-1]
    transcript_ID = parse_out_transcript_ID(meta)

    known = 0
    ISM = 0
    prefix_ISM = 0
    suffix_ISM = 0
    NIC = 0
    NNC = 0
    genomic = 0
    antisense = 0
    intergenic = 0

    if "ISM_transcript" in meta: ISM = 1
    if "ISM-prefix_transcript" in meta: prefix_ISM = 1
    if "ISM-suffix_transcript" in meta: suffix_ISM = 1
    if "NIC_transcript" in meta: NIC = 1
    if "NNC_transcript" in meta: NNC = 1
    if "genomic_transcript" in meta: genomic = 1
    if "antisense_transcript" in meta: antisense = 1
    if "intergenic_transcript" in meta: intergenic = 1

    if sum([ISM, prefix_ISM, suffix_ISM, NIC, NNC, 
            genomic, antisense, intergenic]) == 0:
        known = 1

    return [transcript_ID, known, ISM, prefix_ISM, suffix_ISM, NIC, NNC, 
            genomic, antisense, intergenic]
 Given a GTF transcript (in list form), determine which novelty types
        the transcript has. 
Given a GTF transcript (in list form), determine which novelty types
the transcript has.
Given a GTF transcript ( in list form ) determine which novelty types the transcript has .
def create_metadata_entry(gtf_transcript):
    meta = gtf_transcript[-1]
    transcript_ID = parse_out_transcript_ID(meta)
    known = 0
    ISM = 0
    prefix_ISM = 0
    suffix_ISM = 0
    NIC = 0
    NNC = 0
    genomic = 0
    antisense = 0
    intergenic = 0
    if "ISM_transcript" in meta: ISM = 1
    if "ISM-prefix_transcript" in meta: prefix_ISM = 1
    if "ISM-suffix_transcript" in meta: suffix_ISM = 1
    if "NIC_transcript" in meta: NIC = 1
    if "NNC_transcript" in meta: NNC = 1
    if "genomic_transcript" in meta: genomic = 1
    if "antisense_transcript" in meta: antisense = 1
    if "intergenic_transcript" in meta: intergenic = 1
    if sum([ISM, prefix_ISM, suffix_ISM, NIC, NNC, 
            genomic, antisense, intergenic]) == 0:
        known = 1
    return [transcript_ID, known, ISM, prefix_ISM, suffix_ISM, NIC, NNC, 
            genomic, antisense, intergenic]
def create_metadata_entry ( gtf_transcript ) : meta = gtf_transcript [ - 1 ] transcript_ID = parse_out_transcript_ID ( meta ) known = 0 ISM = 0 prefix_ISM = 0 suffix_ISM = 0 NIC = 0 NNC = 0 genomic = 0 antisense = 0 intergenic = 0 if "ISM_transcript" in meta : ISM = 1 if "ISM-prefix_transcript" in meta : prefix_ISM = 1 if "ISM-suffix_transcript" in meta : suffix_ISM = 1 if "NIC_transcript" in meta : NIC = 1 if "NNC_transcript" in meta : NNC = 1 if "genomic_transcript" in meta : genomic = 1 if "antisense_transcript" in meta : antisense = 1 if "intergenic_transcript" in meta : intergenic = 1 if sum ( [ ISM , prefix_ISM , suffix_ISM , NIC , NNC , genomic , antisense , intergenic ] ) == 0 : known = 1 return [ transcript_ID , known , ISM , prefix_ISM , suffix_ISM , NIC , NNC , genomic , antisense , intergenic ]
Given a GTF transcript (in list form), determine which novelty types
the transcript has.
Given a GTF transcript ( in list form ) determine which novelty types the transcript has .
""" Given a GTF transcript (in list form), determine which novelty types
        the transcript has. """
gtf_transcript