sushi_fabric 1.2.8 → 1.2.9
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 +15 -23
- 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: 601c5bc07a9e6c62dc71d101a2c459719e2eaef937c9b59c176bb8f3225b4f43
|
4
|
+
data.tar.gz: f4d98401899172185098c8f8d78f782acb032d5e1849ca7142d713e36ae250b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb1dc2673c8441ffd5a8d360337903d18126c2ddaefc1265b679b22c9ddd23bed8ba724cf192f4b3445191ea6c34b5ed67d31105dbba255d26a15b61044776f9
|
7
|
+
data.tar.gz: dcf130309a2d75527972c1c3a78d265f1a9b161654f2798940074cc0b6c193b261bcd950d40c709888746ea24d310008bda24a37166ae9ad2c90b8755b6f57a2
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '
|
3
|
+
# Version = '20241108-111516'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -178,21 +178,17 @@ def save_data_set(data_set_arr, headers, rows, user=nil)
|
|
178
178
|
end
|
179
179
|
sample = Sample.new
|
180
180
|
sample.key_value = sample_hash.to_s
|
181
|
-
sample.save
|
181
|
+
sample.save # skip exact-match search
|
182
182
|
data_set.samples << sample
|
183
183
|
end
|
184
184
|
|
185
185
|
data_set.md5 = data_set.md5hexdigest
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
user.save
|
193
|
-
end
|
194
|
-
else
|
195
|
-
headers[0] = DataSet.find_by_md5(data_set.md5)
|
186
|
+
project.data_sets << data_set
|
187
|
+
parent_data_set.data_sets << data_set if parent_data_set
|
188
|
+
data_set.save
|
189
|
+
if user
|
190
|
+
user.data_sets << data_set
|
191
|
+
user.save
|
196
192
|
end
|
197
193
|
data_set.id
|
198
194
|
end
|
@@ -794,7 +790,7 @@ rm -rf #{@scratch_dir} || exit 1
|
|
794
790
|
end
|
795
791
|
sample = Sample.new
|
796
792
|
sample.key_value = sample_hash.to_s
|
797
|
-
sample.save
|
793
|
+
sample.save # skip exact-match search
|
798
794
|
data_set.samples << sample
|
799
795
|
end
|
800
796
|
|
@@ -803,16 +799,12 @@ rm -rf #{@scratch_dir} || exit 1
|
|
803
799
|
end
|
804
800
|
|
805
801
|
data_set.md5 = data_set.md5hexdigest
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
user.save
|
813
|
-
end
|
814
|
-
else
|
815
|
-
headers[0] = DataSet.find_by_md5(data_set.md5)
|
802
|
+
project.data_sets << data_set
|
803
|
+
parent_data_set.data_sets << data_set if parent_data_set
|
804
|
+
data_set.save
|
805
|
+
if user
|
806
|
+
user.data_sets << data_set
|
807
|
+
user.save
|
816
808
|
end
|
817
809
|
data_set.id
|
818
810
|
end
|
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.9
|
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-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|