ensembl-hive  2.8.1
XrefParser::MGI_Desc_Parser Class Reference

Public Member Functions

public run ()
 
public Boolean is_file_header_valid ()
 

Detailed Description

Description

A parser class to parse the MGI (descriptions) source. Creates 'MISC' xref using MGI accession with description and
also creates the synonyms extracted from the pipe seperated synonym_field

-species = mus_musculus
-species_id = 10090
-data_uri = http://www.informatics.jax.org/downloads/reports/MRK_List2.rpt
-file_format = TSV
-columns = [accession chromosome position start end strand label status marker marker_type feature_type synonym_field]

Synopsis

my $parser = XrefParser::MGI_Desc_Parser->new($db->dbh);
$parser->run({
source_id => 58,
species_id => 10090,
files => ["MRK_List2.rpt"],
});

Definition at line 27 of file MGI_Desc_Parser.pm.

Member Function Documentation

◆ is_file_header_valid()

public Boolean XrefParser::MGI_Desc_Parser::is_file_header_valid ( )
  Arg [1..N] : list of column names provided by Text::CSV::header()
  Example    :
if ( ! is_file_header_valid( $csv->header( $fh ) ) {
confess 'Bad header';
}
  Description: Verifies if the header of a MGI_Desc file follows
               expected syntax.
  Return type: boolean
  Exceptions : none
  Caller     : internal
  Status     : Stable
 
Code:
click to view

◆ run()

public XrefParser::MGI_Desc_Parser::run ( )

Undocumented method

Code:
click to view

The documentation for this class was generated from the following file:
XrefParser::MGI_Desc_Parser::is_file_header_valid
public Boolean is_file_header_valid()
XrefParser::MGI_Desc_Parser::run
public run()
XrefParser::MGI_Desc_Parser
Definition: MGI_Desc_Parser.pm:27