Class: Quorum::SearchTools::Blast

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/templates/blast.rb

Overview

Blast Search Tool

Defined Under Namespace

Classes: QuorumBlastnJob, QuorumBlastnJobReport, QuorumBlastpJob, QuorumBlastpJobReport, QuorumBlastxJob, QuorumBlastxJobReport, QuorumJob, QuorumTblastnJob, QuorumTblastnJobReport

Instance Method Summary collapse

Instance Method Details

#execute_blastObject

Execute Blast on a given dataset.



444
445
446
447
448
449
450
451
452
453
454
455
456
# File 'lib/generators/templates/blast.rb', line 444

def execute_blast
  generate_blast_cmd
  @logger.log("NCBI Blast", @cmd)
  system(@cmd)

  # Wrap these methods in a transaction to prevent premature return.
  @job.method(@job_report_association).call.transaction do
    parse_and_save_results
    add_hps_groups_to_reports
  end

  remove_tmp_files
end