Sha256: c9dbc0fab41e14b6a32adb2e0c72bedacdff130c418b4d3f01bdcf71526f6764

Contents?: true

Size: 894 Bytes

Versions: 99

Compression:

Stored size: 894 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), '../..', 'test_helper.rb')
require 'rbbt/hpc/slurm'
require 'rbbt/workflow'

Workflow.require_workflow "Sample"
Workflow.require_workflow "HTS"
class TestSLURM < Test::Unit::TestCase

  def _test_template
    job = Sample.job(:mutect2, "small", :reference => "hg38")

    TmpFile.with_file do |batch_dir|

      template = HPC::SLURM.job_template(job, :batch_dir => batch_dir, :batch_modules => 'java')
      ppp template

    end
  end

  def test_run_job
    job = Sample.job(:mutect2, "small", :reference => "hg38")

    job.clean

    jobid = HPC::SLURM.run_job(job, :workflows => "HTS", :batch_modules => 'java', :env_cmd => '_JAVA_OPTIONS="-Xms1g -Xmx${MAX_MEMORY}m"', :queue => :debug, :time => '01:00:00', :config_keys => "HTS_light", :task_cpus => '10', :tail => true, :clean_task => "HTS#mutect2")
    iii jobid
  end

end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
rbbt-util-5.37.8 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.37.6 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.37.4 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.37.3 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.37.1 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.37.0 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.36.0 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.35.4 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.35.3 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.35.2 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.35.1 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.34.27 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.34.26 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.34.25 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.34.24 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.34.23 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.34.22 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.34.21 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.34.20 test/rbbt/hpc/test_slurm.rb
rbbt-util-5.34.18 test/rbbt/hpc/test_slurm.rb