ajaynadig / TRADE

5 stars 3 forks source link

Filter annot_table #2

Closed bharris12 closed 4 months ago

bharris12 commented 4 months ago

Thank you for sharing this amazing tool, I am excited to use it in my regular work.

I was testing it out with some data and was running into an error with the annot_table. I figured out that you will get a pretty obscure error if you input a column of the annot_table that has no genes in it (This can happen with weird subsets of data and genes).

This was the error

Error in check_args(mixcompdist, df, prior, optmethod, gridmult, sebetahat,  : 
  Error: all input values are missing

To solve the issue, I just added a filter on the annot_table to remove empty columns.

I also reformatted the docstring using Copilot ;)

Thank you again for sharing this wonderful tool

ajaynadig commented 4 months ago

Thank you mi amor <3