TypeError when running 'vispr server mle.vispr.yaml'

Issue #82 new
Former user created an issue

Hi, every time I try to run 'vispr server mle.vispr.yaml' I get this error message:

TypeError: '>=' not supported between instances of 'int' and 'pandas._libs.interval.Interval'

Not really sure how to fix it. Thanks

Comments (1)

  1. Moa

    In the file : “miniconda3/envs/mageck-vispr/lib/python3.7/site-packages/vispr/results/target.py“

    I think replacing the function :

    def get_pval_cdf_points(self, pvals):
            idx = self.pval_cdf["p-value"].searchsorted(pvals, side="right") - 1
            d = self.pval_cdf.iloc[idx]
            d.reset_index(drop=True, inplace=True)
            return d
    

    That is buggy by :

    def get_pval_cdf_points(self, pvals):
            results = []
            for pval in pvals:
                for interval in self.pval_cdf["p-value"]:
                    if interval.left < pval <= interval.right:
                        results.append(interval)
                        break
            return results
    

    Fixes the problem !

  2. Log in to comment