ensembl-hive  2.7.0
XrefParser::MIMParser Class Reference

Public Member Functions

public void run ()
 
public String extract_ti ()
 
public Array parse_ti ()
 

Detailed Description

Definition at line 3 of file MIMParser.pm.

Member Function Documentation

◆ extract_ti()

public String XrefParser::MIMParser::extract_ti ( )
  Arg [1]    : String $input_record A single OMIM record
  Example    :
my $ti_string = extract_ti( $omim_record );
  Description: Scan the provided record for the TI field and extract
               its contents, regardless of where in the record that
               field appears or the position of the record in the
               file.
  Return type: String
  Exceptions : none
  Caller     : MIMParser::run()
  Status     : Stable
 
Code:
click to view

◆ parse_ti()

public Array XrefParser::MIMParser::parse_ti ( )
  Arg [1]    : String $ti Contents of a single TI field
  Example    :
my ( $type_symbol, $omim_number, $description )
= parse_ti( $ti_string );
  Description: Extract the type symbol, the entry number and the
               description from the contents of an OMIM record's TI
               field. The description is *not* split into possible
               individual components, we do however remove line breaks
               from multiline entries.
  Return type: Array
  Exceptions : none
  Caller     : MIMParser::run()
  Status     : Stable
 
Code:
click to view

◆ run()

public void XrefParser::MIMParser::run ( )
  Arg [1]    : HashRef standard list of arguments from ParseSource
  Example    :
$omim_parser->run({ ... });
  Description: Extract Online Mendelian Inheritance in Man entries
               from a text file downloaded from the OMIM Web site,
               then insert corresponding xrefs into the xref
               database. Note that all the xrefs produced by this
               parser are unmapped and tagged as such; links of
               appropriate type will be inserted by Mim2GeneParser.
               OMIM entries can either represent a unique locus,
               describe a disorder, or both. In Ensembl these are
               assigned, respectively, to: the source MIM_GENE,
               the source MIM_MORBID, or independently into both.
               OMIM records are multiline. Each record begins with a
               specific tag line and consists of a number of
               fields. Each field starts with its own start-tag line
               (i.e. the data proper only appears after a newline) and
               continues until the beginning of either the next field
               in the same record, the next record, or the
               end-of-input tag. The overall structure looks as
               follows:
                  RECORD*
                  FIELD* NO
                  FIELD* TI
                  FIELD* TX
                 ...
                  RECORD*
                  FIELD* NO
                  FIELD* TI
                 ...
                  RECORD*
                  FIELD* NO
                 ...
                  FIELD* CD
                  FIELD* ED
                  THEEND*
               All the data relevant to the parser can be found in the
               TI field.
  Return type: none
  Exceptions : throws on all processing errors
  Caller     : ParseSource in the xref pipeline
  Status     : Stable
 
Code:
click to view

The documentation for this class was generated from the following file:
XrefParser::MIMParser::run
public void run()
XrefParser::MIMParser::parse_ti
public Array parse_ti()
accession
public accession()
XrefParser::MIMParser::extract_ti
public String extract_ti()