public GBSeq GbSeq() { GBSeq gbSeq = new GBSeq(); using (StreamReader streamReader = File.OpenText(fileName)) { string line = string.Empty; while ((line = streamReader.ReadLine()) != null) { if (line.Contains("ORIGIN")) { while ((line = streamReader.ReadLine()) != "//") { string seqLine = Regex.Replace(line, "[^A-Za-z]", "").ToString(); gbSeq.Seq += seqLine; } } } } return(gbSeq); }
public GBSeparation(GBSeq gbSeq, List <GBcds> gbCds) { this.gbSeq = gbSeq; this.gbCds = gbCds; }