ensembl-hive  2.8.1
XrefParser::Mim2GeneParser Class Reference

Public Member Functions

public void run ()
 
public Boolean is_file_header_valid ()
 
public void process_xref_entry ()
 

Detailed Description

Definition at line 5 of file Mim2GeneParser.pm.

Member Function Documentation

◆ is_file_header_valid()

public Boolean XrefParser::Mim2GeneParser::is_file_header_valid ( )
  Arg [1..N] : list of column names provided by Text::CSV::getline()
  Example    :
if ( ! is_file_header_valid( $csv->getline( $fh ) ) {
confess 'Bad header';
}
  Description: Verifies if the header of a Mim2Gene file follows expected
               syntax.
               We do not check the number of columns because that is what
               we use to *detect* the header in the first place.
  Return type: boolean
  Exceptions : none
  Caller     : internal
  Status     : Stable
 
Code:
click to view

◆ process_xref_entry()

public void XrefParser::Mim2GeneParser::process_xref_entry ( )
  Arg [1]    : HashRef list of named arguments: FIXME
  Example    :
$self->process_xref_entry({...});
  Description: Wrapper around the most frequently repeated bit of
               run(): loop over the list of matching
               EntrezGene xrefs and insert dependent MIM xrefs.
  Return type: none
  Exceptions : none
  Caller     : internal
  Status     : Stable
 
Code:
click to view

◆ run()

public void XrefParser::Mim2GeneParser::run ( )
  Arg [1]    : HashRef standard list of arguments from ParseSource
  Example    :
$m2g_parser->run({ ... });
  Description: Extract mappings between OMIM genes and other gene
               identifiers from a tab-delimited file downloaded from
               the DBASS Web site, then insert corresponding links
               into the xref database:
  • for entries mapped to Ensembl genes, we create gene_direct_xref links;
  • otherwise, if an entry is mapped to an EntrezGene ID that exists in the xref database we creare a dependent_xref link. In either case we update info_type of OMIM xrefs accordingly.
               DEPENDENCIES: This parser must be run after:
  • MIMParser - without existing OMIM entries this parser does nothing;
  • EntrezGeneParser - otherwise there will be no dependent-xref links.
               mim2gene_medgen file begins with a header line with
               6 tab separated columns:
               #MIM number  GeneID  type    Source  MedGenCUI   Comment
               MIM number and GeneID are considered for the xrefs.
  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:
map
public map()
XrefParser::Mim2GeneParser::process_xref_entry
public void process_xref_entry()
XrefParser::Mim2GeneParser::run
public void run()
XrefParser::Mim2GeneParser::is_file_header_valid
public Boolean is_file_header_valid()