Skip to content

Commit

Permalink
removed bps
Browse files Browse the repository at this point in the history
  • Loading branch information
fairliereese committed Feb 5, 2024
1 parent 3c6987c commit 12475d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cerberus/cerberus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,6 @@ def read_bed(bed_file, mode):
Returns:
df (pandas DataFrame): DataFrame representation of bed file
"""

df = pr.read_bed(bed_file).df

# bed files without strands but with a column that the
Expand Down Expand Up @@ -2525,6 +2524,7 @@ def replace_gtf_ids(h5, gtf, source, update_ends, agg, o):
# temporary fix for problematic transcripts
# pdb.set_trace()
m_df = fix_prob_col_dtypes(m_df)

rm_tids = m_df.loc[(m_df.tss_first_sd_issue)|(m_df.tes_last_sa_issue), 'original_transcript_id'].tolist()
df = df.loc[~df.transcript_id.isin(rm_tids)]

Expand All @@ -2535,6 +2535,7 @@ def replace_gtf_ids(h5, gtf, source, update_ends, agg, o):
left_on=['transcript_name', 'transcript_id'],
right_on=['original_transcript_name', 'original_transcript_id'],
suffixes=('', '_cerberus'))

df.drop(['transcript_id', 'transcript_name'], axis=1, inplace=True)
df.rename({'transcript_id_cerberus': 'transcript_id',
'transcript_name_cerberus': 'transcript_name'},
Expand Down

0 comments on commit 12475d1

Please sign in to comment.