use of beast.evolution.datatype.Aminoacid in project beast2 by CompEvol.
the class Dayhoff method getEncodingOrder.
@Override
public int[] getEncodingOrder() {
Aminoacid dataType = new Aminoacid();
String codeMap = dataType.getCodeMap();
int[] codeMapNrs = new int[dataType.getStateCount()];
String encoding = "ARNDCQEGHILKMFPSTWYV";
for (int i = 0; i < dataType.getStateCount(); i++) {
codeMapNrs[i] = encoding.indexOf(codeMap.charAt(i));
}
return codeMapNrs;
}
use of beast.evolution.datatype.Aminoacid in project beast2 by CompEvol.
the class WAG method getEncodingOrder.
@Override
public int[] getEncodingOrder() {
Aminoacid dataType = new Aminoacid();
String codeMap = dataType.getCodeMap();
int[] codeMapNrs = new int[dataType.getStateCount()];
String encoding = "ARNDCQEGHILKMFPSTWYV";
for (int i = 0; i < dataType.getStateCount(); i++) {
codeMapNrs[i] = encoding.indexOf(codeMap.charAt(i));
}
return codeMapNrs;
}
use of beast.evolution.datatype.Aminoacid in project beast2 by CompEvol.
the class CPREV method getEncodingOrder.
@Override
public int[] getEncodingOrder() {
Aminoacid dataType = new Aminoacid();
String codeMap = dataType.getCodeMap();
int[] codeMapNrs = new int[dataType.getStateCount()];
String encoding = "ARNDCQEGHILKMFPSTWYV";
for (int i = 0; i < dataType.getStateCount(); i++) {
codeMapNrs[i] = encoding.indexOf(codeMap.charAt(i));
}
return codeMapNrs;
}
use of beast.evolution.datatype.Aminoacid in project beast2 by CompEvol.
the class JTT method getEncodingOrder.
@Override
public int[] getEncodingOrder() {
Aminoacid dataType = new Aminoacid();
String codeMap = dataType.getCodeMap();
int[] codeMapNrs = new int[dataType.getStateCount()];
String encoding = "ARNDCQEGHILKMFPSTWYV";
for (int i = 0; i < dataType.getStateCount(); i++) {
codeMapNrs[i] = encoding.indexOf(codeMap.charAt(i));
}
return codeMapNrs;
}
use of beast.evolution.datatype.Aminoacid in project beast2 by CompEvol.
the class MTREV method getEncodingOrder.
@Override
public int[] getEncodingOrder() {
Aminoacid dataType = new Aminoacid();
String codeMap = dataType.getCodeMap();
int[] codeMapNrs = new int[dataType.getStateCount()];
String encoding = "ARNDCQEGHILKMFPSTWYV";
for (int i = 0; i < dataType.getStateCount(); i++) {
codeMapNrs[i] = encoding.indexOf(codeMap.charAt(i));
}
return codeMapNrs;
}
Aggregations