Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
yve-berlin committed Mar 14, 2014
1 parent 76c9587 commit 3319a76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/seth/ner/SETHNER.scala
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class SETHNER(val strictNomenclature: Boolean = false) extends RegexParsers with

//Top-level Rule
//FIXED: we do not want to extract mentions like r.0? and r.spl?
lazy val Var:P = SingleVar //| UnkEffectVar | NoRNAVar | SplicingVar //| MultiVar | MultiTranscriptVar
lazy val Var:P = SingleVar | noDNA //| UnkEffectVar | NoRNAVar | SplicingVar //| MultiVar | MultiTranscriptVar

//Locations
lazy val Loc:P = (UncertainLoc | RangeLoc | PtLoc) ^^ { LocString(_) }
Expand Down Expand Up @@ -230,7 +230,7 @@ class SETHNER(val strictNomenclature: Boolean = false) extends RegexParsers with
lazy val UnkEffectVar:P = Ref ~ ("(=)" | "?")
lazy val SplicingVar:P = Ref ~ ("spl?" | "(spl?)")
lazy val NoRNAVar:P = Ref ~ "0" ~ "?".?

lazy val noDNA:P = "c.0" ~ "?".? ^^ { SubstString(_) }


//Protein variant nomenclature
Expand Down
1 change: 1 addition & 0 deletions src/test/scala/seth/ner/SETHSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@ class SingleTest extends FunSuite {
assert(SETH.isValid("c.457_458ins?", SETH.mutation, debug) === true)
assert(SETH.isValid("c.184_185ins?", SETH.mutation, debug) === true)
assert(SETH.isValid("c.182_183ins?", SETH.mutation, debug) === true)
assert(SETH.isValid("c.0?", SETH.mutation, debug) === true)

// Questionable cases:
//missing amino acids
Expand Down

0 comments on commit 3319a76

Please sign in to comment.