delete all experiments on fullstack_genomix
diff --git a/genomix/genomix-data/.classpath b/genomix/genomix-data/.classpath
index 7f85d53..daa9d4b 100644
--- a/genomix/genomix-data/.classpath
+++ b/genomix/genomix-data/.classpath
@@ -5,7 +5,7 @@
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
- <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
diff --git a/genomix/genomix-data/.project b/genomix/genomix-data/.project
index 2749b29..4628890 100644
--- a/genomix/genomix-data/.project
+++ b/genomix/genomix-data/.project
@@ -11,12 +11,12 @@
</arguments>
</buildCommand>
<buildCommand>
- <name>org.eclipse.m2e.core.maven2Builder</name>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
- <name>org.maven.ide.eclipse.maven2Builder</name>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
diff --git a/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/Position.java b/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/Position.java
deleted file mode 100644
index b740a7d..0000000
--- a/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/Position.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright 2009-2012 by The Regents of the University of California
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * you may obtain a copy of the License from
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package edu.uci.ics.genomix.experiment;
-
-import java.io.DataInput;
-import java.io.DataOutput;
-import java.io.IOException;
-
-import org.apache.hadoop.io.Writable;
-
-public class Position implements Writable {
- private int readID;
- private byte posInRead;
-
- public Position(int readID, byte posInRead) {
- set(readID, posInRead);
- }
-
- public Position() {
- readID = -1;
- posInRead = -1;
- }
-
- @Override
- public void readFields(DataInput arg0) throws IOException {
- readID = arg0.readInt();
- posInRead = arg0.readByte();
- }
-
- @Override
- public void write(DataOutput arg0) throws IOException {
- arg0.writeInt(readID);
- arg0.writeByte(posInRead);
- }
-
- @Override
- public String toString() {
- return String.valueOf(readID) + '\t' + String.valueOf(posInRead);
- }
-
- public void set(int readID, byte posInRead) {
- this.readID = readID;
- this.posInRead = posInRead;
- }
-
- public int getReadID() {
- return readID;
- }
-
- public void setReadID(int readID) {
- this.readID = readID;
- }
-
- public byte getPosInRead() {
- return posInRead;
- }
-}
\ No newline at end of file
diff --git a/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/PositionList.java b/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/PositionList.java
deleted file mode 100644
index 651a69c..0000000
--- a/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/PositionList.java
+++ /dev/null
@@ -1,183 +0,0 @@
-package edu.uci.ics.genomix.experiment;
-
-public class PositionList {
-
- private int[] readIDList;
- private byte[] posInReadList;
- private static final int[] EMPTY_INTS = {};
- private static final byte[] EMPTY_BYTES = {};
-
- private int usedSize;
- private int arraySize;
-
- public PositionList() {
- this(0, 0, EMPTY_INTS, EMPTY_BYTES);
- }
-
- public PositionList(int usedSize, int arraySize, int[] rList, byte[] pList) {
- this.usedSize = usedSize;
- this.arraySize = arraySize;
- if (arraySize > 0) {
- this.readIDList = rList;
- this.posInReadList = pList;
- if (this.readIDList.length != arraySize | this.posInReadList.length != arraySize) {
- throw new ArrayIndexOutOfBoundsException("the arraySize doesn't corespond to the array");
- }
- if (this.readIDList.length < usedSize | this.posInReadList.length < usedSize) {
- throw new ArrayIndexOutOfBoundsException("the usedSize doesn't corespond to the array");
- }
- } else {
- this.readIDList = rList;
- this.posInReadList = pList;
- this.arraySize = 0;
- this.usedSize = 0;
- }
- }
-
- public PositionList(int arraySize) {
- this.arraySize = arraySize;
- this.usedSize = 0;
- if (arraySize > 0) {
- this.readIDList = new int[this.arraySize];
- this.posInReadList = new byte[this.arraySize];
- } else {
- this.readIDList = EMPTY_INTS;
- this.posInReadList = EMPTY_BYTES;
- }
- }
-
- public PositionList(PositionList right) {
- if (right != null) {
- this.usedSize = right.usedSize;
- this.arraySize = right.arraySize;
- this.readIDList = new int[right.arraySize];
- this.posInReadList = new byte[right.arraySize];
- if (this.readIDList.length != arraySize | this.posInReadList.length != arraySize) {
- throw new ArrayIndexOutOfBoundsException("the arraySize doesn't corespond to the array");
- }
- if (this.readIDList.length < usedSize | this.posInReadList.length < usedSize) {
- throw new ArrayIndexOutOfBoundsException("the usedSize doesn't corespond to the array");
- }
- set(right);
- } else {
- this.arraySize = 0;
- this.usedSize = 0;
- this.readIDList = EMPTY_INTS;
- this.posInReadList = EMPTY_BYTES;
- }
- }
-
- public void set(PositionList newData) {
- set(newData.readIDList, 0, newData.posInReadList, 0, newData.usedSize);
- }
-
- public void set(int[] rIDList, int rOffset, byte[] pReadList, int pOffset, int copySize) {
- setArraySize(0);
- setArraySize(copySize);
- System.arraycopy(rIDList, rOffset, this.readIDList, 0, copySize);
- System.arraycopy(pReadList, pOffset, this.posInReadList, 0, copySize);
- this.usedSize = copySize;
- }
-
- public void setArraySize(int arraySize) {
- if (arraySize > getCapacity()) {
- setCapacity((arraySize * 2));
- }
- this.arraySize = arraySize;
- }
-
- public int getCapacity() {
- return this.arraySize;
- }
-
- public void setCapacity(int new_cap) {
- if (new_cap != getCapacity()) {
- int[] newRList = new int[new_cap];
- byte[] newPList = new byte[new_cap];
- if (new_cap < this.arraySize) {
- this.arraySize = new_cap;
- }
- if (this.arraySize != 0) {
- System.arraycopy(this.readIDList, 0, newRList, 0, this.usedSize);
- System.arraycopy(this.posInReadList, 0, newPList, 0, this.usedSize);
- }
- this.readIDList = newRList;
- this.posInReadList = newPList;
- }
- }
-
- public int getReadListElement(int position) {
- if (position < this.usedSize) {
- return this.readIDList[position];
- } else {
- throw new ArrayIndexOutOfBoundsException("position exceed for the usedSize");
- }
- }
-
- public byte getPosinReadListElement(int position) {
- if (position < this.usedSize) {
- return this.posInReadList[position];
- } else {
- throw new ArrayIndexOutOfBoundsException("position exceed for the usedSize");
- }
- }
-
- public int findReadListElement(int rContent) {
- for (int i = 0; i < this.usedSize; i++) {
- if (this.readIDList[i] == rContent)
- return i;
- }
- return -1;
- }
-
- public int findPosinReadListElement(int pContent) {
- for (int i = 0; i < this.usedSize; i++) {
- if (this.usedSize == pContent)
- return i;
- }
- return -1;
- }
-
- public void addELementToList(int rContent, byte pContent) {
- if (this.usedSize < this.arraySize) {
- this.readIDList[this.usedSize] = rContent;
- this.posInReadList[this.usedSize] = pContent;
- this.usedSize++;
- } else {
- setCapacity((this.arraySize * 2));
- this.readIDList[this.usedSize] = rContent;
- this.posInReadList[this.usedSize] = pContent;
- this.usedSize++;
- }
- }
-
- public void deleteElementFromTwoList(int position) {
- if (position < this.usedSize) {
- for (int i = position; i < this.usedSize; i++) {
- this.readIDList[i] = this.readIDList[i + 1];
- this.posInReadList[i] = this.posInReadList[i + 1];
- }
- this.readIDList[this.usedSize - 1] = -1;
- this.posInReadList[this.usedSize - 1] = (byte) -1;
- this.usedSize--;
- } else {
- throw new ArrayIndexOutOfBoundsException("position exceed for the usedSize");
- }
- }
-
- public int[] getReadIDList() {
- return this.readIDList;
- }
-
- public byte[] getPosInReadList() {
- return this.posInReadList;
- }
-
- public int getUsedSize() {
- return this.usedSize;
- }
-
- public int getArraySize() {
- return this.arraySize;
- }
-}
diff --git a/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/VertexAdjacentWritable.java b/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/VertexAdjacentWritable.java
deleted file mode 100644
index 4145a3b..0000000
--- a/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/VertexAdjacentWritable.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package edu.uci.ics.genomix.experiment;
-
-import java.io.DataInput;
-import java.io.DataOutput;
-import java.io.IOException;
-
-import org.apache.hadoop.io.Writable;
-
-import edu.uci.ics.genomix.type.KmerBytesWritable;
-import edu.uci.ics.genomix.type.VKmerBytesWritable;
-
-public class VertexAdjacentWritable implements Writable {
-
- private static final byte[] EMPTY_BYTES = {};
- private VertexIDListWritable adjVertexList;
- private VKmerBytesWritable kmer;
-
- public VertexAdjacentWritable() {
- this(null, 0, EMPTY_BYTES);
- }
-
- public VertexAdjacentWritable(PositionList right, int kmerSize, byte[] bytes) {
- if (right != null)
- this.adjVertexList = new VertexIDListWritable(right);
- else
- this.adjVertexList = new VertexIDListWritable();
- this.kmer = new VKmerBytesWritable(kmerSize, bytes);
- kmer.set(bytes, 0, bytes.length);
- }
-
- public void set(VertexAdjacentWritable right) {
- set(right.getAdjVertexList(), right.getVkmer());
- }
-
- public void set(VertexIDListWritable vIDList, KmerBytesWritable kmer) {
- this.adjVertexList.set(vIDList);
- this.kmer.set(kmer);
- }
-
- public void set(VertexIDListWritable vIDList, VKmerBytesWritable kmer) {
- this.adjVertexList.set(vIDList);
- this.kmer.set(kmer);
- }
-
- @Override
- public void readFields(DataInput arg0) throws IOException {
- // TODO Auto-generated method stub
- adjVertexList.readFields(arg0);
- kmer.readFields(arg0);
- }
-
- @Override
- public void write(DataOutput arg0) throws IOException {
- // TODO Auto-generated method stub
- adjVertexList.write(arg0);
- kmer.write(arg0);
- }
-
- public VertexIDListWritable getAdjVertexList() {
- return this.adjVertexList;
- }
-
- public VKmerBytesWritable getVkmer() {
- return this.kmer;
- }
-}
diff --git a/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/VertexIDListWritable.java b/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/VertexIDListWritable.java
deleted file mode 100644
index d8763e9..0000000
--- a/genomix/genomix-data/src/main/java/edu/uci/ics/genomix/experiment/VertexIDListWritable.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package edu.uci.ics.genomix.experiment;
-
-import java.io.DataInput;
-import java.io.DataOutput;
-import java.io.IOException;
-import org.apache.hadoop.io.Writable;
-
-public class VertexIDListWritable implements Writable {
-
- private PositionList vertexIDList;
- private int[] tempReadIDList = null;
- private byte[] tempPosInReadList = null;
-
- public VertexIDListWritable() {
- this.vertexIDList = new PositionList();
- }
-
- public VertexIDListWritable(PositionList right) {
- this.vertexIDList = new PositionList(right);
- }
-
- public VertexIDListWritable(int length) {
- this.vertexIDList = new PositionList(length);
- }
-
- public void set(VertexIDListWritable right) {
- set(right.get());
- }
- public void set(PositionList right) {
- this.vertexIDList.set(right);
- }
-
- @Override
- public void readFields(DataInput in) throws IOException {
- // TODO Auto-generated method stub
- int arraySize = in.readInt();
- int usedSize = in.readInt();
- if(usedSize > 0) {
- this.tempReadIDList = new int[arraySize];
- this.tempPosInReadList = new byte[arraySize];
- for(int i = 0; i < arraySize; i++){
- this.tempReadIDList[i] = in.readInt();
- }
- in.readFully(this.tempPosInReadList, 0, arraySize);
- this.vertexIDList.set(this.tempReadIDList, 0, this.tempPosInReadList, 0, usedSize);
- }
- }
-
-// Position [] pos = new Position();
- @Override
- public void write(DataOutput out) throws IOException {
-// out.writeInt(length);
-// for ( int i: length){
-// pos[i].write(out);
-// }
- // TODO Auto-generated method stub
- out.writeInt(vertexIDList.getArraySize());
- out.writeInt(vertexIDList.getUsedSize());
- if(vertexIDList.getUsedSize() > 0) {
- int[] readIDList = vertexIDList.getReadIDList();
- for(int i = 0 ; i < vertexIDList.getArraySize(); i ++ ){
- out.writeInt(readIDList[i]);
- }
- out.write(vertexIDList.getPosInReadList(), 0, vertexIDList.getArraySize());
- }
- }
-
- public PositionList get() {
- return vertexIDList;
- }
-}