Skip to content
This repository was archived by the owner on May 22, 2026. It is now read-only.

Commit 227d793

Browse files
committed
Update HTSJDK to a more modern version and fix a typo.
* Update htsjdk dependency version to a recent version * Update a method call which was deprecated since the last htsjdk version * Fix a typo in the link to the htsjdk repository
1 parent b772179 commit 227d793

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Currently, the project uses the following third-party libraries:
9292
* JRegex (http://jregex.sourceforge.net, BSD license) is a regular expressions library that is used instead of the
9393
standard Java library because its performance is much higher than that of the standard library.
9494
* Commons CLI (http://commons.apache.org/proper/commons-cli, Apache License) – a library for parsing the command line.
95-
* HTSJDK (http://smtools.github.io/htsjdk/) is an implementation of a unified Java library for accessing common file formats, such as SAM and VCF.
95+
* HTSJDK (http://samtools.github.io/htsjdk/) is an implementation of a unified Java library for accessing common file formats, such as SAM and VCF.
9696
* Mockito and TestNG are the testing frameworks (not included in distribution, used only in tests).
9797

9898
### Single sample mode

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies {
2525
compile 'commons-cli:commons-cli:1.2'
2626
compile 'org.apache.commons:commons-math3:3.6.1'
2727
compile 'com.edropple.jregex:jregex:1.2_01'
28-
compile('com.github.samtools:htsjdk:2.8.0') {
28+
compile('com.github.samtools:htsjdk:2.21.1') {
2929
transitive = false
3030
}
3131
testCompile 'org.mockito:mockito-core:2.23.0'

src/main/java/com/astrazeneca/vardict/modules/RecordPreprocessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private boolean preprocessRecord(SAMRecord record) {
119119
}
120120

121121
//Skip not primary alignment reads
122-
if (record.getNotPrimaryAlignmentFlag() && !instance().conf.samfilter.equals("0")) {
122+
if (record.isSecondaryAlignment() && !instance().conf.samfilter.equals("0")) {
123123
return false;
124124
}
125125
// Skip reads where sequence is not stored in read

0 commit comments

Comments
 (0)