public IActionResult Dinuc() { // Get seq from input in Form Textarea and put it to lower case. Sequence sequence = new Sequence(); sequence.Seq = Request.Form["inputSeq"].ToString(); sequence.Seq = sequence.Seq.ToLower(); //Seq test for a, c, g, t only. ViewBag.TestReturn = SeqTest.SeqNucTest(sequence.Seq); DinucleotideTable dinucleotideTable = new DinucleotideTable(); DinucCalculation dinucCalculation = new DinucCalculation(dinucleotideTable, sequence.Seq); var dinucFirstFrameList = dinucCalculation.SubseqListFirstFrame(); var dinucSecondFrameList = dinucCalculation.SubseqListSecondFrame(); // dinucCalculation.DinucCalc(dinucFirstFrameList, "1st"); dinucCalculation.DinucCalc(dinucSecondFrameList, "2nd"); // dinucCalculation.DinucFrqDiffCalc(); ViewBag.DiTable = dinucleotideTable; return(View()); }
public DinucCalc(string seq) { seqCalc = seq + seq.Substring(0, 9); dinucCount = 0; dinucCalculation = new DinucCalculation(); }