Trees | Indices | Help |
---|
|
Martel based parser to read LocusLink flat files. This is a huge regular expression for LocusLink, built using the 'regular expressions on steroids' capabilities of Martel. A description of the format can be found in the 'ligand.doc' file from the Ligand distribution, available from: http://www.ncbi.nih.gov/LocusLink
|
|||
|
|||
|
|
|||
INDENT = 12
|
|||
blank_spaces = Rep(Str1(" "))
|
|||
point = Str1(".")
|
|||
white_space = Rep(Any(" "))
|
|||
locus_keys =
|
|||
accnum_block_keys =
|
|||
phenotype = Str1('PHENOTYPE')
|
|||
db = Str1('DB')
|
|||
accnum_block_key = Str(* accnum_block_keys)
|
|||
valid_locus_key = Str(* locus_keys)
|
|||
accnum_block = Group('accnum_block', define_locus_line('ACCNUM
|
|||
phenotype_block = Group('phenotype_block', define_locus_line('
|
|||
db_block = Group('db_block', define_locus_line('DB_DESCR')+ de
|
|||
begin_record_line = Str1('>>')+ ToEol()
|
|||
locus_line = Group('locus_line', white_space+ AssertNot(accnum
|
|||
locus_record = begin_record_line+ Rep(Alt(locus_line, accnum_b
|
|||
__warningregistry__ =
|
|
locus_keys
|
accnum_block
|
phenotype_block
|
db_block
|
locus_line
|
locus_record
|
__warningregistry__
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Sep 15 09:26:24 2008 | http://epydoc.sourceforge.net |