Repository navigation
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:
- edgeR 5.0 parity fixes from @saatvik-viniak (#13): TMMwsp's stable sort and inclusive trim windows; a short
lib_sizerecycled as edgeR does;ave_log_cpmon an all-zero matrix; Yates' correction and no tolerance inbinom_test; the unimodality step of WLEB'slocfit.mixedtrend; andq2q_nbinomin the far tails, soexact_test(dispersion=0)no longer returns p = 1 for strongly DE genes. exact_testaccepts a per-gene dispersion vector (array, list or pandas Series), andlocfit_by_col(degree=2)raises a clear error (#13, #14).dgelist_from_tximetareads AnnData from anndata 0.13, which lists X among the layers (#15).- Four parity tests no longer fail on scipy ≥ 1.16 (#15).
New for kallisto and kb (#16):
- The gene-level readers accept a path for
tx2gene, such as kb ref'st2g.txt, and take gene names from it. catch_kallistoandcatch_kallisto_genereturn each sample'srun_info.jsonasrun.info(reads processed and pseudoaligned, kallisto and index versions), and warn when samples were run with different versions.read_kbreads kb count single-cell output into a sparse AnnData, with the nac workflow's mature, nascent and ambiguous matrices as layers;read_datadetects kb output.aggregate_tx_pvaluesandlancastergive 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.- MCP server:
load_kb(single cells or pseudo-bulk),aggregate_to_genes,set_sc_design(sample_covariates=...), andload_quantreading kb'st2g.txtand reporting kallisto run information.
Behaviour changes:
norm_lib_sizesrejects negative counts, as edgeR'snormLibSizesdoes;calc_norm_factorsstill accepts them.cpm_by_groupon a DGEList uses its dispersion (tagwise, then trended, then common) instead of 0.05, as edgeR does.- The
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.