Exemple #1
0
        public void Level2(string searchFor)
        {
            if (!IsSeqID(searchFor))
            {
                throw new ParseException(searchFor);
            }

            ReadFile fastaReader = new ReadFile(fasta);

            fastaReader.ReadSection(searchFor, 2);
        }
Exemple #2
0
        public void Level1(int start, int depth)
        {
            // ensures the line starts at the sequence id line and not the full sequence line
            // i.e. it starts at ">NR_1234..." instead of "GTACTGATCGA..."
            if (start % 2 == 0)
            {
                start--;
                PrintWarning($"starting line corrected from {start + 1} to {start}");
            }

            // double the depth to grab the full sequence (two lines)
            depth *= 2;

            ReadFile fastaReader = new ReadFile(fasta);

            fastaReader.ReadSection(start, depth);
        }