bio-pipengine 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/pipengine +0 -8
- data/lib/bio/pipengine.rb +0 -47
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af8b7ab427969d23d8159ed48e839010d315dd48
|
4
|
+
data.tar.gz: 9e76389b3af2b879ed94961edbf412f533ae3ec4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea2625d5c2202ae5d429fca335855df4bac6f72a75aa9cb58d6f0362ae265723393fb7db240307336812dc0522685ddd04b0968bb215f5891c230e6d5aa7f7d
|
7
|
+
data.tar.gz: 3909e58ad508dda156bda8bb021950db31c06b9228a9fb70b5ac9f44ed365ee5557c891355f17bd674734f1a9ed0ebcf802b23d0ea1a44b367a7e2f8fe3df272
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.5
|
data/bin/pipengine
CHANGED
@@ -36,14 +36,6 @@ when "run"
|
|
36
36
|
opt :log_adapter, "(stdin|syslog|fluentd) In case of fluentd use http://destination.hostname:port/yourtag", :type => :string
|
37
37
|
opt :tag, "Overwrite tags present in samples.yml and pipeline.yml files (e.g. tag1=value1 tag2=value2)", :type => :strings
|
38
38
|
end
|
39
|
-
#when "jobs"
|
40
|
-
# ARGV.shift
|
41
|
-
# options[:jobs] = true
|
42
|
-
# Trollop::options do
|
43
|
-
# opt :job_id, "Search submitted jobs by Job ID", :type => :strings, :short => "i"
|
44
|
-
# opt :job_name, "Search submitted jobs by Job Name", :type => :strings, :short => "n"
|
45
|
-
# opt :delete, "Delete submitted jobs ('all' to erase everything or type one or more job IDs)", :short => "d", :type => :strings
|
46
|
-
# end
|
47
39
|
when "-h"
|
48
40
|
puts banner_text
|
49
41
|
puts "List of available commands:\n\trun\tSubmit pipelines to the job scheduler\n"
|
data/lib/bio/pipengine.rb
CHANGED
@@ -203,53 +203,6 @@ module Bio
|
|
203
203
|
end
|
204
204
|
end
|
205
205
|
|
206
|
-
# # show running jobs information
|
207
|
-
# def self.show_stats(job_ids)
|
208
|
-
# stats = TORQUE::Qstat.new
|
209
|
-
# if job_ids.first == "all"
|
210
|
-
# stats.display
|
211
|
-
# else
|
212
|
-
# stats.display(:job_ids => job_ids)
|
213
|
-
# end
|
214
|
-
# end
|
215
|
-
#
|
216
|
-
# # delete running jobs from the scheduler
|
217
|
-
# def self.delete_jobs(job_ids)
|
218
|
-
# include TORQUE
|
219
|
-
# if job_ids == ["all"]
|
220
|
-
# Qdel.rm_all
|
221
|
-
# else
|
222
|
-
# job_ids.each {|job_id| Qdel.rm job_id}
|
223
|
-
# end
|
224
|
-
# end #delete_jobs
|
225
|
-
|
226
|
-
# check if required configuration exists
|
227
|
-
# def self.check_config
|
228
|
-
# unless File.exists?("#{Dir.home}/.torque_rm.yaml")
|
229
|
-
# ARGV.clear
|
230
|
-
# current_user = Etc.getlogin
|
231
|
-
# puts "\nIt seems you are running PipEngine for the first time. Please fill in the following information:"
|
232
|
-
# print "\nHostname or IP address of authorized server from where jobs will be submitted: ".light_blue
|
233
|
-
# server = gets.chomp
|
234
|
-
# print "\n"
|
235
|
-
# print "Specify the username you will be using to connect and submit jobs [#{current_user}]: ".light_blue
|
236
|
-
# username = gets.chomp
|
237
|
-
# username = (username == "") ? current_user : username
|
238
|
-
# puts "Attempting connection to the server...".green
|
239
|
-
# path = `ssh #{username}@#{server} -t "which qsub"`.split("/qsub").first
|
240
|
-
# unless path=~/\/\S+\/\S+/
|
241
|
-
# warn "Connection problems detected! Please check that you are able to connect to '#{server}' as '#{username}' via ssh.".red
|
242
|
-
# else
|
243
|
-
# file = File.open("#{Dir.home}/.torque_rm.yaml","w")
|
244
|
-
# file.write({:hostname => server, :path => path, :user => username}.to_yaml)
|
245
|
-
# file.close
|
246
|
-
# puts "First time configuration completed!".green
|
247
|
-
# puts "It is strongly recommended to setup a password-less SSH connection to use PipEngine.".green
|
248
|
-
# exit
|
249
|
-
# end
|
250
|
-
# end
|
251
|
-
# end #check_config
|
252
|
-
|
253
206
|
def self.add_job(job, pipeline, step_name, sample)
|
254
207
|
step = Bio::Pipengine::Step.new(step_name,pipeline["steps"][step_name]) # parsing step instructions
|
255
208
|
self.add_job(job, pipeline, step.pre, sample) if step.has_prerequisite?
|