diff --git a/.gitignore b/.gitignore index e3a43dca2..de7f7a66a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ Cargo.lock htslib/* test/out.bam test/test_index_build.bam.csi +built_test.csi +built_test_vcf.tbx \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 4f0451201..e0ba8e7c0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ bio-types = ">=0.9" byteorder = "1.3" custom_derive = "0.1" derive-new = "0.7" -hts-sys = {version = "2.2.0", default-features = false, features = ["bindgen"]} +hts-sys = {version = "2.2.1", default-features = false, features = ["bindgen"]} ieee754 = "0.2" lazy_static = "1.4" libc = "0.2" diff --git a/src/bam/ext.rs b/src/bam/ext.rs index c02ce1b5b..e4d39d1a2 100644 --- a/src/bam/ext.rs +++ b/src/bam/ext.rs @@ -452,10 +452,8 @@ impl BamRecordExtensions for bam::Record { | Cigar::Diff(len) => { result += len; } - Cigar::HardClip(len) => { - if include_hard_clip { - result += len; - } + Cigar::HardClip(len) if include_hard_clip => { + result += len; } _ => {} }