public function NewickImporter::run

3.x NewickImporter.inc public NewickImporter::run()

Overrides TripalImporter::run

See also

TripalImporter::run()

File

tripal_chado/includes/TripalImporter/NewickImporter.inc, line 215

Class

NewickImporter

Code

public function run() {

  $arguments = $this->arguments['run_args'];

  $options = array(
    'name' => $this->arguments["tree_name"],
    'description' => $this->arguments["description"],
    'analysis_id' => $this->arguments["analysis_id"],
    'leaf_type' => $this->arguments["leaf_type"],
    'tree_file' => $this->arguments['files'][0]['file_path'],
    'format' => 'newick',
    'dbxref' => $this->arguments["dbxref"],
    'match' => $this->arguments["match"],
    'name_re' => $this->arguments["name_re"],
  );
  $errors = array();
  $warnings = array();
  chado_insert_phylotree($options, $errors, $warnings);
}