コード例 #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);
            }
        }
コード例 #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);
                }
            }
        }
コード例 #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);
            }
        }