<commit_before>
from collections import namedtuple

from . import get_refseq_type


class Position(object):
    def __init__(self, chrom, chrom_start, chrom_stop, is_forward_strand):
        self.chrom = chrom
        self.chrom_start = chrom_start
        self.chrom_stop = chrom_stop
        self.is_forward_strand = is_forward_strand


class Gene(object):
    def __init__(self, name):
        self.name = name


class Transcript(object):
    """RefGene Transcripts for hg19

    A gene may have multiple transcripts with different combinations of exons.
    """

    def __init__(self, name, version, gene, tx_position, cds_position,
                 is_default=False, exons=None):
        self.name = name
        self.version = version
        self.gene = Gene(gene)
        self.tx_position = tx_position
        self.cds_position = cds_position
        self.is_default = is_default
        self.exons = exons if exons else []

    @property
    def is_coding(self):
        return get_refseq_type(self.name) == 'mRNA'
<commit_msg>added full_name to transcript<commit_after>
from collections import namedtuple

from . import get_refseq_type


class Position(object):
    def __init__(self, chrom, chrom_start, chrom_stop, is_forward_strand):
        self.chrom = chrom
        self.chrom_start = chrom_start
        self.chrom_stop = chrom_stop
        self.is_forward_strand = is_forward_strand


class Gene(object):
    def __init__(self, name):
        self.name = name


class Transcript(object):
    """RefGene Transcripts for hg19

    A gene may have multiple transcripts with different combinations of exons.
    """

    def __init__(self, name, version, gene, tx_position, cds_position,
                 is_default=False, exons=None):
        self.name = name
        self.version = version
        self.gene = Gene(gene)
        self.tx_position = tx_position
        self.cds_position = cds_position
        self.is_default = is_default
        self.exons = exons if exons else []

    @property
    def full_name(self):
        return '%s.%d' % (self.name, self.version)

    @property
    def is_coding(self):
        return get_refseq_type(self.name) == 'mRNA'

{'fraction_non_alphanumeric': 0.08199725148877691, 'fraction_numerical': 0.0018323408153916628, 'mean_word_length': 2.7655172413793103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3035704', 'n_tokens_mistral': 688, 'n_tokens_neox': 632, 'n_words': 170}