public class AlignmentOperations
extends java.lang.Object
| Constructor and Description |
|---|
AlignmentOperations(Utilities utilities)
Alignment operations constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
filterAlignmentSites(java.util.HashMap<java.lang.String,java.lang.String> codonstable,
boolean addGaps,
boolean dna)
Create a new shorter alignment, in which only selected sites
gathered from any significant codons file, are preserved.
|
void |
setFiles(java.lang.String sfilename,
java.lang.String sformat,
java.lang.String dfilename,
java.lang.String dformat)
Set files for alignment filtering.
|
public AlignmentOperations(Utilities utilities)
utilities - object of the class Utilities.public void setFiles(java.lang.String sfilename,
java.lang.String sformat,
java.lang.String dfilename,
java.lang.String dformat)
sfilename - source alignment file.sformat - source alignment file format.dfilename - destination alignment file.dformat - destination alignment file format.public int[] filterAlignmentSites(java.util.HashMap<java.lang.String,java.lang.String> codonstable,
boolean addGaps,
boolean dna)
codonstable - table from where to get the codons to use.addGaps - if true, add gaps between non-consecutive sites/columns; false, otherwise.dna - if true, the source alignment is dna; otherwise, is protein.setFiles(java.lang.String, java.lang.String, java.lang.String, java.lang.String),
createNonConsecutiveGaps(int[], int)