Skip to content

Commit

Permalink
Update htslib support to new MmIdx
Browse files Browse the repository at this point in the history
  • Loading branch information
jguhlin committed Jan 4, 2025
1 parent 6ea99b6 commit c721f41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ needletail = { version = "0.6", default-features = false}

[features]
default = ["map-file"]
map-file = ["needletail"] #, "simdutf8"]
map-file = ["needletail"]
htslib = ['rust-htslib']
simde = ["minimap2-sys/simde"]
zlib-ng = ["minimap2-sys/zlib-ng"]
Expand Down
6 changes: 2 additions & 4 deletions src/htslib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,8 @@ pub struct SeqMetaData {
pub is_alt: bool,
}

#[derive(Debug)]
pub struct MMIndex {
pub inner: Arc<*mut mm_ffi::mm_idx_t>,
pub inner: Arc<super::MmIdx>,
}

impl MMIndex {
Expand Down Expand Up @@ -345,8 +344,7 @@ impl MMIndex {
impl From<&Aligner<Built>> for MMIndex {
fn from(aligner: &Aligner<Built>) -> Self {
MMIndex {
// inner: aligner.idx.unwrap(),
inner: std::sync::Arc::clone(&aligner.idx.as_ref().unwrap()),
inner: std::sync::Arc::clone(aligner.idx.as_ref().unwrap()),
}
}
}
Expand Down

0 comments on commit c721f41

Please sign in to comment.