Sha256: a2f865a88e890e70469d18adb242d9b9d3116b64e61e7c063f81b5b1a273b66e

Contents?: true

Size: 1.66 KB

Versions: 5

Compression:

Stored size: 1.66 KB

Contents

require "quorum/engine"
require "quorum/helpers"
require "quorum/sequence"
require "resque"
require "resque/server"
require "resque-result"
require "net/ssh"
require "workers/quorum"

module Quorum

  ## Supported Algorithms ##
  BLAST_ALGORITHMS = ["blastn", "blastx", "blastp", "tblastn"]

  mattr_accessor :blast_remote, :blast_ssh_host, :blast_ssh_user,
    :blast_ssh_options, :blast_bin, :blast_log_dir, :blast_tmp_dir,
    :blast_db, :tblastn, :blastp, :blastn, :blastx, :blast_threads

  ## Deprecated ##
  mattr_accessor :blast_script

  class << self

    ## Blast ##

    # Execute remotely.
    def blast_remote
      @@blast_remote || false
    end

    # Net::SSH host.
    def blast_ssh_host
      @@blast_ssh_host || nil
    end

    # Net::SSH user.
    def blast_ssh_user
      @@blast_ssh_user || nil
    end

    # Net::SSH options.
    def blast_ssh_options
      @@blast_ssh_options || {}
    end

    # Blast bin path.
    def blast_bin
      @@blast_bin || nil
    end

    # Blast log dir path.
    def blast_log_dir
      @@blast_log_dir || nil
    end

    # Blast tmp dir path.
    def blast_tmp_dir
      @@blast_tmp_dir || nil
    end

    # Blast database path.
    def blast_db
      @@blast_db || nil
    end

    # tblastn directories.
    def tblastn
      @@tblastn || []
    end

    # blastp directories.
    def blastp
      @@blastp || []
    end

    # blastn directories.
    def blastn
      @@blastn || []
    end

    # blastx directories.
    def blastx
      @@blastx || []
    end

    # Number of Blast threads.
    def blast_threads
      @@blast_threads || 1
    end

    ## Blast Deprecated ##

    def blast_script
      nil
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
quorum-0.5.0 lib/quorum.rb
quorum-0.4.0 lib/quorum.rb
quorum-0.3.3 lib/quorum.rb
quorum-0.3.2 lib/quorum.rb
quorum-0.3.1 lib/quorum.rb