bio-pipengine 0.9.1 → 0.9.2
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/lib/bio/pipengine.rb +12 -0
- 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: eb14c6fee1f60a6e21db6cad2b1d72ebed17e526
|
4
|
+
data.tar.gz: 4468852a5675dc250bcc9bec9cd255246721d50a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 988fe20d0bddb1354b1f240c9d321b8029fa3303ee70d6c8b0de92a42595b4f4761956fa36b1c62edc82647437949f072583ce61a300d4251a8a941829433da4
|
7
|
+
data.tar.gz: b937716016a25772fd8db8373d3383d4e19899847c74a1b7d67aa97c7084388a31e55de63554d41794e33b2619782ced9de8e414af45bca3d224bba531ae239a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.2
|
data/lib/bio/pipengine.rb
CHANGED
@@ -11,6 +11,18 @@ module Bio
|
|
11
11
|
# reading the yaml files
|
12
12
|
pipeline = YAML.load ERB.new(File.read(options[:pipeline])).result(binding)
|
13
13
|
samples_file = load_samples_file options[:samples_file]
|
14
|
+
|
15
|
+
# make sure all sample names are always Strings
|
16
|
+
converted_samples_list = {}
|
17
|
+
samples_file["samples"].each_key do |sample|
|
18
|
+
if samples_file["samples"][sample].kind_of? Hash # it's a group of samples
|
19
|
+
converted_samples_list[sample.to_s] = Hash[samples_file["samples"][sample].map{ |k, v| [k.to_s, v] }]
|
20
|
+
else
|
21
|
+
converted_samples_list[sample.to_s] = samples_file["samples"][sample]
|
22
|
+
end
|
23
|
+
end
|
24
|
+
samples_file["samples"] = converted_samples_list # replacing original samples hash with the converted one
|
25
|
+
|
14
26
|
# pre-running checks
|
15
27
|
check_steps(options[:steps],pipeline)
|
16
28
|
check_samples(options[:samples],samples_file) if options[:samples]
|