Skip to content

Commit cf7f204

Browse files
committed
adjust regres variable for correct auc fscore
1 parent c889232 commit cf7f204

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tpcav/cavs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,9 @@ def load_meme_motif_info(key):
553553
cavs_fscores_df[['motif_len', 'information_content', 'information_content_GC']] = cavs_fscores_df.apply(lambda x: load_meme_motif_info(x['concept']), axis=1, result_type='expand')
554554

555555
model = LinearRegression()
556-
model.fit(cavs_fscores_df[['motif_len', 'information_content', 'information_content_GC']].to_numpy(), cavs_fscores_df['AUC_fscores'].to_numpy()[:, np.newaxis])
556+
model.fit(cavs_fscores_df[['information_content_GC',]].to_numpy(), cavs_fscores_df['AUC_fscores'].to_numpy()[:, np.newaxis])
557557

558-
y_pred = model.predict(cavs_fscores_df[['motif_len', 'information_content', 'information_content_GC']].to_numpy())
558+
y_pred = model.predict(cavs_fscores_df[['information_content_GC',]].to_numpy())
559559
residuals = cavs_fscores_df['AUC_fscores'].to_numpy() - y_pred.flatten()
560560
cavs_fscores_df['AUC_fscores_residual'] = residuals
561561
else:

0 commit comments

Comments
 (0)