'Prerank' object has no attribute '_results' #216
-
Hi there, I was able run the prerank function as below: pre_res = gp.Prerank(rnk = ranking, gene_sets= ["CellMarker_Augmented_2021"], seed = 6, permutation_num=100) then I was trying to unpack the prerank output into a pd dataframe: out = [] for term in list(pre_res.results): out_df = pd.DataFrame(out, columns=["term", "fdr", 'es', 'nes']).sort_values("fder").reset_index(drop = True) However, it shows no attribute error: AttributeError Traceback (most recent call last) File ~/opt/anaconda3/envs/bioenv/lib/python3.11/site-packages/gseapy/base.py:574, in GSEAbase.results(self) AttributeError: 'Prerank' object has no attribute '_results' I was basically following a tutorial, so was very confused what was happening... the other attributes seem not to be available either. Will greatly appreciate if someone knows what's going on. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
sorry I'm stupid I capitalized the gp,prerank when it autofilled.... problem solved |
Beta Was this translation helpful? Give feedback.
sorry I'm stupid I capitalized the gp,prerank when it autofilled.... problem solved