Skip to content

Commit 5a28661

Browse files
authored
Merge pull request #17 from PhyloSofS-Team/fix-phase-columns-as-int
Cast exon phases to integers
2 parents 5dfdc53 + 5f05977 commit 5a28661

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)