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); } }
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); } } }
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); } }