Skip to content

Commit 0fb244f

Browse files
MiTPenguingrst
andauthored
add sequence read in for 10x json (#619)
* add sequence read in for json * Use correct AIRR field for aa sequence * Update CHANGELOG --------- Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
1 parent 6602689 commit 0fb244f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning][].
1717
### Fixes
1818

1919
- Ensure that clonotype network plots don't have any axis ticks ([#607](https://github.com/scverse/scirpy/pull/607)).
20+
- Load `sequence`, `sequence_aa` and `sequence_id` fields when reading from 10x JSON format ([#619](https://github.com/scverse/scirpy/pull/619)).
2021

2122
### Chore
2223

src/scirpy/io/_io.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ def _read_10x_vdj_json(
130130
chain["productive"] = contig["productive"]
131131
chain["is_cell"] = contig["is_cell"]
132132
chain["high_confidence"] = contig["high_confidence"]
133+
chain["sequence"] = contig["sequence"]
134+
chain["sequence_aa"] = contig["aa_sequence"]
135+
chain["sequence_id"] = contig["contig_name"]
133136

134137
# additional cols from CR6 outputs: fwr{1,2,3,4}{,_nt} and cdr{1,2}{,_nt}
135138
fwrs = [f"fwr{i}" for i in range(1, 5)]

0 commit comments

Comments
 (0)