sushi_fabric 1.2.6 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sushi_fabric/sushiApp.rb +6 -7
- data/lib/sushi_fabric/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 625777da16fc54a819726f5b5f82dcf309865c05c11f902a0065dd1d385d7307
|
4
|
+
data.tar.gz: 628bec7e0c32fa99832d35bd2016eaee2bcec4984f71089b23d4b9ebbe7b0c37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 928ddc2796c22bd809bbadc1b91c2a9aa4b15754b60a64a66d26c387b916386d5df39de3e5f8e42424e101256fe7ce55872521644ba96258b9381ea75cb3e59d
|
7
|
+
data.tar.gz: 2d669efcfc9afce6ffad2f07b18496744d0a4b7b52588c519fe791fb8ee2eb23a4c5c8e48855c037359fd6081ffae54c58e483835ddc0a384ffd1b0c9ce2383a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '
|
3
|
+
# Version = '20240823-112404'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -85,11 +85,6 @@ end
|
|
85
85
|
NO_ROR = true
|
86
86
|
end
|
87
87
|
|
88
|
-
class ::Array
|
89
|
-
def to_h
|
90
|
-
Hash[*flatten]
|
91
|
-
end
|
92
|
-
end
|
93
88
|
class ::Hash
|
94
89
|
attr_reader :defaults
|
95
90
|
alias :set :[]=
|
@@ -711,7 +706,11 @@ rm -rf #{@scratch_dir} || exit 1
|
|
711
706
|
@out.close
|
712
707
|
end
|
713
708
|
def sample_mode
|
714
|
-
selected_samples =
|
709
|
+
selected_samples = unless @params['samples'].empty?
|
710
|
+
Hash[*@params['samples'].split(',').map{|sample_name| [sample_name, true]}.flatten]
|
711
|
+
else
|
712
|
+
Hash[*@dataset_hash.map{|row| row['Name']}.map{|sample_name| [sample_name, true]}.flatten]
|
713
|
+
end
|
715
714
|
@dataset_hash.each_with_index do |row, i|
|
716
715
|
@dataset = Hash[*row.map{|key,value| [key.gsub(/\[.+\]/,'').strip, value]}.flatten]
|
717
716
|
if selected_samples[@dataset['Name']]
|
data/lib/sushi_fabric/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sushi_fabric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Functional Genomics Center Zurich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|