-
Notifications
You must be signed in to change notification settings - Fork 14
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
ATAC QC component #868
base: main
Are you sure you want to change the base?
ATAC QC component #868
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.
Small comments, but looking good overall! 👍
- type: python | ||
__merge__: [/src/base/requirements/anndata_mudata.yaml, .] | ||
packages: | ||
- numpy~=1.23.5 | ||
- scanpy~=1.9.3 | ||
- muon~=0.1.5 | ||
- pysam~=0.22.0 |
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.
We have a base version for scanpy. Also, the anndata_mudata
base already pins numpy < 2
- type: python | |
__merge__: [/src/base/requirements/anndata_mudata.yaml, .] | |
packages: | |
- numpy~=1.23.5 | |
- scanpy~=1.9.3 | |
- muon~=0.1.5 | |
- pysam~=0.22.0 | |
- type: python | |
__merge__: [/src/base/requirements/anndata_mudata.yaml, .] | |
__merge__: [ /src/base/requirements/scanpy.yaml, .] | |
packages: | |
- muon~=0.1.5 | |
- pysam~=0.22.0 |
- pysam~=0.22.0 | ||
test_setup: | ||
- type: python | ||
__merge__: [ /src/base/requirements/viashpy.yaml, /src/base/requirements/scanpy.yaml, .] |
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.
Because scanpy is already included in the regular setup, it should not be added again. (test setup steps are added on top of the regular setup)
__merge__: [ /src/base/requirements/viashpy.yaml, /src/base/requirements/scanpy.yaml, .] | |
__merge__: [ /src/base/requirements/viashpy.yaml, .] |
mdata = mu.read(par["input"]) | ||
|
||
logger.debug("Making var names unique") | ||
mdata.var_names_make_unique() |
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 think I want to avoid calling this here
atac.obs.drop(col, axis=1, inplace=True) | ||
|
||
logger.info("Calculating QC metrics") | ||
sc.pp.calculate_qc_metrics(atac, percent_top=None, log1p=False, inplace=True, layer=par["layer"]) |
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 want to avoid that things get overwritten by scanpy, could you pass a copy of the data?
Changelog
Add component for calculating QC metrics for ATAC data.
Issue ticket number and link
Contributes to #398
Checklist before requesting a review
I have performed a self-review of my code
Conforms to the Contributor's guide
Check the correct box. Does this PR contain:
Proposed changes are described in the CHANGELOG.md
CI tests succeed!