-
Notifications
You must be signed in to change notification settings - Fork 46
Fixed Conda dependency issues in environment.yml #211
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
base: dev
Are you sure you want to change the base?
Changes from all commits
c1875d2
4a0e1ca
0fa1ee6
eda483e
8f1f0ca
e74e1ad
2a02909
b22c1a0
f05a981
e596e27
95f8c8e
93a62e9
0e711ff
4edf537
9ab7a8b
8e9ce72
8363758
784d8e6
5b01930
8dfca4f
fc9c88c
270f77b
bee50ca
089c0b0
72dfd31
119efb0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
KurayiChawatama marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,8 @@ | |
|
|
||
| os.environ["TMPDIR"] = "." | ||
|
|
||
| import importlib.metadata | ||
|
|
||
| import anndata as ad | ||
| import anndata2ri | ||
| import rpy2 | ||
|
|
@@ -53,10 +55,10 @@ def format_yaml_like(data: dict, indent: int = 0) -> str: | |
| adata.write_h5ad("${prefix}.h5ad") | ||
|
|
||
| versions = { | ||
| "${task.process}": { | ||
| "NFCORE_SCDOWNSTREAM:SCDOWNSTREAM:LOAD_H5AD:ADATA_READRDS": { | ||
nictru marked this conversation as resolved.
Show resolved
Hide resolved
Comment on lines
-56
to
+58
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Revert this please, unless you have a very good explanation for why this is needed |
||
| "anndata": ad.__version__, | ||
| "anndata2ri": anndata2ri.__version__, | ||
| "rpy2": rpy2.__version__, | ||
| "rpy2": importlib.metadata.version("rpy2"), | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the issue description you state:
I don't understand what exactly the issue with the original implementation is
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey, the original implementation was crashing and raising,
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did the following to validate your concern:
Which correctly printed a version string. So if you get an error and I do not, I think the following are possible explanations:
The reason I come to these explanations is that the docker is basically a minimal ubuntu, with micromamba installed and all the specified packages installed in the Anyways, I don't want to accept this change until we have a better understanding of the problem. The |
||
| "pandas": pd.__version__, | ||
| "seurat": seurat.__version__ | ||
| } | ||
|
|
||
KurayiChawatama marked this conversation as resolved.
Show resolved
Hide resolved
|
KurayiChawatama marked this conversation as resolved.
Show resolved
Hide resolved
|
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixes the error that happened because the doublet_removal module tried to load a pickle (sample_scrublet.pkl) that was created with NumPy ≥2.0, which uses the internal module numpy._core. The environment for doublet_removal was pinned to NumPy 1.23.5, where numpy._core does not exist, so unpickling failed with ModuleNotFoundError. Updating the environment to a NumPy-2–compatible stack resolved the mismatch.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, updating to newer versions is generally fine, just make sure to use the full accessions (e.g. |
KurayiChawatama marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/opt/conda/bin/python | ||
| #!/usr/bin/env python3 | ||
|
|
||
| import os | ||
| import platform | ||
|
|
||
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.
I explained the issue that you are trying to fix in #215 and implemented a different fix in the meantime. That fix is not optimal, but for me preferable over this. So please revert this for now
I am not happy with the situation in this aspect, but I have not yet come up with a really clean way of handling this