private static void Main(string[] args) { StreamWriter writer = new StreamWriter("C:\\Users\\Ben\\Documents\\GitHub\\Bijoinfou\\Output.txt"); GeneDatabase g1 = new GeneDatabase("C:\\Users\\Ben\\Documents\\GitHub\\Bijoinfou\\ACLA.fasta"); GeneDatabase g2 = new GeneDatabase("C:\\Users\\Ben\\Documents\\GitHub\\Bijoinfou\\AGOS1.fasta"); for (int i = 0; i < g1.count() - 1; i++) { for (int j = i + 1; j < g1.count(); j++) { for (int k = 0; k < g2.count(); k++) { if (Algoritmus.algorithm(g1.getGene(i).getGeneString(), g1.getGene(j).getGeneString(), g2.getGene(k).getGeneString(), 200)) { writer.WriteLine(g2.getGene(k).getId() + " : " + g1.getGene(i).getId() + " , " + g1.getGene(j).getId()); } } } } // Application.EnableVisualStyles(); // Application.SetCompatibleTextRenderingDefault(false); // Application.Run(new MainForm()); //Algoritmus.algorithm(); writer.Close(); }
public void futtat() { int Deviation, Counter; Counter = 0; StreamWriter writer = new StreamWriter(s3 + "\\Output.txt"); GeneDatabase g1 = new GeneDatabase(s1); GeneDatabase g2 = new GeneDatabase(s2); Deviation = Convert.ToInt32(s4); for (int i = 0; i < g1.count() - 1; i++) { for (int j = i + 1; j < g1.count(); j++) { for (int k = 0; k < g2.count(); k++) { if (Algoritmus.algorithm(g1.getGene(i).getGeneString(), g1.getGene(j).getGeneString(), g2.getGene(k).getGeneString(), Deviation)) { writer.WriteLine(g2.getGene(k).getId() + " : " + g1.getGene(i).getId() + " , " + g1.getGene(j).getId()); Counter++; } } } } System.Windows.MessageBox.Show("Fusion gene searching finished! " + Counter + " gene(s) were found!"); writer.Close(); }