phenotype
data frame format for association plot
#175
alejandrocs98
started this conversation in
General
Replies: 1 comment
-
Hi, sorry about being unclear. One is supposed to pass the column itself, so I will add a type check to the function. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I am trying to use
micom.viz.association.plot_association()
but it is not very clear for me how the input forphenotype
argument should be. I am using a pandas DataFrame with the index coinciding with the values of sample_id in theGrowtthResults
object and one column called phenotype that contain one of two values (as I understood should be from the doc):minimal_imports
phenotype
I am getting the following error:
Which might be a bug or a problem related to my python version (I believe that just using
phenotype.nunique().iloc[0] != 2
or something similar should fix this issue), but even though I am not sure if I am giving the proper inputs to the function.Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions