Ejemplo n.º 1
0
        public Search(string programName, FlagLevel searchLevel, string dataFileName)
        {
            this.programName  = programName;
            this.searchLevel  = searchLevel;
            this.dataFileName = dataFileName;

            try
            {
                reader = new FastaReader(dataFileName);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Ejemplo n.º 2
0
        public void Search()
        {
            FastaReader   reader = new FastaReader("16S.fasta");
            List <string> idList = reader.GetIdListBySequence("ATTCTGGTTGATCCTGCCAG");

            if (idList.Count() == 0)
            {
                Console.WriteLine("IDs not found!");
            }
            else
            {
                foreach (string id in idList)
                {
                    Console.WriteLine(id);
                }
            }
        }
Ejemplo n.º 3
0
        public void Search()
        {
            FastaReader   reader = new FastaReader("16S.fasta");
            List <string> idList = reader.GetIdListByName("Streptomyces");

            if (idList.Count() == 0)
            {
                Console.WriteLine("IDs not found!");
            }
            else
            {
                foreach (string id in idList)
                {
                    Console.WriteLine(id);
                }
                Console.WriteLine("Found : {0} rows", idList.Count);
            }
        }