Skip to content

Commit

Permalink
added all types
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Jan 29, 2021
1 parent ab4fb45 commit 47f01be
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apollo/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
'tmRNA', 'enzymatic_RNA']
single_level_feature_types = ["repeat_region", "terminator", "transposable_element"]

other_genomic_feature_types = ['exon', 'CDS', 'Shine_Dalgarno_sequence', 'non_canonical_three_prime_splice_site',
'non_canonical_five_prime_splice_site']
all_feature_types = gene_types + coding_transcript_types + pseudogenes_types + noncoding_transcript_types + other_genomic_feature_types


def WAAuth(parser):
parser.add_argument('apollo', help='Complete Apollo URL')
Expand Down Expand Up @@ -89,10 +93,7 @@ def AssertAdmin(user):


def _tnType(feature):
if feature.type in (
'gene', 'mRNA', 'exon', 'CDS', 'terminator', 'tRNA', 'snRNA', 'snoRNA', 'ncRNA', 'rRNA', 'miRNA',
'repeat_region', 'transposable_element', 'pseudogene', 'transcript', 'Shine_Dalgarno_sequence',
'non_canonical_three_prime_splice_site', 'non_canonical_five_prime_splice_site'):
if feature.type in all_feature_types:
return feature.type
else:
return 'exon'
Expand Down

0 comments on commit 47f01be

Please sign in to comment.