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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/bio/pipengine.rb +12 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d2869af147bec6a8aaf5072ecda70f70db62aa3
4
- data.tar.gz: 09f5a3b2d09db2abd793486f5c3ddd48156cae19
3
+ metadata.gz: eb14c6fee1f60a6e21db6cad2b1d72ebed17e526
4
+ data.tar.gz: 4468852a5675dc250bcc9bec9cd255246721d50a
5
5
  SHA512:
6
- metadata.gz: 1e431f8421d5946a8a7c0b0ea049c7f95b2f83fc2c1bfbd57cfb45d06c714453917ba84f8746dc8541158c46834c6c6de565236fb9e4f69df1630eea60582af7
7
- data.tar.gz: 2335be0113846f1c9f9ab4f66edba92c8a49e32cb3bc7e10f8e749293ab7245aaf10ba9aea1e334d887bb7d49a96e07f71743184273f50bcabab573fa2eda019
6
+ metadata.gz: 988fe20d0bddb1354b1f240c9d321b8029fa3303ee70d6c8b0de92a42595b4f4761956fa36b1c62edc82647437949f072583ce61a300d4251a8a941829433da4
7
+ data.tar.gz: b937716016a25772fd8db8373d3383d4e19899847c74a1b7d67aa97c7084388a31e55de63554d41794e33b2619782ced9de8e414af45bca3d224bba531ae239a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-pipengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Strozzi