alexis
alexis

Reputation: 11

Convert a 'DeseqStats' object into a pandas dataframe?

Is it possible to convert a DeseqStats object from PyDESeq2 into a Pandas DataFrame?

results_summary = stat_res results_as_html = results_summary.tables[1].as_html() pd.read_html(results_as_html, header=0, index_col=0)[0]

It resulted in an attribute error: 'DeseqStats' object has no attribute 'tables'

Upvotes: 0

Views: 110

Answers (1)

Celine Serry
Celine Serry

Reputation: 75

de = stat_res.results_df should work :)

Upvotes: 0

Related Questions