Skip to content

Commit

Permalink
Delete test method
Browse files Browse the repository at this point in the history
  • Loading branch information
omaus committed Jul 24, 2023
1 parent 989a736 commit 3536b6f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/FsOboParser/DBXref.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ type DBXref = {
Modifiers : string
}

with
static member lol() = 1

module DBXref =

//Dbxref definitions take the following form:
Expand All @@ -35,15 +32,14 @@ module DBXref =
//def: "A ribonucleoprotein complex that contains an RNA molecule of the snoRNA family, and cleaves the rRNA precursor as part of rRNA transcript processing. It also has other roles: In S. cerevisiae it is involved in cell cycle-regulated degradation of daughter cell-specific mRNAs, while in mammalian cells it also enters the mitochondria and processes RNAs to create RNA primers for DNA replication." [GOC:sgd_curators, PMID:10690410, Add to Citavi project by Pubmed ID PMID:14729943, Add to Citavi project by Pubmed ID PMID:7510714] Add to Citavi project by Pubmed ID

//Note that the trailing modifiers (like all trailing modifiers) do not need to be decoded or round-tripped by parsers; trailing modifiers can always be optionally ignored. However, all parsers must be able to gracefully ignore trailing modifiers. It is important to recognize that lines which accept a dbxref list may have a trailing modifier for each dbxref in the list, and another trailing modifier for the line itself.


let trimComment (line : string) =
line.Split('!').[0].Trim()

let private xrefRegex =
Text.RegularExpressions.Regex("""(?<xrefName>^([^"{])*)(\s?)(?<xrefDescription>\"(.*?)\")?(\s?)(?<xrefModifiers>\{(.*?)}$)?""")

let parseDBXref (v:string) =
let parseDBXref (v : string) =
let matches = xrefRegex.Match(v.Trim()).Groups
{
Name = matches.Item("xrefName").Value
Expand Down

0 comments on commit 3536b6f

Please sign in to comment.