diff --git a/java/src/org/broadinstitute/sting/bwa/CreateBWTFromReference.java b/java/src/org/broadinstitute/sting/bwa/CreateBWTFromReference.java
index 93a1588a8..04d6a730d 100755
--- a/java/src/org/broadinstitute/sting/bwa/CreateBWTFromReference.java
+++ b/java/src/org/broadinstitute/sting/bwa/CreateBWTFromReference.java
@@ -99,6 +99,13 @@ public class CreateBWTFromReference {
return compressedSuffixArray;
}
+ private int[] createInversedCompressedSuffixArray( int[] compressedSuffixArray ) {
+ int[] inverseCompressedSuffixArray = new int[compressedSuffixArray.length];
+ for( int i = 0; i < compressedSuffixArray.length; i++ )
+ inverseCompressedSuffixArray[compressedSuffixArray[i]] = i;
+ return inverseCompressedSuffixArray;
+ }
+
private byte[] createBWT( String sequence, int[] suffixArray ) {
byte[] bwt = new byte[suffixArray.length];
for( int i = 0; i < suffixArray.length; i++ ) {
@@ -111,16 +118,19 @@ public class CreateBWTFromReference {
}
public static void main( String argv[] ) throws IOException {
- if( argv.length != 2 ) {
- System.out.println("USAGE: CreateBWTFromReference .fasta