Skip to content

Commit

Permalink
Fix issue 56
Browse files Browse the repository at this point in the history
  • Loading branch information
38 committed Jul 22, 2022
1 parent ee78d82 commit a99bd23
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ members = [
]

[profile.release]
debug = false
debug = true
8 changes: 1 addition & 7 deletions d4-hts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,7 @@ impl<'a, R: AlignmentReader<'a>> Iterator for DepthIter<'a, R> {
break;
}
self.heap.push(Reverse(right));
self.next_read = self.iter.next().map(|x| {
(
x.as_ref().unwrap().ref_id(),
x.as_ref().unwrap().ref_begin(),
x.as_ref().unwrap().ref_end(),
)
});
self.load_next();
}

while self.heap.peek().map_or(false, |x| x.0 < self.cur_pos) {
Expand Down
4 changes: 2 additions & 2 deletions d4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ default-features = false
features = ["rustls-tls", "blocking"]

[dependencies.d4-framefile]
#path = "../d4-framefile"
path = "../d4-framefile"
version = "0.3"

[dependencies.d4-hts]
#path = "../d4-hts"
path = "../d4-hts"
version = "0.3"
optional = true

Expand Down
2 changes: 1 addition & 1 deletion d4binding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ d4-framefile = { path = "../d4-framefile"}
rayon = "1.3.0"

[build-dependencies]
bindgen = "0.59.1"
bindgen = "0.60.1"

[lib]
crate_type = ["cdylib", "staticlib"]
16 changes: 8 additions & 8 deletions d4tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ seq-task = ["d4/seq-task"]
d4-server = ["warp", "tokio", "serde_derive", "serde", "serde_json"]

[dependencies]
#d4 = { path = "../d4" }
#d4-hts = { path = "../d4-hts" }
#d4-framefile = { path = "../d4-framefile", features = ["mapped_io"]}
#d4-bigwig = { path = "../d4-bigwig" }
d4 = "0.3.7"
d4-hts = "0.3.6"
d4-framefile = "0.3.6"
d4-bigwig = "0.3.6"
d4 = { path = "../d4" }
d4-hts = { path = "../d4-hts" }
d4-framefile = { path = "../d4-framefile", features = ["mapped_io"]}
d4-bigwig = { path = "../d4-bigwig" }
#d4 = "0.3.7"
#d4-hts = "0.3.6"
#d4-framefile = "0.3.6"
#d4-bigwig = "0.3.6"
rayon = "1.3.0"
clap = { version = "2.34.0", features = ["yaml"] }
regex = "1.3.1"
Expand Down
2 changes: 1 addition & 1 deletion d4tools/src/create/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl BamFilter {
let exact_match = self.bam_flags.map_or(true, |expected| expected == flag);
let inclusive_match = (self.inclusive_flag & flag) == self.inclusive_flag;
let exclusive_match = (self.exclusive_flag & flag) == 0;
quality & exact_match && inclusive_match && exclusive_match
quality && exact_match && inclusive_match && exclusive_match
}
}

Expand Down
4 changes: 2 additions & 2 deletions pyd4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["Hao Hou <[email protected]>"]
edition = "2021"

[dependencies]
d4 = { version = "0.3.6" }
#d4 = { path = "../d4" }
#d4 = { version = "0.3.6" }
d4 = { path = "../d4" }
pyo3 = "0.15.0"
rayon = "1.4.0"
env_logger = "0.9.0"
Expand Down

0 comments on commit a99bd23

Please sign in to comment.