Skip to content
forked from samtools/htsjdk

A Java API for high-throughput sequencing data (HTS) formats.

Notifications You must be signed in to change notification settings

zimmerlab/htsjdk

 
 

Repository files navigation

A Java API for high-throughput sequencing data (HTS) formats.

Custom fork that is modified to allow access to private datastructures not available in the default repo.

How to use the Jar in a maven project

Option 1: Add to local maven repo:

  1. Build the Jar:
./gradlew

Jar location:

build/libs/htsjdk-<VERSION>.jar
  1. Install the Jar to the local maven repo:

Replace VERSION with the version of the previously built Jar.

mvn install:install-file \
   -Dfile=htsjdk-<version>.jar \
   -DgroupId=com.github.samtools \
   -DartifactId=htsjdk \
   -Dversion=VERSION \
   -Dpackaging=jar \
   -DgeneratePom=true

Option 2: Use remote maven repo:

  1. Configure maven authentication for github:

Add this to your ~/.m2/settings.xml file and replace USERNAME with your github username and TOKEN with a personal github access token:

<settings>
    <servers>
        <server>
            <id>github-zimmerlab-htsjdk</id>
            <username>USERNAME</username>
            <password>TOKEN</password>
        </server>
    </servers>
</settings>
  1. Add the github package repository to the maven project:

Add this to the pom.xml file in the projects root directory:

<repositories>
    <repository>
        <id>github-zimmerlab-htsjdk</id>
        <url>https://maven.pkg.github.com/zimmerlab/htsjdk</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>
  1. Add the dependency to the pom.xml file in the projects root directory:

Replace VERSION with the version of the jar you want to use (see releases).

<dependency>
    <groupId>com.github.zimmerlab</groupId>
    <artifactId>htsjdk</artifactId>
    <version>VERSION</version>
</dependency>

About

A Java API for high-throughput sequencing data (HTS) formats.

Resources

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Java 99.8%
  • Other 0.2%