# HG changeset patch # User timpalpant # Date 1329188155 18000 # Node ID 1daf3026d231ff4bbfed65b451e1d664e7f4005a Upload alpha version diff -r 000000000000 -r 1daf3026d231 ._java-genomics-toolkit Binary file ._java-genomics-toolkit has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._.classpath Binary file java-genomics-toolkit/._.classpath has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._.gitignore Binary file java-genomics-toolkit/._.gitignore has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._.project Binary file java-genomics-toolkit/._.project has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._META-INF Binary file java-genomics-toolkit/._META-INF has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._README.rdoc Binary file java-genomics-toolkit/._README.rdoc has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._build.properties Binary file java-genomics-toolkit/._build.properties has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._build.xml Binary file java-genomics-toolkit/._build.xml has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._galaxy-conf Binary file java-genomics-toolkit/._galaxy-conf has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._galaxyToolConf.xml Binary file java-genomics-toolkit/._galaxyToolConf.xml has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._gui Binary file java-genomics-toolkit/._gui has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._launch4j.xml Binary file java-genomics-toolkit/._launch4j.xml has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._lib Binary file java-genomics-toolkit/._lib has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._log4j.properties Binary file java-genomics-toolkit/._log4j.properties has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._resources Binary file java-genomics-toolkit/._resources has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._src Binary file java-genomics-toolkit/._src has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._stubFile.sh Binary file java-genomics-toolkit/._stubFile.sh has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/._toolRunner.sh Binary file java-genomics-toolkit/._toolRunner.sh has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/.classpath --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java-genomics-toolkit/.classpath Mon Feb 13 21:55:55 2012 -0500 @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/.gitignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java-genomics-toolkit/.gitignore Mon Feb 13 21:55:55 2012 -0500 @@ -0,0 +1,6 @@ +bin +build +dist +*.class +*.log +.DS_Store diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/.project --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java-genomics-toolkit/.project Mon Feb 13 21:55:55 2012 -0500 @@ -0,0 +1,17 @@ + + + java-genomics-toolkit + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/META-INF/._MANIFEST.MF Binary file java-genomics-toolkit/META-INF/._MANIFEST.MF has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/META-INF/MANIFEST.MF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java-genomics-toolkit/META-INF/MANIFEST.MF Mon Feb 13 21:55:55 2012 -0500 @@ -0,0 +1,9 @@ +Manifest-Version: 1.0 +Main-Class: edu.unc.genomics.GenomicsToolkit +Bundle-ManifestVersion: 2 +Bundle-Name: java-genomics-toolkit +Bundle-SymbolicName: java-genomics-toolkit +Bundle-Version: 1.0.0 +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-Description: This project provides tools for common genomic data processing. +Bundle-DocURL: http://github.com/timpalpant/java-genomics-toolkit \ No newline at end of file diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/README.rdoc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java-genomics-toolkit/README.rdoc Mon Feb 13 21:55:55 2012 -0500 @@ -0,0 +1,43 @@ += Java Genomics Toolkit + +This is a collection of applications for genomics data processing, primarily high-throughput next-generation sequencing. There is a particular focus on processing data in Wiggle format, since many other tools already cover SAM, BAM, FastQ, etc. However, Wiggle/BigWig formats provide a compact way to store numerical data resulting from ChIP-seq and MNase-seq experiments. Common computations provided in this toolkit include adding, subtracting, dividing, multiplying, log-transforming, averaging, Z-scoring, and Gaussian smoothing Wig files. + +Tools may be run from the command-line, a simple Swing GUI, or from Galaxy (http://getgalaxy.org). + +== Loading the Tools into Galaxy + +TODO + +== Using the ToolRunner GUI + +TODO + +== Command-Line Usage + +Applications can be run on the command-line, and the toolRunner.sh script is provided for convenience. Calling any script without arguments will display the help, as well as the missing mandatory arguments: + + $ > ./toolRunner.sh wigmath.AddWig + $ Usage:
[options] Input files + $ Options: + $ * -o, --output Output file + +Mandatory arguments are denoted with a (*). + +Other tools require more input: + + $ > ./toolRunner.sh ngs.Autocorrelation + $ Usage:
[options] + $ Options: + $ * -i, --input Input file + $ * -l, --loci Genomic loci (Bed format) + $ -m, --max Autocorrelation limit (bp) + $ Default: 200 + $ * -o, --output Output file + +=== Log transform a Wig file with base 2 + + $ > ./toolRunner.sh wigmath.LogTransform --input input.wig --base 2 --output output.log2.wig + +== Java Genomics IO + +Those wishing to write their own scripts may be interested in https://github.com/timpalpant/java-genomics-io, the toolkit upon which these applications are built. \ No newline at end of file diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/build.properties diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java-genomics-toolkit/build.xml Mon Feb 13 21:55:55 2012 -0500 @@ -0,0 +1,112 @@ + + + + build the toolkit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/galaxy-conf/._BaseAlignCounts.xml Binary file java-genomics-toolkit/galaxy-conf/._BaseAlignCounts.xml has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/galaxy-conf/._galaxyToolRunner.sh Binary file java-genomics-toolkit/galaxy-conf/._galaxyToolRunner.sh has changed diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/galaxy-conf/BaseAlignCounts.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java-genomics-toolkit/galaxy-conf/BaseAlignCounts.xml Mon Feb 13 21:55:55 2012 -0500 @@ -0,0 +1,21 @@ + + of sequencing reads + galaxyToolRunner.sh -i $input -g $dbkey -x $X -p 4 -o $output + + + + + + + + + + .. class:: warningmark + + This tool requires sequencing reads in SAM/BAM/Bed/BedGraph format. + + .. class:: warningmark + + This tool was contributed by Timothy Palpant. + + diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/galaxy-conf/galaxyToolRunner.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java-genomics-toolkit/galaxy-conf/galaxyToolRunner.sh Mon Feb 13 21:55:55 2012 -0500 @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +if [ $# -eq 0 ] +then + echo "USAGE: galaxyToolRunner.sh APPNAME [ARGS]"; + exit; +fi + +if [ "$1" = "list" ] +then + find src/edu/unc/genomics/**/*.java -exec basename -s .java {} \; +fi + +java -Dlog4j.configuration=log4j.properties -cp .:../build:../lib/* edu.unc.genomics."$@" \ No newline at end of file diff -r 000000000000 -r 1daf3026d231 java-genomics-toolkit/galaxyToolConf.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java-genomics-toolkit/galaxyToolConf.xml Mon Feb 13 21:55:55 2012 -0500 @@ -0,0 +1,41 @@ + +