public GibbsMotifData(string motif, WeightMatrixForGibbs <char> weightMatrix, string[] Seqs, int N, int L, int W) { _N = N; _W = W; _L = L; _motif = motif; WeightMatrix = weightMatrix; this.Seqs = Seqs; }
public static WeightMatrixForGibbs <char> MakeWeightMatrixForStringSeq(string[] Seqs, int N, int W, int seq1idx, int[] setA) { WeightMatrixForGibbs <char> wmat = new WeightMatrixForGibbs <char>(W); for (int i = 0; i < N; i++) { if (i == seq1idx) { continue; } for (int j = 0; j < W; j++) { wmat[j].AddEntry(Seqs[i][setA[i] + j]); } } return(wmat); }