-
Notifications
You must be signed in to change notification settings - Fork 1
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
Adding installation guide. #115
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cmungall
thank you very much for the PR!
If you do not mind, I changed the .venv
to venv
(I somewhat dislike the hidden folders and we do not track venv
in .gitignore
) and I recommend developers to upgrade pip
before the installation.
Otherwise it looks good, thanks again!
@pnrobinson the CI action is failing because the notebook uses a relative path to a HPO JSON instead of the Please use the |
Thanks! No strong opinion on the dot (I am a poetry-head myself 😄 ) And yes I was wondering about the failing action |
Adjust
in example file so that we do not need the local hp.json |
I updated the templates in phenopacket store. |
@ielis |
Yeah, this is a pain and in general we should avoid depending on network for the tests to pass. In other projects, we mark the network-dependent tests with a special annotation For instance: @pytest.mark.online
@pytest.mark.parametrize(
'tx_id, contig, start, end, strand',
[
# ANKRD11
('NM_013275.6', '16', 847_784, 1_070_716, Strand.NEGATIVE),
# MAPK8IP3
('NM_001318852.2', '16', 1_706_194, 1_770_351, Strand.POSITIVE),
]
)
def test_fetch__end_to_end(
self,
coordinate_service: VVTranscriptCoordinateService,
tx_id: str,
contig: str, start: int, end: int, strand: Strand,
):
tx_coordinates = coordinate_service.fetch(tx_id)
assert tx_coordinates.identifier == tx_id
# And more assertions follow... The tested python --runonline The We can do something similar here to remove spurious failures, and we will only run the online tests now and then. Note, a special setup must be done in order to use
I would favor
I am OK with deleting the |
I think it is probably OK to run the tests locally. We do not need to worry about "old" notebooks or whatever, because we only re-run the phenopackets if there was a mistake in the data. I think it is probably best to remove the CI for now. We will need to rethink the entire pipeline soon, in order to rethink the HPO annotation pipeline, and I think a lot of stuff needs to be done, but we are testing the phenoapckets with ppt etc etc. @ielis |
Then I will drop the notebook action and I will deal with the network-dependent tests in #117 |
Fixes #114