Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public GBSeparation(GBSeq gbSeq, List <GBcds> gbCds)
 {
     this.gbSeq = gbSeq;
     this.gbCds = gbCds;
 }