*/
package jalview.datamodel;
+import jalview.util.MapList;
+
import java.util.Enumeration;
import java.util.Vector;
-import jalview.util.MapList;
-
/**
* Stores mapping between the columns of a protein alignment and a DNA alignment
* and a list of individual codon to amino acid mappings between sequences.
}
codons = new int[aWidth][];
for (int res = 0; res < aWidth; res++)
+ {
codons[res] = null;
+ }
}
/**
public SequenceI[] getAaSeqs()
{
if (dnaToProt == null)
+ {
return null;
+ }
SequenceI[] sqs = new SequenceI[dnaToProt.length];
for (int sz = 0; sz < dnaToProt.length; sz++)
{
public MapList[] getdnaToProt()
{
if (dnaToProt == null)
+ {
return null;
+ }
MapList[] sqs = new MapList[dnaToProt.length];
for (int sz = 0; sz < dnaToProt.length; sz++)
{
for (int ds = 0; ds < dnaSeqs.length; ds++)
{
if (dnaSeqs[ds] == dnaSeqRef || dnaSeqs[ds] == dnads)
+ {
return dnaToProt[ds].to;
+ }
}
return null;
}
for (int as = 0; as < dnaToProt.length; as++)
{
if (dnaToProt[as].to == aaSeqRef || dnaToProt[as].to == aads)
+ {
return dnaSeqs[as];
+ }
}
return null;
}