Search in sources :

Example 1 with Aminoacid

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;
}
Also used : Aminoacid(beast.evolution.datatype.Aminoacid)

Example 2 with Aminoacid

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;
}
Also used : Aminoacid(beast.evolution.datatype.Aminoacid)

Example 3 with Aminoacid

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;
}
Also used : Aminoacid(beast.evolution.datatype.Aminoacid)

Example 4 with Aminoacid

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;
}
Also used : Aminoacid(beast.evolution.datatype.Aminoacid)

Example 5 with Aminoacid

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;
}
Also used : Aminoacid(beast.evolution.datatype.Aminoacid)

Aggregations

Aminoacid (beast.evolution.datatype.Aminoacid)7 Binary (beast.evolution.datatype.Binary)1 Base (beast.evolution.datatype.DataType.Base)1 IntegerData (beast.evolution.datatype.IntegerData)1 Nucleotide (beast.evolution.datatype.Nucleotide)1 TwoStateCovarion (beast.evolution.datatype.TwoStateCovarion)1