示例#1
0
        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();
        }
示例#2
0
        public void futtat()
        {
            int Deviation, Counter;

            Counter = 0;
            StreamWriter writer = new StreamWriter("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++)
                    {
                        System.Console.Clear();
                        System.Console.WriteLine("Fusion Genes found: " + Counter);
                        System.Console.WriteLine(i + "\\" + g1.count());
                        System.Console.WriteLine(j + "\\" + g1.count());
                        System.Console.WriteLine(k + "\\" + g2.count());


                        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.Console.WriteLine("Fusion gene searching finished! " + Counter + " gene(s) were found!");
            writer.Close();
        }
示例#3
0
        static void Main(string[] args)
        {
            GeneDatabase geneDatabase = new GeneDatabase(@"..\..\..\..\Acralc1.fasta");

            for (int i = 0; i < geneDatabase.count(); i++)
            {
                Console.WriteLine(geneDatabase.getGene(i).getId());
                Console.WriteLine(geneDatabase.getGene(i).getGeneString());
            }
        }