Skip to content

Commit

Permalink
Merge pull request #3 from tedil/annotate
Browse files Browse the repository at this point in the history
Add annotate functionality
  • Loading branch information
tedil authored Aug 19, 2024
2 parents 1b0fee6 + 932dd6a commit 2f6790c
Show file tree
Hide file tree
Showing 11 changed files with 1,815 additions and 426 deletions.
972 changes: 651 additions & 321 deletions Cargo.lock

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "cyrcular"
version = "0.2.0"
edition = "2018"
version = "0.3.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -10,7 +10,7 @@ bam = "0.1.4"
anyhow = "1.0.70"
itertools = "0.10.5"
clap = { version = "4.2.1", features = ["derive"] }
noodles = { version = "0.8", features = ["bcf", "vcf"] }
noodles = { version = "0.28", features = ["bcf", "vcf", "bgzf"] }
bio = "1.1.0"
rayon = "1.7.0"
indexmap = "1.9.3"
Expand All @@ -23,6 +23,7 @@ needletail = "0.5.1"
statrs = "0.16.0"
ordered-float = "3.6.0"
lazy_static = "1.4.0"
csv = "1.1.6"

[dependencies.enumflags2]
version = "0.7.6"
Expand All @@ -33,11 +34,11 @@ version = "0.6.3"
features = ["serde-1"]

[dependencies.serde]
version = "1.0.159"
version = "1.0.145"
features = ["derive"]

[dependencies.plotly]
version = "0.7.0"
version = "0.8.3"
features = ["kaleido"]

[dependencies.strum]
Expand Down
4 changes: 1 addition & 3 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ impl<'a> SplitReadInfo<'a> {
dbg!(&record);
continue;
}
let tree = trees
.entry(ref_id as u32)
.or_insert_with(ArrayBackedIntervalTree::new);
let tree = trees.entry(ref_id as u32).or_default();
tree.insert(start..end, record);
}
}
Expand Down
Loading

0 comments on commit 2f6790c

Please sign in to comment.