Skip to content

Commit 5f05977

Browse files
committed
Cast exon phases to integers
1 parent 28db565 commit 5f05977

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

thoraxe/transcript_info/transcript_info.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ def read_exon_file(exon_table_file):
155155
for col in int_cols_with_nas:
156156
exon_data[col] = pd.to_numeric(exon_data[col])
157157

158+
for col in ["StartPhase", "EndPhase"]:
159+
exon_data[col] = pd.to_numeric(exon_data[col]).astype(int)
160+
158161
# Sort exon by rank in transcript :
159162
# ---------------------------------
160163
exon_data.sort_values(by=['GeneID', 'TranscriptID', 'ExonRank'],

0 commit comments

Comments
 (0)