Repository for edgePython which is a Python implementation of the Bioconductor edgeR package for differential analysis of genomics count data.
Repo pachterlab/edgePython, read from GitHub 1 min ago. pachterlab has not joined Take My Repo.
Bug fixes that bring edgePython closer to edgeR 5.0, and new support for kallisto and kb (kallisto | bustools) output. The default pipelines (TMM, estimate_disp, exact test, QL F-test) give the same results as 0.5.0.
Fixes:
lib_size recycled as edgeR does; ave_log_cpm on an all-zero matrix; Yates' correction and no tolerance in binom_test; the unimodality step of WLEB's locfit.mixed trend; and q2q_nbinom in the far tails, so exact_test(dispersion=0) no longer returns p = 1 for strongly DE genes.exact_test accepts a per-gene dispersion vector (array, list or pandas Series), and locfit_by_col(degree=2) raises a clear error (#13, #14).dgelist_from_tximeta reads AnnData from anndata 0.13, which lists X among the layers (#15).New for kallisto and kb (#16):
tx2gene, such as kb ref's t2g.txt, and take gene names from it.catch_kallisto and catch_kallisto_gene return each sample's run_info.json as run.info (reads processed and pseudoaligned, kallisto and index versions), and warn when samples were run with different versions.read_kb reads kb count single-cell output into a sparse AnnData, with the nac workflow's mature, nascent and ambiguous matrices as layers; read_data detects kb output.aggregate_tx_pvalues and lancaster give gene-level p-values from transcript-level tests by Lancaster aggregation (Yi et al. 2018), weighting transcripts as sleuth does. Genes whose transcripts switch are found as well as genes whose transcripts change together.load_kb (single cells or pseudo-bulk), aggregate_to_genes, set_sc_design(sample_covariates=...), and load_quant reading kb's t2g.txt and reporting kallisto run information.Behaviour changes:
norm_lib_sizes rejects negative counts, as edgeR's normLibSizes does; calc_norm_factors still accepts them.cpm_by_group on a DGEList uses its dispersion (tagwise, then trended, then common) instead of 0.05, as edgeR does.catch_* readers stop with an error when a sample's transcripts differ from the first sample's. Such samples used to be misaligned without any warning.edgePython now matches edgeR 5.0 (version numbers follow edgeR's major version: 0.5 ↔ edgeR 5). Results are checked function by function against edgeR 4.99.8 and limma 3.99.2, the development versions that become edgeR 5.0.
Changes:
glmQLFit, glmQLFTest (TREAT/UPSHOT thresholds), glmTreat, estimateDisp and the older dispersion estimators, filterByExpr and offset.prior.voom, voomLmFit, arrayWeights, duplicateCorrelation, camera and fry.sample_weights, norm_lib_sizes, dgelist_from_tximport, dgelist_from_tximeta, the updated catch_* readers with Gencode annotation, and binomial models for paired counts (make_pclist, read_bismark2pc, bin_fit, bin_ql_fit, bin_ql_ftest).See the README for features not in edgeR and edgeR bugs handled as edgeR intends, and PR #10 for details.
Changes:
PyPI publishing will be handled separately.
estimate_dispestimate_disp crash when called without a design matrix (integer group labels were being mishandled due to drop_empty_levels returning a pd.Categorical)exact_test with integer group labelsThis release merges recent devel updates into main and includes:
Requirement already satisfied: edgePython in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (0.1.0)
Requirement already satisfied: numpy>=1.21 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (2.2.6)
Requirement already satisfied: scipy>=1.7 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (1.15.3)
Requirement already satisfied: pandas>=1.3 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (2.3.3)
Requirement already satisfied: matplotlib>=3.4 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (3.10.8)
Requirement already satisfied: statsmodels>=0.13 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (0.14.6)
Requirement already satisfied: numba>=0.57 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (0.63.1)
Requirement already satisfied: contourpy>=1.0.1 (1.3.2)
Requirement already satisfied: cycler>=0.10 (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 (4.33.3)
Requirement already satisfied: kiwisolver>=1.3.1 (1.4.2)
Requirement already satisfied: packaging>=20.0 (26.0)
Requirement already satisfied: pillow>=8 (9.1.1)
Requirement already satisfied: pyparsing>=3 (3.3.2)
Requirement already satisfied: python-dateutil>=2.7 (2.8.2)
Requirement already satisfied: llvmlite<0.47,>=0.46.0dev0 (0.46.0)
Requirement already satisfied: pytz>=2020.1 (2022.1)
Requirement already satisfied: tzdata>=2022.7 (2025.3)
Requirement already satisfied: patsy>=0.5.6 (1.0.2)
Requirement already satisfied: six>=1.5 (1.16.0)
**Full Changelog**: https://github.com/pachterlab/edgePython/compare/v0.2.1...v0.2.2