threadfin 4.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- threadfin/__init__.py +86 -0
- threadfin/_utils.py +260 -0
- threadfin/api.py +658 -0
- threadfin/bcrgraph.py +255 -0
- threadfin/clones.py +653 -0
- threadfin/core.py +531 -0
- threadfin/dandelion.py +458 -0
- threadfin/density.py +409 -0
- threadfin/dynamics.py +275 -0
- threadfin/export.py +215 -0
- threadfin/expression.py +121 -0
- threadfin/heritability.py +224 -0
- threadfin/integrate.py +350 -0
- threadfin/io.py +280 -0
- threadfin/maptune.py +743 -0
- threadfin/metrics.py +137 -0
- threadfin/migration.py +165 -0
- threadfin/phylo.py +834 -0
- threadfin/plotting.py +535 -0
- threadfin/pp.py +253 -0
- threadfin/profiles.py +603 -0
- threadfin/programmes.py +1028 -0
- threadfin/programs.py +133 -0
- threadfin/reclustering.py +68 -0
- threadfin/sequence.py +379 -0
- threadfin/simulate.py +206 -0
- threadfin/specificity.py +355 -0
- threadfin/stats.py +476 -0
- threadfin/tl.py +62 -0
- threadfin-4.5.0.dist-info/METADATA +288 -0
- threadfin-4.5.0.dist-info/RECORD +34 -0
- threadfin-4.5.0.dist-info/WHEEL +5 -0
- threadfin-4.5.0.dist-info/licenses/LICENSE +21 -0
- threadfin-4.5.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: threadfin
|
|
3
|
+
Version: 4.5.0
|
|
4
|
+
Summary: Relationships between B-cell clones from paired single-cell RNA and BCR sequencing: clone embeddings, clonal coherence, clonal programmes, clone-level tests and clonal memory
|
|
5
|
+
Author-email: Chen Satoshi <103236530+Reynold4k@users.noreply.github.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Reynold4k/Threadfin
|
|
8
|
+
Project-URL: Repository, https://github.com/Reynold4k/Threadfin
|
|
9
|
+
Project-URL: Issues, https://github.com/Reynold4k/Threadfin/issues
|
|
10
|
+
Project-URL: Documentation, https://github.com/Reynold4k/Threadfin/blob/main/docs/README.md
|
|
11
|
+
Project-URL: Changelog, https://github.com/Reynold4k/Threadfin/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: single-cell,scRNA-seq,BCR,VDJ,B cell,clone,clonal lineage,germinal center,immunology,repertoire
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: anndata>=0.10
|
|
26
|
+
Requires-Dist: numpy>=1.24
|
|
27
|
+
Requires-Dist: pandas>=2.0
|
|
28
|
+
Requires-Dist: scipy>=1.10
|
|
29
|
+
Requires-Dist: scikit-learn>=1.3
|
|
30
|
+
Requires-Dist: joblib>=1.2
|
|
31
|
+
Requires-Dist: scanpy>=1.10
|
|
32
|
+
Requires-Dist: matplotlib>=3.7
|
|
33
|
+
Requires-Dist: igraph>=0.10
|
|
34
|
+
Requires-Dist: leidenalg>=0.10
|
|
35
|
+
Requires-Dist: umap-learn>=0.5.5
|
|
36
|
+
Requires-Dist: pynndescent>=0.5.8
|
|
37
|
+
Requires-Dist: harmonypy>=0.0.9; platform_system != "Windows"
|
|
38
|
+
Requires-Dist: harmonypy<2,>=0.0.9; platform_system == "Windows"
|
|
39
|
+
Provides-Extra: dandelion
|
|
40
|
+
Requires-Dist: sc-dandelion>=0.5.7; extra == "dandelion"
|
|
41
|
+
Requires-Dist: matplotlib<3.9,>=3.7; extra == "dandelion"
|
|
42
|
+
Provides-Extra: seq
|
|
43
|
+
Requires-Dist: parasail>=1.3; extra == "seq"
|
|
44
|
+
Provides-Extra: data
|
|
45
|
+
Requires-Dist: mudata>=0.3; extra == "data"
|
|
46
|
+
Requires-Dist: awkward>=2; extra == "data"
|
|
47
|
+
Provides-Extra: test
|
|
48
|
+
Requires-Dist: pytest>=7; extra == "test"
|
|
49
|
+
Requires-Dist: pytest-cov>=4; extra == "test"
|
|
50
|
+
Provides-Extra: benchmark
|
|
51
|
+
Requires-Dist: clone2vec>=0.1; extra == "benchmark"
|
|
52
|
+
Requires-Dist: psutil>=5; extra == "benchmark"
|
|
53
|
+
Dynamic: license-file
|
|
54
|
+
|
|
55
|
+
<p align="center">
|
|
56
|
+
<img src="https://raw.githubusercontent.com/Reynold4k/Threadfin/main/docs/_static/threadfin_overview.png" width="720" alt="Threadfin turns paired single-cell RNA and BCR sequencing into a clone embedding, one point per clone">
|
|
57
|
+
</p>
|
|
58
|
+
|
|
59
|
+
<h1 align="center">Threadfin</h1>
|
|
60
|
+
|
|
61
|
+
<p align="center">
|
|
62
|
+
<b>Relationships between B-cell clones from paired single-cell RNA and receptor sequencing</b>
|
|
63
|
+
</p>
|
|
64
|
+
|
|
65
|
+
<p align="center">
|
|
66
|
+
<a href="https://github.com/Reynold4k/Threadfin/actions/workflows/tests.yml"><img src="https://github.com/Reynold4k/Threadfin/actions/workflows/tests.yml/badge.svg" alt="tests"></a>
|
|
67
|
+
<a href="https://www.python.org"><img src="https://img.shields.io/badge/python-3.10%20%E2%80%93%203.14-blue.svg" alt="Python 3.10 to 3.14"></a>
|
|
68
|
+
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-4.3.1-informational.svg" alt="version 4.3.1"></a>
|
|
69
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-yellow.svg" alt="MIT licence"></a>
|
|
70
|
+
</p>
|
|
71
|
+
|
|
72
|
+
**Threadfin** is a Python package for paired single-cell RNA and B-cell receptor (BCR) sequencing. It
|
|
73
|
+
uses the **clone** — the B cells that descend from one V(D)J rearrangement — as the unit of analysis.
|
|
74
|
+
Each clone is represented by the distribution of transcriptional states among its sampled cells,
|
|
75
|
+
estimated relative to the cells sampled alongside it and shrunk according to the number of cells
|
|
76
|
+
captured. Clones are then compared with one another: in a **clone embedding** with one point per clone,
|
|
77
|
+
in **clonal programmes** of clones that behave alike, and in **clone-level tests** of anything you
|
|
78
|
+
measured. Threadfin works with [AnnData](https://anndata.readthedocs.io) and
|
|
79
|
+
[Scanpy](https://scanpy.readthedocs.io), and defines clones with
|
|
80
|
+
[Dandelion](https://github.com/zktuong/dandelion).
|
|
81
|
+
|
|
82
|
+
## Why clones?
|
|
83
|
+
|
|
84
|
+
The cells of one clone are distributed across states: germinal-centre (GC) B cells, plasmablasts, plasma
|
|
85
|
+
cells and memory B cells. Two clones can have the same average state and still differ in how their cells
|
|
86
|
+
are distributed. Selection, antigen affinity and fate bias act on clones, so questions such as *which
|
|
87
|
+
clones connect the germinal centre with plasma-cell output* or *does antigen binding go with a clone's
|
|
88
|
+
state* need the clone as the unit of representation and of statistical inference. Three features of
|
|
89
|
+
repertoires sampled *in vivo* make this difficult, and Threadfin addresses each:
|
|
90
|
+
|
|
91
|
+
* **Most clones are captured as one or a few cells.** Profiles are shrunk according to the number of cells
|
|
92
|
+
sampled, and each clone carries a reliability score. No clone is discarded for being small.
|
|
93
|
+
* **Clone membership is confounded with donor, sample, tissue and sorting gate.** Each clone is described
|
|
94
|
+
relative to the cells sampled with it, and every test shuffles labels within the sampling design.
|
|
95
|
+
* **Treating cells as independent inflates significance.** Tests use clones, not cells, as replicates.
|
|
96
|
+
|
|
97
|
+
## What Threadfin answers
|
|
98
|
+
|
|
99
|
+
| Question | Output | Function |
|
|
100
|
+
|---|---|---|
|
|
101
|
+
| Is cell state inherited within clones? | clonal coherence: variance explained by clone, against labels shuffled within samples | `tl.clonal_coherence` |
|
|
102
|
+
| How are clones related to one another? | the clone embedding, laid out automatically so that continua stay connected | `tl.embed_clones` |
|
|
103
|
+
| Which clones behave alike? | clonal programmes, with split tests and bootstrap stability | `tl.find_programmes` |
|
|
104
|
+
| What explains the differences between clones? | variance in clone profiles explained by a label; per-programme effects | `tl.profile_association`, `tl.association_test` |
|
|
105
|
+
| Do clones keep their state over time or across tissues? | the clonal memory index | `tl.clonal_memory` |
|
|
106
|
+
| How far behind its germinal centre is a clone's output? | the export lag, in somatic mutations and in days | `tl.export_lag` |
|
|
107
|
+
|
|
108
|
+
## Examples from public data
|
|
109
|
+
|
|
110
|
+
The manuscript applies Threadfin to nine paired datasets from immunization, infection, vaccination and
|
|
111
|
+
spontaneous germinal centres ([figures](https://github.com/Reynold4k/Threadfin/blob/main/manuscript/figures/README.md)); scripts and results for these and
|
|
112
|
+
further public datasets are in [case studies](https://github.com/Reynold4k/Threadfin/blob/main/manuscript/case_studies/README.md), and everything behind the
|
|
113
|
+
manuscript — status, datasets, every analysis and a benchmark against related tools — is in
|
|
114
|
+
[`manuscript/`](https://github.com/Reynold4k/Threadfin/blob/main/manuscript/README.md).
|
|
115
|
+
|
|
116
|
+
* **Gut-associated lymphoid tissues** (Siniscalco *et al.*, *Immunity* 2025): the clone embedding resolves
|
|
117
|
+
a continuous path of clones from GC B cells, through clones that contain both GC B cells and plasma
|
|
118
|
+
cells, to plasma-cell clones, with clones that lack GC-fate labelling grouped at its end.
|
|
119
|
+
* **Spontaneous germinal centres** (Castrillon *et al.*, *eLife* 2023): position along the clone embedding
|
|
120
|
+
orders clones by the diversity of their cell states, and memory-containing clones concentrate at one
|
|
121
|
+
end.
|
|
122
|
+
* ***Plasmodium* infection** (Skinner *et al.*, *Nat. Immunol.* 2026): whether plasmablasts were sampled
|
|
123
|
+
together with GC B cells of the same clone is a property of clones that cannot be read from the
|
|
124
|
+
cell-level embedding.
|
|
125
|
+
* **Model-antigen germinal centres** (Merkenschlager *et al.*, *Nature* 2025): the main axis of variation
|
|
126
|
+
between clone profiles follows recent division in two cohorts whose sequencing libraries are crossed, so
|
|
127
|
+
the association cannot be a library artefact; antigen-bait and dark-zone gates are also associated with
|
|
128
|
+
clone profiles but were each sequenced in their own library.
|
|
129
|
+
|
|
130
|
+
## Installation
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
pip install "git+https://github.com/Reynold4k/Threadfin.git"
|
|
134
|
+
# with Dandelion, to define clones from BCR contigs:
|
|
135
|
+
pip install "threadfin[dandelion] @ git+https://github.com/Reynold4k/Threadfin.git"
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Threadfin requires Python ≥ 3.10 and is tested on 3.10 to 3.14, down to the oldest dependency versions it
|
|
139
|
+
allows ([compatibility](https://github.com/Reynold4k/Threadfin/blob/main/docs/COMPATIBILITY.md)); Scanpy, Leiden, UMAP and Harmony are installed with it, and no
|
|
140
|
+
GPU or R is needed. Clones can be defined from BCR contigs with Dandelion (the `[dandelion]` extra also pins
|
|
141
|
+
`matplotlib<3.9`, which Dandelion 0.5.7 needs but does not declare), or you can provide your own clone ids
|
|
142
|
+
in `adata.obs["clone_id"]`. Dandelion's clone calls depend on Python's string-hash seed; start Python with
|
|
143
|
+
`PYTHONHASHSEED=0` if clone ids must be identical run after run.
|
|
144
|
+
|
|
145
|
+
## Quick start
|
|
146
|
+
|
|
147
|
+
```python
|
|
148
|
+
import scanpy as sc
|
|
149
|
+
import threadfin as tf
|
|
150
|
+
|
|
151
|
+
adata = sc.read_h5ad("b_cells.h5ad") # raw counts, one row per cell
|
|
152
|
+
|
|
153
|
+
result = tf.run(
|
|
154
|
+
adata,
|
|
155
|
+
bcr="filtered_contig_annotations.csv", # Cell Ranger VDJ output or an AIRR .tsv
|
|
156
|
+
donor_key="donor", # the individual each cell came from
|
|
157
|
+
sample_key="sample", # the sample or library each cell came from
|
|
158
|
+
)
|
|
159
|
+
print(result.summary()) # plain-language report
|
|
160
|
+
result.plot("threadfin_overview.pdf") # clone map, coherence, stability, composition
|
|
161
|
+
print(result.methods()) # a Methods paragraph with the settings used
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
`tf.run` defines clones within each donor, builds an expression embedding without immunoglobulin genes,
|
|
165
|
+
estimates one profile per clone, tests clonal coherence, lays out the clone embedding, finds clonal
|
|
166
|
+
programmes and reports their stability. Add `test=[...]` to test your own labels and `time_key=` to ask
|
|
167
|
+
whether clones keep their state, and `n_jobs=-1` to use every CPU core (the results do not change). No data
|
|
168
|
+
at hand? `tf.sim.simulate_repertoire()` makes a repertoire with a known answer
|
|
169
|
+
([Tutorial 1](https://github.com/Reynold4k/Threadfin/blob/main/docs/tutorials/01_getting_started.md)).
|
|
170
|
+
T cells work the same way, with TCR contigs as `bcr`, and receptor data loaded with scirpy can be passed as
|
|
171
|
+
they are ([Tutorial 2, section 6](https://github.com/Reynold4k/Threadfin/blob/main/docs/tutorials/02_your_data.md#6-how-clones-are-called)).
|
|
172
|
+
|
|
173
|
+
<p align="center">
|
|
174
|
+
<img src="https://raw.githubusercontent.com/Reynold4k/Threadfin/main/docs/_static/tutorial_overview.png" width="760" alt="Overview figure produced by result.plot()">
|
|
175
|
+
</p>
|
|
176
|
+
|
|
177
|
+
## A complete, tested tutorial on public data
|
|
178
|
+
|
|
179
|
+
[`docs/tutorials/05_end_to_end_tutorial.ipynb`](https://github.com/Reynold4k/Threadfin/blob/main/docs/tutorials/05_end_to_end_tutorial.ipynb) takes you from an
|
|
180
|
+
empty folder to the main result of the manuscript's Figure 4: it creates the environment
|
|
181
|
+
([`environment.yml`](https://github.com/Reynold4k/Threadfin/blob/main/docs/tutorials/environment.yml)), downloads a published dataset from GEO (GSE287123,
|
|
182
|
+
about 600 MB), assigns cells to mice from hashtags, defines clones, builds the embedding, runs Threadfin and
|
|
183
|
+
explains every output, including how to tell biology from a sequencing-library effect. It was executed end
|
|
184
|
+
to end in a fresh environment before release and takes about 6 minutes on 8 CPU cores (about 8 GB of memory).
|
|
185
|
+
|
|
186
|
+
## A clone embedding that holds together
|
|
187
|
+
|
|
188
|
+
UMAP draws continuous populations of clones as one picture only for suitable settings, and the suitable
|
|
189
|
+
settings differ between datasets. Threadfin therefore chooses them for each dataset by default: it lays
|
|
190
|
+
the clones out over a ladder of settings, scores each layout for coherence (the fraction of clones in one
|
|
191
|
+
connected piece) and for fidelity to the clone profiles, and keeps the most faithful setting that holds
|
|
192
|
+
together in every layout it tried. A map is not allowed to be more fragmented than the clone profiles
|
|
193
|
+
themselves, and the final map is checked once more before it is returned. The record of the choice is
|
|
194
|
+
stored with the results, and the settings can always be fixed by hand
|
|
195
|
+
([Tutorial 3](https://github.com/Reynold4k/Threadfin/blob/main/docs/tutorials/03_clone_map.md)).
|
|
196
|
+
|
|
197
|
+
```python
|
|
198
|
+
tf.tl.embed_clones(adata) # automatic (default)
|
|
199
|
+
tf.tl.embed_clones(adata, n_neighbors=30, min_dist=0.3) # by hand
|
|
200
|
+
tf.tl.map_quality(features, xy) # score any clone map (profiles, coordinates)
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## How it works
|
|
204
|
+
|
|
205
|
+
<p align="center">
|
|
206
|
+
<img src="https://raw.githubusercontent.com/Reynold4k/Threadfin/main/docs/_static/threadfin_workflow.png" width="760" alt="Threadfin workflow">
|
|
207
|
+
</p>
|
|
208
|
+
|
|
209
|
+
1. **Clones** are defined from paired heavy- and light-chain sequences within each donor (Dandelion).
|
|
210
|
+
2. **Clone profiles.** Each cell is described relative to the mean of its sampling context. The cells of
|
|
211
|
+
a clone are summarised by a kernel mean embedding of their state distribution, so a clone divided
|
|
212
|
+
between two states differs from a clone in an intermediate state, and the profile is shrunk towards the
|
|
213
|
+
context according to the number of cells (best linear unbiased prediction under a random-effects
|
|
214
|
+
model).
|
|
215
|
+
3. **Clonal coherence** is the intraclass correlation of state within clones, tested against clone labels
|
|
216
|
+
permuted within samples.
|
|
217
|
+
4. **The clone embedding** is a UMAP of the clone profiles with settings chosen as above.
|
|
218
|
+
5. **Clonal programmes** are graph communities of clones; each split is tested against a single Gaussian
|
|
219
|
+
group, and each programme's stability is estimated by bootstrap resampling.
|
|
220
|
+
6. **Clone-level tests** quantify how much of the variance between clone profiles a label explains, with
|
|
221
|
+
labels permuted among the clones of each donor.
|
|
222
|
+
|
|
223
|
+
The full description, with references, is in [Methods](https://github.com/Reynold4k/Threadfin/blob/main/docs/METHODS.md).
|
|
224
|
+
|
|
225
|
+
## Documentation
|
|
226
|
+
|
|
227
|
+
| | |
|
|
228
|
+
|---|---|
|
|
229
|
+
| [Tutorial 1 — Getting started](https://github.com/Reynold4k/Threadfin/blob/main/docs/tutorials/01_getting_started.md) | the whole analysis on simulated data, with its output |
|
|
230
|
+
| [Tutorial 2 — Your own data](https://github.com/Reynold4k/Threadfin/blob/main/docs/tutorials/02_your_data.md) | from Cell Ranger output to results, with several samples and donors |
|
|
231
|
+
| [Tutorial 3 — The clone map](https://github.com/Reynold4k/Threadfin/blob/main/docs/tutorials/03_clone_map.md) | automatic and hand-set layouts, and how to check a map |
|
|
232
|
+
| [Tutorial 4 — Step by step](https://github.com/Reynold4k/Threadfin/blob/main/docs/tutorials/04_step_by_step.md) | the individual functions in `threadfin.tl` |
|
|
233
|
+
| [Tutorial 5 — From GEO to results (notebook)](https://github.com/Reynold4k/Threadfin/blob/main/docs/tutorials/05_end_to_end_tutorial.ipynb) | a published dataset end to end: download, demultiplexing, clones, embedding, Threadfin, interpretation |
|
|
234
|
+
| [Methods](https://github.com/Reynold4k/Threadfin/blob/main/docs/METHODS.md) | the statistical model behind each step |
|
|
235
|
+
| [Function reference](https://github.com/Reynold4k/Threadfin/blob/main/docs/API.md) | every public function and its arguments, generated from the code |
|
|
236
|
+
| [The manuscript](https://github.com/Reynold4k/Threadfin/blob/main/manuscript/README.md) | publication status, datasets, every analysis, open work |
|
|
237
|
+
| [Case studies](https://github.com/Reynold4k/Threadfin/blob/main/manuscript/case_studies/README.md) | scripts and results for the public datasets |
|
|
238
|
+
| [Figures](https://github.com/Reynold4k/Threadfin/blob/main/manuscript/figures/README.md) | figures of the manuscript, with their source code |
|
|
239
|
+
| [Benchmark](https://github.com/Reynold4k/Threadfin/blob/main/manuscript/benchmarking/README.md) | Threadfin against Clonotrace, clone2vec, Benisse, CoNGA and scirpy |
|
|
240
|
+
| [Changelog](https://github.com/Reynold4k/Threadfin/blob/main/CHANGELOG.md) | what changed in each version |
|
|
241
|
+
|
|
242
|
+
## Citation
|
|
243
|
+
|
|
244
|
+
A manuscript describing Threadfin is in preparation. Until it is available, please cite this repository
|
|
245
|
+
([CITATION.cff](https://github.com/Reynold4k/Threadfin/blob/main/CITATION.cff)) and the tools Threadfin builds on: Dandelion (Suo *et al.*, *Nat.
|
|
246
|
+
Biotechnol.* 2024) for clone definition, Scanpy (Wolf *et al.*, *Genome Biol.* 2018) and UMAP (McInnes
|
|
247
|
+
*et al.*, *J. Open Source Softw.* 2018).
|
|
248
|
+
|
|
249
|
+
## How Threadfin compares with related tools
|
|
250
|
+
|
|
251
|
+
Clonotrace, clone2vec, Benisse and CoNGA also combine lineage and transcriptome, and answer related but
|
|
252
|
+
different questions. On the same data and clones ([benchmark](https://github.com/Reynold4k/Threadfin/blob/main/manuscript/benchmarking/README.md), with a
|
|
253
|
+
one-page overview): Threadfin and Benisse represent every clone with two or more cells by default
|
|
254
|
+
(clone2vec starts at three cells, Clonotrace at ten), and Threadfin's test of clonal coherence keeps its
|
|
255
|
+
error rate when samples differ, where per-clone graph scores and cell-level tests do not. For recovering
|
|
256
|
+
measured clone annotations Threadfin is comparable to clone2vec and to a simple mean of the cells'
|
|
257
|
+
coordinates, and better than Clonotrace at its default and than Benisse; in simulation, clone2vec groups clones by their
|
|
258
|
+
planted programme and tells mixed from in-between clones more accurately. Threadfin needs a fraction of the
|
|
259
|
+
others' time (its clone profiles take seconds; clone2vec about 30 times longer, Clonotrace 300 to 2,400
|
|
260
|
+
times) and finished every run without help; a million cells take about an hour on 8 cores
|
|
261
|
+
([scalability](https://github.com/Reynold4k/Threadfin/blob/main/manuscript/analyses/technical_validation/scalability/README.md)).
|
|
262
|
+
The benchmark reports every result, including those where Threadfin is not the best.
|
|
263
|
+
|
|
264
|
+
## Related tools
|
|
265
|
+
|
|
266
|
+
* [Dandelion](https://github.com/zktuong/dandelion) — single-cell immune receptor analysis; Threadfin's
|
|
267
|
+
clone definition.
|
|
268
|
+
* [Clonotrace](https://github.com/yuntianf/Clonotrace) — distances between expanded clones on the cell-state
|
|
269
|
+
graph after label spreading.
|
|
270
|
+
* [clone2vec](https://github.com/kharchenkolab/clone2vec) — clone embeddings learned from which clones'
|
|
271
|
+
cells are neighbours.
|
|
272
|
+
* [Benisse](https://github.com/wooyongc/Benisse) — a joint space of BCR sequences and expression.
|
|
273
|
+
* [CoNGA](https://github.com/phbradley/conga) — graph-vs-graph analysis of T-cell receptor and expression
|
|
274
|
+
similarity.
|
|
275
|
+
* [Scirpy](https://github.com/scverse/scirpy) — single-cell immune receptor analysis in the scverse
|
|
276
|
+
ecosystem; Threadfin reads its AnnData and MuData objects.
|
|
277
|
+
* [Scanpy](https://github.com/scverse/scanpy) and [AnnData](https://github.com/scverse/anndata) — the data
|
|
278
|
+
structures and single-cell tools Threadfin works with.
|
|
279
|
+
* [Immcantation](https://immcantation.readthedocs.io) — B-cell receptor repertoire analysis, including
|
|
280
|
+
clonal lineage reconstruction.
|
|
281
|
+
|
|
282
|
+
## Support
|
|
283
|
+
|
|
284
|
+
Please report bugs and ask questions through [GitHub issues](https://github.com/Reynold4k/Threadfin/issues).
|
|
285
|
+
|
|
286
|
+
## License
|
|
287
|
+
|
|
288
|
+
MIT; see [LICENSE](https://github.com/Reynold4k/Threadfin/blob/main/LICENSE).
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
threadfin/__init__.py,sha256=iW8tADJ1ryZzwjWJynvOlooqm2DoHvPwLMttEHGF4Gs,2698
|
|
2
|
+
threadfin/_utils.py,sha256=n22THmAghRDhhCiCzPL2BkVLNUcMP4e-rtSZ-KgnPAo,10719
|
|
3
|
+
threadfin/api.py,sha256=yppwMpygdRxiN9bfh5oq3RVkT6zTVCbRLNcRMfohYaw,37102
|
|
4
|
+
threadfin/bcrgraph.py,sha256=1uA6xkoZF1XbNdcgEYy_oGX20nwtEesAD5UiPl7qMFg,8793
|
|
5
|
+
threadfin/clones.py,sha256=xkR7mu-228wYV3DWZoxoiUQRmQJDSzq0GYw3ysP53ko,29955
|
|
6
|
+
threadfin/core.py,sha256=mpQVa_6c-f-EoKwt2Q-ZPquPTP4LFhdKN6uaPLPakkg,21694
|
|
7
|
+
threadfin/dandelion.py,sha256=WSjZjxNqxGcBHAt3iQu4qdPFNwYsAvrUzHbb1S5_sg8,26359
|
|
8
|
+
threadfin/density.py,sha256=L9v4vX6nG9WhTtT6d9mpmGw_GEco2mu3qoYUNQHA1dg,22212
|
|
9
|
+
threadfin/dynamics.py,sha256=hwTqNYQoGSPM9NCSeFde9XjixKhZGFOPFQKTGACVsco,13095
|
|
10
|
+
threadfin/export.py,sha256=_FzenPmdT6z6xvaN_F35d89Fy7LNDlgQS-BXjad5T5I,10171
|
|
11
|
+
threadfin/expression.py,sha256=3VAhRpCHazQy3PHCOCJ2izggkQfBOAF3AR1lIKVKUdE,5942
|
|
12
|
+
threadfin/heritability.py,sha256=7pHmGudc-6adhpDAA_leEk-mx43VbbS9HM1JFGacy_s,10148
|
|
13
|
+
threadfin/integrate.py,sha256=OTTDyaYlq_MRTDXs3FV2yv8msDSLysgGLnv9qh6b0cE,12924
|
|
14
|
+
threadfin/io.py,sha256=wui4dIJFVXasQlYetyjq3urHlgKUT98ivU3kd7QKECk,10834
|
|
15
|
+
threadfin/maptune.py,sha256=H1FzElD162mQsNq5-5sV9FLKCJsF4gPurLgxRBOtzK8,40402
|
|
16
|
+
threadfin/metrics.py,sha256=2QVH6MMPDNMBjB1rhqodPIlZ5BpZZcEfksJW4DjMpII,4843
|
|
17
|
+
threadfin/migration.py,sha256=LRv4C_BCjpUdRq4SkBrtgja5_v1n34cRC25N7VME6ak,5644
|
|
18
|
+
threadfin/phylo.py,sha256=V3uGN29ijcqo_E8rnQmY9zgo6YfLGt1X8TFK49JbcG4,38683
|
|
19
|
+
threadfin/plotting.py,sha256=kp1jjl1MVl_n57BUL9aHo4kytdy4KlFUStzNbY4YrBE,24258
|
|
20
|
+
threadfin/pp.py,sha256=M8lgAmmlv-YnS-mRfpeFfwUVnnFgk7sp0VkzSdi5jzQ,10820
|
|
21
|
+
threadfin/profiles.py,sha256=CsvuW3iUavilfmJlLNcVkg6M29nWZ63hLcNy5q7ihao,27731
|
|
22
|
+
threadfin/programmes.py,sha256=e6UATezhPaITdi68dsZAkvX6UvGNrGhpgCGdqbCmPdk,52629
|
|
23
|
+
threadfin/programs.py,sha256=lQZlfFlK_Yzuc-9chYlCtiCadlJsNsuzWPYv13IiCrc,4533
|
|
24
|
+
threadfin/reclustering.py,sha256=8B-a--2tj1b8DrhvTcqKT98u2ycakTZJJqW9Dn2_lLE,2874
|
|
25
|
+
threadfin/sequence.py,sha256=qXXQDds9TK6ZP3oQ5I2gKv5hYAWkDrKx734kt21wdys,14155
|
|
26
|
+
threadfin/simulate.py,sha256=-jxVu7Q1Uz70PmdOR58KGLc3LdbaUe0KsL1C8s3O6Wk,9217
|
|
27
|
+
threadfin/specificity.py,sha256=BYkxYn7Vi76xUP0xeSB_Sqi5x9ZTuwdONxjaIuzsojM,14008
|
|
28
|
+
threadfin/stats.py,sha256=CBWGKmPzJ_n04c6ansfrtCan6Bx94pQvNjwFWlMt2-g,20635
|
|
29
|
+
threadfin/tl.py,sha256=i8Q-ZUsop6VyorSrmtQKUBJzs9j0bi9VRV_BhE7Jhnc,2669
|
|
30
|
+
threadfin-4.5.0.dist-info/licenses/LICENSE,sha256=tkodCJd-7P8XcWiLXlGTR_AuyAtCjhiVJKlfy4bq3JQ,1081
|
|
31
|
+
threadfin-4.5.0.dist-info/METADATA,sha256=SGj1EHsaPp6MQBaRxnFijT1XMy3IsT6RPipSUd1H2ds,18944
|
|
32
|
+
threadfin-4.5.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
33
|
+
threadfin-4.5.0.dist-info/top_level.txt,sha256=ZHRcNj4apqedXmP2rG-DFW7OzYA3bAcXbLNDH5_Tclc,10
|
|
34
|
+
threadfin-4.5.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Chen Satoshi (Reynold4k)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
threadfin
|