Skip to content

Commit

Permalink
upgrade anndata-rs and pyo3
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhang committed May 1, 2024
1 parent 17537d6 commit f97216d
Show file tree
Hide file tree
Showing 12 changed files with 317 additions and 176 deletions.
10 changes: 5 additions & 5 deletions snapatac2-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage = "https://github.com/"
keywords = ["single-cell", "biology"]

[dependencies]
anndata = "0.3.2"
anndata = "0.3.3"
anyhow = "1.0"
bigtools = { version = "0.4", features = ["read", "write"] }
bincode = "1.3"
Expand All @@ -21,16 +21,16 @@ tokio = "1.34"
hora = "0.1"
kdtree = "0.7"
itertools = "0.12"
indexmap = "2.0"
indexmap = "2.2"
indicatif = {version = "0.17", features = ["rayon"] }
lexical = "6.1"
log = "0.4"
ndarray = { version = "0.15", features = ["rayon"] }
num = "0.4"
noodles = { version = "0.64", features = ["core", "bam", "sam", "gff", "gtf"] }
noodles = { version = "0.70", features = ["core", "bam", "sam", "gff", "gtf"] }
nalgebra-sparse = "0.9"
polars = { version = "0.37", features = ["ndarray", "dtype-categorical"] }
rayon = "1.8"
polars = { version = "0.39", features = ["ndarray", "dtype-categorical"] }
rayon = "1.10"
regex = "1.6"
serde = "1.0"
statrs = "0.16"
Expand Down
4 changes: 2 additions & 2 deletions snapatac2-core/src/preprocessing/bam/mark_duplicates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ impl FlagStat {
}

if !flags.is_unmapped() {
if flags.is_properly_aligned() {
if flags.is_properly_segmented() {
self.proper_pair += 1;
}

Expand Down Expand Up @@ -383,7 +383,7 @@ where
flagstat.update(r);
let flag = r.flags();
let is_properly_aligned = !flag.is_supplementary() &&
(!is_paired || flag.is_properly_aligned());
(!is_paired || flag.is_properly_segmented());
let flag_pass = !flag.intersects(flag_failed);
let mapq_pass = mapq_filter.map_or(true, |min_q| {
let q = r.mapping_quality().map_or(255, |x| x.get());
Expand Down
Loading

0 comments on commit f97216d

Please sign in to comment.