This java command line application is a toolbox, combining a multitude of alignment statistics and fixes for Next Generation Sequencing (NGS) data. Computes consensus sequence with in-frame deletions and insertions
If you use SequenceAlignmentFixer, please cite Töpfer A. https://github.com/armintoepfer/seqalfixer
Please get the latest binary at https://github.com/armintoepfer/seqalfixer/releases
- Select only a region for analysis
- Coverage plot
- SNV entropy landscape plot
- Consensus sequence:
- Gapped, including major in-frame deletions
- In-frame insertions are including, with minmal coverage of
-insertions INT
- Minimal coverage with
-coverage INT
A BWA workflow to realign reads against the consensus sequence, please have a look at HOWTO
- JDK 7 (http://jdk7.java.net/)
java -jar SequenceAlignmentFixer.jar -i alignment.bam
Reads need to be properly aligned.
Reconstruct specific region with respect to reference genome numbering
-r 790-2292
Consensus
--consensus
Minimal coverage of insertions
-insertions INT [default: do not include insertions]
Minimal coverage
-coverage INT [default: 0]
Summary statistics can be produced with R:
R CMD BATCH support/plots.R
#####To minimize the memory consumption and the number of full garbage collector executions, use:
java -XX:NewRatio=9 -jar SequenceAlignmentFixer.jar
#####If your dataset is very large and you run out of memory, increase the heapspace with:
java -XX:NewRatio=9 -Xms2G -Xmx10G -jar SequenceAlignmentFixer.jar
####On multicore systems:
java -XX:+UseParallelGC -XX:NewRatio=9 -Xms2G -Xmx10G -jar SequenceAlignmentFixer.jar
####On multi-CPU systems:
java -XX:+UseParallelGC -XX:+UseNUMA -XX:NewRatio=9 -Xms2G -Xmx10G -jar SequenceAlignmentFixer.jar
#####Unix wrapper:
function saf() { java -XX:+UseParallelGC -Xms2g -Xmx10g -XX:+UseNUMA -XX:NewRatio=9 -jar SequenceAlignmentFixer.jar $*; }
Further help can be showed by running without additional parameters:
java -jar SequenceAlignmentFixer.jar
- Maven 3 (http://maven.apache.org/)
cd SequenceAlignmentFixer
mvn -DartifactId=samtools -DgroupId=net.sf -Dversion=1.9.6 -Dpackaging=jar -Dfile=src/main/resources/jars/sam-1.96.jar -DgeneratePom=false install:install-file
mvn clean package
java -jar SequenceAlignmentFixer/target/SequenceAlignmentFixer.jar
Armin Töpfer
armin.toepfer (at) gmail.com
http://www.bsse.ethz.ch/cbg/people/toepfera
GNU GPLv3 http://www.gnu.org/licenses/gpl-3.0