Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow multiple npz key names #90

Merged
merged 2 commits into from Jun 6, 2020
Merged

allow multiple npz key names #90

merged 2 commits into from Jun 6, 2020

Conversation

ngreenwald
Copy link
Collaborator

Some of the old NPZ files were generated with (raw, annotated) keys. The newer NPZs have been standardized to to (X, y). This PR modifies the toolbox to accept either input so that manual renaming isn't necessary

Copy link
Contributor

@geneva-miller geneva-miller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the only util function that may need to load data? Is X ever loaded? This looks good to me, I just want to make sure we're not missing other cases where the array name matters.

@ngreenwald
Copy link
Collaborator Author

Yes, currently this is the only function that loads NPZ files, and currently we don't load the X data from the corrected NPZs, only the y.

@ngreenwald ngreenwald requested a review from willgraf June 4, 2020 17:48
caliban_toolbox/utils/io_utils.py Outdated Show resolved Hide resolved
@ngreenwald ngreenwald requested a review from willgraf June 4, 2020 20:01
@ngreenwald
Copy link
Collaborator Author

Any idea why coveralls keeps seeing random fluctuations in coverage for the data_loader?

@MekWarrior
Copy link
Collaborator

The tests for the data_loader chooses randomly from a list of possible data types/specs (e.g. "all", "None", "HEK293", etc" at multiple levels of the ontology). It's likely that this is the source of the stochasticity - something that could be addressed with better tests.

Copy link
Contributor

@willgraf willgraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@MekWarrior MekWarrior merged commit 9aae72a into master Jun 6, 2020
@MekWarrior MekWarrior deleted the npz_key_name branch June 6, 2020 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants