Skip to content

Commit 55dde65

Browse files
committed
dependency upgrade
1 parent f2bfcdd commit 55dde65

6 files changed

Lines changed: 18 additions & 13 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ anndata-hdf5 = { git = "https://github.com/kaizhang/anndata-rs.git", rev = "cf0b
2626
#pyanndata = "0.6"
2727
pyanndata = { git = "https://github.com/kaizhang/anndata-rs.git", rev = "cf0b312f2834884bd708595a63f12f34f1905b7b"}
2828
anyhow = "1.0"
29-
bed-utils = "0.10.2"
29+
bed-utils = "0.11"
3030
flate2 = "1.0"
3131
itertools = "0.14"
3232
indicatif = "0.18"

docs/_static/versions.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@
55
"url": "https://scverse.org/SnapATAC2/version/dev/"
66
},
77
{
8-
"name": "2.8 (stable)",
9-
"version": "2.8",
8+
"name": "2.9 (stable)",
9+
"version": "2.9",
1010
"preferred": true,
11+
"url": "https://scverse.org/SnapATAC2/version/2.9/"
12+
},
13+
{
14+
"name": "2.8",
15+
"version": "2.8",
1116
"url": "https://scverse.org/SnapATAC2/version/2.8/"
1217
},
1318
{

docs/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Nightly (unreleased)
44

5-
## Release 2.9.0 (released March 05, 2026)
5+
## Release 2.9.0 (released March 13, 2026)
66

77
### Features:
88

snapatac2-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ anndata = { git = "https://github.com/kaizhang/anndata-rs.git", rev = "cf0b312f2
1515
anyhow = "1.0"
1616
bstr = "1.12"
1717
byteorder = "1.5"
18-
bincode-next = "3.0.0-rc.4"
1918
bigtools = { version = "0.5", features = ["read", "write"] }
20-
bed-utils = "0.10.2"
19+
bed-utils = "0.11"
20+
rkyv = "0.8"
2121
flate2 = "1.0"
2222
tokio = "1.34"
2323
hora = "0.1"

snapatac2-core/src/preprocessing/bam/flagstat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use bincode_next::{Decode, Encode};
21
use noodles::{bam::Record, sam::alignment::record::{Cigar, Flags, cigar::op::Kind}};
2+
use rkyv::{Archive, Deserialize as RkyvDeserialize, Serialize as RkyvSerialize};
33
use std::collections::{HashMap, HashSet};
44
use anyhow::{Result, Context};
55
use itertools::Itertools;
@@ -209,7 +209,7 @@ impl BamQC {
209209
}
210210

211211
/// Minimal information about an alignment extracted from the BAM record.
212-
#[derive(Encode, Decode, Debug)]
212+
#[derive(Archive, RkyvSerialize, RkyvDeserialize, Debug)]
213213
pub struct AlignmentInfo {
214214
pub name: String,
215215
pub reference_sequence_id: u32,

snapatac2-core/src/preprocessing/qc.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use anyhow::{Result, bail};
22
use bed_utils::bed::{map::GIntervalMap, BEDLike, GenomicRange, ParseError, Strand};
3-
use bincode_next::{Decode, Encode};
43
use ndarray::Array2;
4+
use rkyv::{Archive, Deserialize as RkyvDeserialize, Serialize as RkyvSerialize};
55
use rayon::iter::{IntoParallelIterator, ParallelIterator};
66
use smallvec::{SmallVec, smallvec};
77
use std::{
@@ -202,7 +202,7 @@ pub trait QualityControl: SnapData {
202202
impl<T: SnapData> QualityControl for T {}
203203

204204

205-
#[derive(Encode, Decode, Debug, Clone)]
205+
#[derive(Archive, RkyvSerialize, RkyvDeserialize, Debug, Clone)]
206206
pub enum Fragment {
207207
Single(SingleRead),
208208
Paired(PairRead),
@@ -361,7 +361,7 @@ impl BEDLike for Fragment {
361361

362362
/// Fragments from single-cell ATAC-seq experiment. Each fragment is represented
363363
/// by a genomic coordinate, cell barcode and a integer value.
364-
#[derive(Encode, Decode, Debug, Clone)]
364+
#[derive(Archive, RkyvSerialize, RkyvDeserialize, Debug, Clone)]
365365
pub struct PairRead {
366366
pub chrom: String,
367367
pub start: u64,
@@ -489,7 +489,7 @@ impl std::str::FromStr for PairRead {
489489
}
490490

491491
/// Single-ended reads from single-cell ATAC-seq experiment.
492-
#[derive(Encode, Decode, Debug, Clone)]
492+
#[derive(Archive, RkyvSerialize, RkyvDeserialize, Debug, Clone)]
493493
pub struct SingleRead {
494494
pub chrom: String,
495495
pub start: u64,
@@ -578,7 +578,7 @@ impl std::str::FromStr for SingleRead {
578578
}
579579

580580
/// Chromatin interactions from single-cell Hi-C experiment.
581-
#[derive(Encode, Decode, Debug)]
581+
#[derive(Archive, RkyvSerialize, RkyvDeserialize, Debug)]
582582
pub struct Contact {
583583
pub chrom1: String,
584584
pub start1: u64,

0 commit comments

Comments
 (0)