Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to GATK 4.5.0 #306

Merged
merged 10 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 25 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ buildscript {
plugins {
id "java"
id "application"
id "com.github.johnrengelman.shadow" version "7.1.1" //used to build the shadow and sparkJars
id "com.github.johnrengelman.shadow" version "8.1.1" //used to build the shadow and sparkJars
id 'com.palantir.git-version' version '0.5.1' //version helper
}

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

import java.util.stream.Collectors

apply plugin: 'java'

repositories {
Expand Down Expand Up @@ -49,18 +51,18 @@ configurations {
mainClassName = "com.github." + rootProject.name.toLowerCase() + ".Main"

//see this thread: https://github.com/broadinstitute/gatk/issues/2300#issuecomment-333627036
final gatkVersion = '4.4.0.0'
final htsjdkVersion = System.getProperty('htsjdk.version','3.0.5')
final gatkVersion = '4.5.0.0'
final htsjdkVersion = System.getProperty('htsjdk.version','4.1.0')
final barclayVersion = System.getProperty('barclay.version','5.0.0')
final luceneVersion = System.getProperty('lucene.version','9.3.0')
final testNGVersion = '7.0.0'
final googleCloudNioDependency = 'com.google.cloud:google-cloud-nio:0.123.25'
final googleCloudNioDependency = 'com.google.cloud:google-cloud-nio:0.127.8'
final log4j2Version = System.getProperty('log4j2Version', '2.17.1')

final docBuildDir = "$buildDir/docs"
logger.info(docBuildDir)

configurations.all {
configurations.configureEach {
resolutionStrategy {
// force the htsjdk version so we don't get a different one transitively or GATK
force 'com.github.samtools:htsjdk:' + htsjdkVersion
Expand All @@ -74,6 +76,9 @@ configurations.all {
// make sure we don't pick up an incorrect version of the GATK variant of the google-nio library
// via Picard, etc.
force googleCloudNioDependency

// Added to avoid GATK forcing commons-text 1.10, and opencsv forcing 1.11
force 'org.apache.commons:commons-text:1.11.0'
}
}

Expand All @@ -100,19 +105,16 @@ dependencies {

implementation group: 'com.milaboratory', name: 'milib', version: '2.1.0'

implementation 'com.opencsv:opencsv:5.7.1'
implementation 'com.opencsv:opencsv:5.9'

implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'org.apache.commons:commons-lang3:3.14.0'

implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
implementation group: 'commons-io', name: 'commons-io', version: '2.15.1'

// compilation for testing
testImplementation 'org.testng:testng:' + testNGVersion

// https://mvnrepository.com/artifact/org.apache.commons/commons-text
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0'

implementation 'org.biojava:biojava-core:6.0.5'
implementation 'org.biojava:biojava-core:7.1.0'

implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.12.0'

Expand All @@ -127,7 +129,7 @@ dependencies {
}

wrapper {
gradleVersion = '7.3.2'
gradleVersion = '8.2.1'
}

final runtimeAddOpens = [
Expand Down Expand Up @@ -190,13 +192,13 @@ final testAddOpens = [
'java.prefs/java.util.prefs=ALL-UNNAMED' // required for jacoco tasks
]

tasks.withType(Jar) {
tasks.withType(Jar).configureEach {
// transform the list of --add-opens directives into manifest format, which requires only the source
// package (unlike the command line equivalent, in the manifest the "ALL-UNNAMED" target is implied
// and can't be included in the manifest entry syntax)
final manifestAddOpens = runtimeAddOpens.stream()
.map(o -> o.substring(0, (o.length() - "ALL-UNNAMED".length()) - 1))
.collect(java.util.stream.Collectors.joining(' '))
.collect(Collectors.joining(' '))
manifest {
attributes 'Implementation-Title': 'DISCVR-seq Toolkit',
'Implementation-Version': archiveVersion,
Expand All @@ -208,7 +210,7 @@ tasks.withType(Jar) {
}
}

tasks.withType(ShadowJar) {
tasks.withType(ShadowJar).configureEach {
from(project.sourceSets.main.output)
archiveBaseName = project.name
mergeServiceFiles()
Expand All @@ -233,14 +235,14 @@ shadowJar {
dependsOn(distTar, distZip, startScripts)
}

task localJar{ dependsOn shadowJar }
tasks.register('localJar') { dependsOn shadowJar }

task sourcesJar(type: Jar) {
tasks.register('sourcesJar', Jar) {
from sourceSets.main.allSource
archiveClassifier = 'sources'
}

task copyShadowJar(type: Copy) {
tasks.register('copyShadowJar', Copy) {
dependsOn shadowJar

from(shadowJar.archivePath)
Expand All @@ -251,7 +253,7 @@ task copyShadowJar(type: Copy) {
}
}

tasks.withType(Javadoc) {
tasks.withType(Javadoc).configureEach {
// do this for all javadoc tasks, including toolDoc
options.addStringOption('Xdoclint:none')
outputs.upToDateWhen { false }
Expand All @@ -266,7 +268,8 @@ javadoc {
}

// Generate Online Doc
task toolDoc(type: Javadoc, dependsOn: classes ) {
tasks.register('toolDoc', Javadoc) {
dependsOn classes
final File baseDocDir = new File("$buildDir/docs")
final File toolDocDir = new File("$buildDir/docs/toolDoc")
doFirst {
Expand Down Expand Up @@ -323,7 +326,7 @@ task toolDoc(type: Javadoc, dependsOn: classes ) {
test {
// transform the list test configuration --add-opens (which must include both the runtime and test args) into
// command line argument format
final testJVMAddOpens = new ArrayList<>();
final testJVMAddOpens = new ArrayList<String>();
testJVMAddOpens.addAll(runtimeAddOpens);
testJVMAddOpens.addAll(testAddOpens);
final testConfigurationJVMArgs = testJVMAddOpens.stream()
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
import java.util.*;
import java.util.stream.Collectors;

import static org.broadinstitute.hellbender.tools.funcotator.FuncotatorUtils.DEFAULT_SPLICE_SITE_WINDOW_SIZE;

/**
* This is an extension of the GATK Funcotator tool. The primary purpose of this tool is to produce a VCF output where specific fields from Funcotator are output
* as discrete INFO field annotations, rather than Funcotator's default, which involves a single INFO field where the annotations are concatenated together.
Expand Down Expand Up @@ -95,7 +97,8 @@ public void onTraversalStart() {
getArguments().lookaheadFeatureCachingInBp,
new FlankSettings(getArguments().fivePrimeFlankSize, getArguments().threePrimeFlankSize),
false,
getArguments().minNumBasesForValidSegment
getArguments().minNumBasesForValidSegment,
DEFAULT_SPLICE_SITE_WINDOW_SIZE
);


Expand Down