Closed bhavaygg closed 1 year ago
Did you check for NAN in condition files as stated in the example?
We start by removing samples for which
condition
isNaN
. If you are usinganother dataset, do not forget to change "condition" for the column of
clinical_df
you wish to use as a design factor in your analysis.
samples_to_keep = ~clinical_df.condition.isna() counts_df = counts_df.loc[samples_to_keep] clinical_df = clinical_df.loc[samples_to_keep]
Hi @Chokerino,
It looks like you have NaNs in your data. As @Morteza-M-Saber suggested, those NaNs probably come from your design factors and / or design matrix. Could you check whether this is the case?
Hi,
i am using this library on my custom data but I am running into this error when I am performing single/multifactor analysis. I have clusters of cells as the factors and because I have multiple clusters, I had one hot encoded them and input the dataframe as the design factors. This is the error I am receiving
Could someone help me understand what might be wrong?