import java.util.*; public class mismatchseq { private String seq = ""; //the source sequence private int snploc = 0; private int bpwidth = 0; //the number of nucleotides to give mismatches private Stack stack = new Stack(); private Stack temp = new Stack(); public mismatchseq (String s, int p1, int p2) { seq = s; snploc = p1; bpwidth = p2; } //a method to return all mismatches for a particular nucleotide private String mismatch (char ch) { //assume that mismatches introduced only with A, T, C, G if (ch == 'A') return "GCT"; else if (ch == 'T') return "GCA"; else if (ch == 'G') return "TCA"; else if (ch == 'C') return "GAT"; return ""; } //a method to create the mismatch sequences public void mismatching () { //first save the unchanged sequence into stack temp.push(java.lang.Integer.toString(snploc)); //starting from the second before SNP for (int i=0; i