Conversation
|
still WIP |
|
New feature: x_shift parameter for contribution scores plotting Bug fix: duplicate kwargs in clustermap_tf_motif Modisco pattern matching improvements (_tfmodisco.py) Changed default sim_threshold from 0.5 to 7.0 in match_to_patterns() and from 3.0 to 6.0 in process_patterns(). |
|
Also enhancer_code_analysis update |
|
notebook that is |
### Features
- {func}`crested.tl.modisco.process_patterns` now defaults to deterministic,
order-independent **agglomerative clustering** (full pairwise TOMTOM + single
cut at `sim_threshold`) instead of greedy leader clustering. New `clustering`,
`linkage_method`, `sort_by`, and `representative` parameters; pass
`clustering="greedy"` to reproduce earlier analyses. (#140)
- {func}`crested.tl.modisco.create_tf_ct_matrix` now defaults to **NNLS-based TF
selection** (`selection="nnls"`): a non-negative ridge deconvolution that
competes down broadly-expressed binders, followed by an expression-relevance
gate (`rel_keep_frac`). Replaces the name-based paralog collapse; pass
`selection="threshold"` for the original per-column gates. (#140)
- {func}`crested.pl.modisco.clustermap_tf_motif` gains a categorical row-class
color strip and a per-column species stack. (#140)
- `calculate_mean_expression_per_cell_type` computes per-cell-type means on
sparse `X` directly, avoiding densification on atlas-scale inputs. (#140)
### Bugfixes
- Agglomerative cluster IC is now the best member's IC (not the representative's),
fixing discard/sort under non-IC `representative`. (#140)
- `process_patterns` skips classes with no matched pattern file instead of raising. (#140)
- `create_tf_ct_matrix` skips constant-expression columns, avoiding divide-by-zero. (#140)
- `_trim_pattern_by_ic` no longer over-truncates/crashes on flat patterns. (#140)
### Documentation
- Enhancer code analysis notebook updated for the agglomerative + NNLS pipeline. (#140)
- Clarified `min_tf_gex` is applied to the (optionally log-transformed) expression. (#140)
Updating pattern clustering in the standard enhancer code analysis.
Faster tomtoms: not one vs one but one vs collection
Dual direction tomtom calculation
Updated default thresholds
To do: update notebook