fraenkel-lab / OmicsIntegrator

This repository is the working directory for the Garnet-Forest bundle of python scripts for analyzing diverse forms of 'omic' data in a network context.
http://fraenkel.mit.edu/omicsintegrator
BSD 2-Clause "Simplified" License
31 stars 21 forks source link

Garnet regression errors #30

Open agitter opened 6 years ago

agitter commented 6 years ago

When testing #29, I noticed that our Garnet integration tests fail with newer versions of SciPy and NumPy. There is a divide by 0 error during the linear regression. We should either explore why that happens or catch the error more gracefully.

sgosline commented 6 years ago

Do you have some code/data that reproduces this error?

agitter commented 6 years ago

Our Garnet test case can reproduce the error on recent SciPy and NumPy versions. This runs Garnet on the FOXA1 ChIP data in the a549 example directory and confirms that the output files match what we expect. The error comes from motif_regression.py, so we should be able to test directly on that call using the input files events_to_genes_with_motifs.pkl from tests/integration_test_standard/ and Tgfb_exp.txt from the example directory.

The Travis build logs in #29 show some SciPy and NumPy versions that cause the error.

AmandaKedaigle commented 6 years ago

I believe I ran into this problem before - I'll see if I can figure out what I did back then to get around it. (it might just have been changing/updating numpy). But definitely agree we should catch the error

sgosline commented 5 years ago

Just checking on this too - I'm just getting a warning, not an error. But I haven't run all the tests. We should maybe just update the docs - we don't support Python 3.x at all either, because of the print statements.