Skip to content

Commit

Permalink
grep ensembl transcript with ENS*T instead of ENST, to include non-hu…
Browse files Browse the repository at this point in the history
…man transcripts
  • Loading branch information
mhoang22 committed Feb 7, 2025
1 parent 0eea407 commit 5396e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvactools/lib/combine_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def add_junction_coordinates_to_variants(self):

# remove version number in annotated to compare with filtered junctions file
var_df[['transcript_id', 'transcript_version']] = var_df['transcript_name'].str.split('.', expand=True)
var_df = var_df.loc[var_df['transcript_id'].str.startswith('ENST') == True]
var_df = var_df.loc[var_df['transcript_id'].str.contains(r'^ENS.*T', regex=True)]
var_df['transcript_version'] = var_df['transcript_version'].astype('int64')

# create new cols
Expand Down

0 comments on commit 5396e98

Please sign in to comment.