Skip to content

Commit

Permalink
option: keep only MANE select transcripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vasicek58 committed May 15, 2024
1 parent 7eec65c commit 7dc1791
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/get_reference_ENST.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
chr = prot['description'].split(':',3)[2]

if chr in CHROMOSOMES:
if ('MANE_Select' in annotations_db[trID].attributes['tag']):
transcript_feature = annotations_db[trID]
if (('tag' in transcript_feature.attributes) and ('MANE_Select' in transcript_feature.attributes['tag'])):
result_data.append([chr,trID])

result_df = pd.DataFrame(data=result_data, columns=['chromosome', 'transcriptID'])
Expand Down

0 comments on commit 7dc1791

Please sign in to comment.