-
Notifications
You must be signed in to change notification settings - Fork 11
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
Implement reference mapping components #138
Conversation
The repository is ready for review. I removed unnecessary details and fixed bugs. Local tests are running fine, but the test pipeline will fail due to the lack of test files. @rcannood , can you please run the script workflows/resources_test_scripts/hlca_reference_model.sh and put the resulting files on AWS so that test script could use them? |
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.
Thanks for the PR! Well structured 👍 I left some minor comments/questions.
src/integrate/scarches/script.py
Outdated
|
||
with tempfile.TemporaryDirectory() as directory: | ||
model_path = _download_HLCA_reference_model(directory) | ||
vae_query, adata_query = map_to_existing_reference(adata_query, model_path=model_path) |
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.
True. One way to do this is to make the reference
type file
and set the default to the url (https://zenodo.org/record/6337966/files/HLCA_reference_model.zip). However, this also means that if we want to pass another reference, this also needs to be a path/url. FYI: if we upload them to s3, s3://
urls are also supported. I think just using the zenodo URL is a better solution.
Correct me if im wrong @rcannood
LGTM! Very nice job @VladimirShitov, thanks! |
integrate/scarches
component to map query data to the reference (currently only supports HLCA)integrate/scvi_tools
component to build reference and map query data on itintegrate/scvi_tools
integrate/scvi_tools
integrate/scvi_tools