softparsmap
Class Mutation

java.lang.Object
  extended bysoftparsmap.Mutation

public class Mutation
extends java.lang.Object

This class contains the result from inferring gene duplications and loss.


Constructor Summary
Mutation(int dup, int loss)
          Creating a mutation given duplications and loss.
 
Method Summary
 void addDuplication(int dup)
          Adds duplications to this mutation.
 void addLoss(int loss)
          Adds loss to this mutation.
 int getDuplication()
          Returns number of duplications.
 int getLoss()
          Returns number of loss.
 boolean isSame(Mutation mut)
          Returns true if the given mutation is the same as this.
 boolean isWorse(Mutation mutate)
          Returns true if this is worse then the given mutation.
 java.lang.String toString()
          Returns a string that contains the mutation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Mutation

public Mutation(int dup,
                int loss)
Creating a mutation given duplications and loss.

Parameters:
dup - is the number of duplication
loss - is the number of loss
Method Detail

getDuplication

public int getDuplication()
Returns number of duplications.

Returns:
number of duplications

getLoss

public int getLoss()
Returns number of loss.

Returns:
the number of loss

isSame

public boolean isSame(Mutation mut)
Returns true if the given mutation is the same as this.

Parameters:
mut - is a mutation
Returns:
true if the given mutation is the same as this.

isWorse

public boolean isWorse(Mutation mutate)
Returns true if this is worse then the given mutation.

Parameters:
mutate - is the given mutation
Returns:
true if this is worse then the given mutation

addDuplication

public void addDuplication(int dup)
Adds duplications to this mutation.

Parameters:
dup - is the number of duplications that will be added.

addLoss

public void addLoss(int loss)
Adds loss to this mutation.

Parameters:
loss - is the number of loss that is added.

toString

public java.lang.String toString()
Returns a string that contains the mutation.

Returns:
a string that contains the mutation