-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
231 changed files
with
12,780 additions
and
7,669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: java | ||
|
||
jdk: | ||
- openjdk6 | ||
- openjdk7 | ||
- oraclejdk7 | ||
- oraclejdk8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
package de.charite.compbio.jannovar; | ||
|
||
/** Command line functions from apache */ | ||
import de.charite.compbio.jannovar.JannovarException; | ||
import de.charite.compbio.jannovar.JannovarOptions; | ||
import de.charite.compbio.jannovar.cmd.CommandLineParsingException; | ||
import de.charite.compbio.jannovar.cmd.HelpRequestedException; | ||
import de.charite.compbio.jannovar.cmd.JannovarCommand; | ||
import de.charite.compbio.jannovar.cmd.annotate_pos.AnnotatePositionCommand; | ||
import de.charite.compbio.jannovar.cmd.annotate_vcf.AnnotateVCFCommand; | ||
import de.charite.compbio.jannovar.cmd.db_list.DatabaseListCommand; | ||
import de.charite.compbio.jannovar.cmd.download.DownloadCommand; | ||
import de.charite.compbio.jannovar.reference.TranscriptModel; | ||
|
||
/** | ||
* This is the driver class for a program called Jannovar. It has two purposes | ||
|
@@ -78,18 +75,22 @@ public static void main(String argv[]) { | |
// Create the corresponding command. | ||
JannovarCommand cmd = null; | ||
try { | ||
if (argv[0].equals("download")) | ||
if (argv[0].equals("download")) { | ||
cmd = new DownloadCommand(argv); | ||
else if (argv[0].equals("db-list")) | ||
} else if (argv[0].equals("db-list")) { | ||
cmd = new DatabaseListCommand(argv); | ||
else if (argv[0].equals("annotate")) | ||
} else if (argv[0].equals("annotate")) { | ||
cmd = new AnnotateVCFCommand(argv); | ||
else if (argv[0].equals("annotate-pos")) | ||
} else if (argv[0].equals("annotate-pos")) { | ||
cmd = new AnnotatePositionCommand(argv); | ||
else | ||
} else { | ||
System.err.println("unrecognized command " + argv[0]); | ||
printTopLevelHelp(); | ||
} | ||
} catch (CommandLineParsingException e) { | ||
System.err.println("problem with parsing command line options: " + e.getMessage()); | ||
System.err.println("ERROR: problem with parsing command line options: " + e.getMessage()); | ||
System.err.println(""); | ||
System.err.println("Use --help for obtaining usage instructions."); | ||
} catch (HelpRequestedException e) { | ||
return; // no error, user wanted help | ||
} | ||
|
@@ -112,7 +113,7 @@ else if (argv[0].equals("annotate-pos")) | |
*/ | ||
private static void printTopLevelHelp() { | ||
System.err.println("Program: de.charite.compbio.jannovar (functional annotation of VCF files)"); | ||
System.err.println("Version: 0.10"); | ||
System.err.println("Version: " + JannovarOptions.JANNOVAR_VERSION); | ||
System.err.println("Contact: Peter N Robinson <[email protected]>"); | ||
System.err.println(""); | ||
System.err.println("Usage: java -jar de.charite.compbio.jannovar.jar <command> [options]"); | ||
|
@@ -124,8 +125,10 @@ private static void printTopLevelHelp() { | |
System.err.println(""); | ||
System.err.println("Example: java -jar de.charite.compbio.jannovar.jar download hg19/ucsc"); | ||
System.err.println(" java -jar de.charite.compbio.jannovar.jar db-list"); | ||
System.err.println(" java -jar de.charite.compbio.jannovar.jar annotate data/hg19_ucsc.ser variants.vcf"); | ||
System.err.println(" java -jar de.charite.compbio.jannovar.jar annotate-pos data/hg19_ucsc.ser 'chr1:12345C>A'"); | ||
System.err | ||
.println(" java -jar de.charite.compbio.jannovar.jar annotate data/hg19_ucsc.ser variants.vcf"); | ||
System.err | ||
.println(" java -jar de.charite.compbio.jannovar.jar annotate-pos data/hg19_ucsc.ser 'chr1:12345C>A'"); | ||
System.err.println(""); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,9 @@ | |
* @author Peter N Robinson <[email protected]> | ||
*/ | ||
public final class JannovarOptions { | ||
/** the version of the program */ | ||
public static final String JANNOVAR_VERSION = "0.13"; | ||
|
||
/** the selected command */ | ||
public Command command = null; | ||
|
||
|
@@ -67,6 +70,12 @@ public final class JannovarOptions { | |
/** whether or not to write out the VCF annotation standard fields */ | ||
public boolean writeVCFAnnotationStandardInfoFields = true; | ||
|
||
/** whether or not to escape characters like <code>'='</code> in the <code>ANN</code> VCF field. */ | ||
public boolean escapeAnnField = true; | ||
|
||
/** whether or not to shift variants towards the 3' end of the transcript */ | ||
public boolean nt3PrimeShifting = true; | ||
|
||
// TODO(holtgrem): enable and use this! | ||
/** path to output VCF file path (overrides generation of file name from input file name) */ | ||
public String outVCFFile = null; | ||
|
@@ -83,13 +92,6 @@ public enum Command { | |
DOWNLOAD, ANNOTATE_VCF, ANNOTATE_POSITION, DB_LIST | ||
} | ||
|
||
/** | ||
* Enumeration of the supported data sources. | ||
*/ | ||
public enum DataSource { | ||
ENSEMBL, REFSEQ, REFSEQ_CURATED, UCSC | ||
} | ||
|
||
/** | ||
* Print option values to stderr. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.