# HG changeset patch # User timpalpant # Date 1329189126 18000 # Node ID e16016635b2a202286c0a44e552e51589aa8365a # Parent a54db233ee3d126255f37d89694dbc9c62a8059a Uploaded diff -r a54db233ee3d -r e16016635b2a META-INF/MANIFEST.MF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/META-INF/MANIFEST.MF Mon Feb 13 22:12:06 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 a54db233ee3d -r e16016635b2a README.rdoc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.rdoc Mon Feb 13 22:12:06 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 a54db233ee3d -r e16016635b2a build.properties diff -r a54db233ee3d -r e16016635b2a build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build.xml Mon Feb 13 22:12:06 2012 -0500 @@ -0,0 +1,112 @@ + + + + build the toolkit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r a54db233ee3d -r e16016635b2a galaxy-conf/BaseAlignCounts.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/galaxy-conf/BaseAlignCounts.xml Mon Feb 13 22:12:06 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 a54db233ee3d -r e16016635b2a galaxy-conf/galaxyToolRunner.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/galaxy-conf/galaxyToolRunner.sh Mon Feb 13 22:12:06 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 a54db233ee3d -r e16016635b2a galaxyToolConf.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/galaxyToolConf.xml Mon Feb 13 22:12:06 2012 -0500 @@ -0,0 +1,41 @@ + +