sushi_fabric 1.2.5 → 1.2.7
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 +11 -3
- 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: ca91b4760a0702f1033ca5d5a86027457f54efe902db6d2f5f487d18f8c426a4
|
4
|
+
data.tar.gz: c7fc11751f3c03bffb2ca5568fe218e7518f2dde19d4d836f53dd949af8e55a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6030fa3cc94828ecc93e67111a20cde20709c61231a6f59765c1046b752048e92dc9a2e64c5f40f93e4c62be1dc67dce293493dddd06484decc6a7a5a8420ea0
|
7
|
+
data.tar.gz: 3798ab29d3ae60b3a7d473edffbff6d1aa4dcf523523659bf7e1f1a016c1738336232e5a502787f95363b694fbc2b5f06e748a3596e884af8e41e7956ea6651b
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '
|
3
|
+
# Version = '20240806-113507'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -711,7 +711,11 @@ rm -rf #{@scratch_dir} || exit 1
|
|
711
711
|
@out.close
|
712
712
|
end
|
713
713
|
def sample_mode
|
714
|
-
selected_samples =
|
714
|
+
selected_samples = unless @params['samples'].empty?
|
715
|
+
Hash[*@params['samples'].split(',').map{|sample_name| [sample_name, true]}.flatten]
|
716
|
+
else
|
717
|
+
Hash[*@dataset_hash.map{|row| row['Name']}.map{|sample_name| [sample_name, true]}.flatten]
|
718
|
+
end
|
715
719
|
@dataset_hash.each_with_index do |row, i|
|
716
720
|
@dataset = Hash[*row.map{|key,value| [key.gsub(/\[.+\]/,'').strip, value]}.flatten]
|
717
721
|
if selected_samples[@dataset['Name']]
|
@@ -729,7 +733,11 @@ rm -rf #{@scratch_dir} || exit 1
|
|
729
733
|
end
|
730
734
|
end
|
731
735
|
def dataset_mode
|
732
|
-
selected_samples =
|
736
|
+
selected_samples = unless @params['samples'].empty?
|
737
|
+
Hash[*@params['samples'].split(',').map{|sample_name| [sample_name, true]}.flatten]
|
738
|
+
else
|
739
|
+
Hash[*@dataset_hash.map{|row| row['Name']}.map{|sample_name| [sample_name, true]}.flatten]
|
740
|
+
end
|
733
741
|
# for a case of @dataset is used in def next_datast in SUSHIApp
|
734
742
|
@dataset = []
|
735
743
|
@dataset_hash.each do |row|
|
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.7
|
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-
|
11
|
+
date: 2024-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|