Repository navigation
Donordata package - #169
Merged
Merged
Conversation
- run_tensorqtl (Python API): missing calls (NaN or negative codes) are passed to tensorQTL as -9, the only code it mean-imputes. Before, NaN gave NaN p-values in cis_nominal and silently removed the variant in the MAF-filtered modes (about 19% of common variants in a cohort with sporadic missing calls). Hard calls stay int8. - run_tensorqtl (command line): the phenotype BED start is written 0-based; tensorQTL adds 1 on reading, so the window lost 1 bp on the left and start_distance was off by one. - run_tensorqtl docstring: the cis window is the gene body +- window. - coloc_abf raises on se <= 0, which otherwise gives NaN posteriors.
- run_magma_gene_analysis / run_magma_pipeline: seed (default 1) passed as --seed. The SNP-wise mean model samples p-values of strongly associated genes, so unseeded runs gave different Z for top genes. - _fetch_ensembl_annotation drops rows on patches and alternative haplotypes, which could replace a gene's primary-assembly position and let MHC genes escape the MHC filter. - generate_sldsc_genesets writes gene symbols in their original case; make_annot matches case-sensitively, so upper-cased symbols were lost. - run_scdrs encodes sex as indicator columns, with "unknown" as missing, instead of ordinal category codes. - estimate_celltype_specific_heritability documents the LDSC-SEG all-genes control on each .ldcts line and warns when it is absent.
write_zarr_dd let donordata write D.X unencoded (reading the whole matrix into memory) and then rewrote it as 2-bit. It now writes everything except D.X through donordata and the genotypes as 2-bit column blocks: chr21 peak RSS 1.92 -> 1.25 GB, about 38 GB less at autosome scale, and no temporary unencoded copy on disk.
|
Notebooks changed:
Review visual diffs and comment on any notebook cell. All comments sync back to this PR. Powered by ReviewNB |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #169 +/- ##
==========================================
+ Coverage 50.27% 50.57% +0.29%
==========================================
Files 80 78 -2
Lines 10126 9665 -461
==========================================
- Hits 5091 4888 -203
+ Misses 5035 4777 -258
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.