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