Skip to content

Commit

Permalink
imports and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abychkova committed Dec 17, 2024
1 parent 95b519e commit 2f66a1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/Bio/GB/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Data.Functor (($>))
import Data.Text (Text, intercalate, pack, splitOn, unpack)
import qualified Data.Text as T
import Text.Megaparsec (notFollowedBy, option, satisfy, sepBy1, takeWhile1P,
takeWhileP, try, (<?>), chunk)
takeWhileP, try, (<?>))
import Text.Megaparsec.Char (char, digitChar, eol, letterChar, string)
import Text.Megaparsec.Char.Lexer (decimal)

Expand Down Expand Up @@ -46,7 +46,6 @@ metaP = do

pure $ Meta locus' definitionM accessionM versionM keywordsM sourceM referencesL commentsL

-- LOCUS AB32-36 pIntA_BC 6260 bp DNA circular SYN 11-SEP-2024
locusP :: Parser Locus
locusP = string "LOCUS" *> space *> (Locus
<$> nameP <* space -- name
Expand Down
12 changes: 6 additions & 6 deletions test/GBParserSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import Text.Megaparsec (eof, errorBundlePretty, parse)

gbParserSpec :: Spec
gbParserSpec = describe "GenBank format parser." $ do
-- rangeTests
-- pAAVGFPSpecP "test/GB/pAAV-GFP-CellBioLab.gb"
-- pAAVCMVSpecP "test/GB/pAAV_CMV_RPE65_PolyA_linkers.gb"
-- dottedMetaSpecP "test/GB/pAAV-GFP-CellBioLab-dots.gb"
-- unknownFieldsSpecP "test/GB/pIntA-TRBV.gb"
-- baseCountWithSophisticatedRangesAndMultilineFeatures "test/GB/fromYanaWithLove.gb"
rangeTests
pAAVGFPSpecP "test/GB/pAAV-GFP-CellBioLab.gb"
pAAVCMVSpecP "test/GB/pAAV_CMV_RPE65_PolyA_linkers.gb"
dottedMetaSpecP "test/GB/pAAV-GFP-CellBioLab-dots.gb"
unknownFieldsSpecP "test/GB/pIntA-TRBV.gb"
baseCountWithSophisticatedRangesAndMultilineFeatures "test/GB/fromYanaWithLove.gb"
spacesInLocusName "test/GB/spaces_in_locus.gb"

rangeTests :: Spec
Expand Down

0 comments on commit 2f66a1b

Please sign in to comment.