iroki 0.0.33 → 0.0.34
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/lib/iroki/main/main.rb +20 -22
- data/lib/iroki/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ccdbbf04cbd02148f66cc862d584cb00e54c3793
|
|
4
|
+
data.tar.gz: 30d00c03802e3925167e41c5022519b1d1e7ba49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa18e7831cc7bb1eebb4a0d282ed5a67f040afbb59bb886820df35090c03ecd243226bd7def3679ffd6acdab76089f2a9ca56e1c0a0fd868336b0c7174a15567
|
|
7
|
+
data.tar.gz: 0f44b3a502cfeb5c59703dedf384813128992bdf1589f7afe59568fbcb1193472a3285f5641ab6f9bcb0807801138c7913872f87922f75d9364719e82db85b9f
|
data/lib/iroki/main/main.rb
CHANGED
|
@@ -252,6 +252,10 @@ module Iroki
|
|
|
252
252
|
name_map_f.nil?,
|
|
253
253
|
"Newick file was given but no other files were given")
|
|
254
254
|
|
|
255
|
+
abort_if biom_f && !exact,
|
|
256
|
+
"Regex matching cannot be used with a biom file. " +
|
|
257
|
+
"Pass the --exact flag"
|
|
258
|
+
|
|
255
259
|
# treeio = Bio::FlatFile.open(Bio::Newick, newick)
|
|
256
260
|
|
|
257
261
|
# newick = treeio.next_entry
|
|
@@ -285,11 +289,11 @@ module Iroki
|
|
|
285
289
|
#################################################################
|
|
286
290
|
# get color patterns
|
|
287
291
|
####################
|
|
288
|
-
if
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
if biom_f
|
|
293
|
+
abort_if single_color,
|
|
294
|
+
"--single-color is not compatible with a two " +
|
|
295
|
+
"group biom file. Please remove that option."
|
|
296
|
+
|
|
293
297
|
samples, counts, is_single_group = Biom.open(biom_f, "rt").parse
|
|
294
298
|
|
|
295
299
|
if is_single_group
|
|
@@ -299,6 +303,9 @@ module Iroki
|
|
|
299
303
|
min_lumin,
|
|
300
304
|
max_lumin).patterns
|
|
301
305
|
else
|
|
306
|
+
# abort_if single_color,
|
|
307
|
+
# "--single-color is incompatible with a two group biom file, please remove it."
|
|
308
|
+
|
|
302
309
|
g1_counts = counts.map(&:first)
|
|
303
310
|
g2_counts = counts.map(&:last)
|
|
304
311
|
biom_patterns = TwoGroupGradient.new(samples,
|
|
@@ -307,6 +314,13 @@ module Iroki
|
|
|
307
314
|
min_lumin,
|
|
308
315
|
max_lumin).patterns
|
|
309
316
|
end
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
if color_map_f && biom_f
|
|
320
|
+
color_map_patterns = parse_color_map_iroki color_map_f,
|
|
321
|
+
iroki_to_name,
|
|
322
|
+
exact_matching: exact,
|
|
323
|
+
auto_color: auto_color_hash
|
|
310
324
|
|
|
311
325
|
# these patterns have the original name for the key, so change
|
|
312
326
|
# the key to the iroki name
|
|
@@ -337,23 +351,7 @@ module Iroki
|
|
|
337
351
|
exact_matching: exact,
|
|
338
352
|
auto_color: auto_color_hash
|
|
339
353
|
elsif biom_f
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
if is_single_group
|
|
343
|
-
patterns = SingleGroupGradient.new(samples,
|
|
344
|
-
counts,
|
|
345
|
-
single_color,
|
|
346
|
-
min_lumin,
|
|
347
|
-
max_lumin).patterns
|
|
348
|
-
else
|
|
349
|
-
g1_counts = counts.map(&:first)
|
|
350
|
-
g2_counts = counts.map(&:last)
|
|
351
|
-
patterns = TwoGroupGradient.new(samples,
|
|
352
|
-
g1_counts,
|
|
353
|
-
g2_counts,
|
|
354
|
-
min_lumin,
|
|
355
|
-
max_lumin).patterns
|
|
356
|
-
end
|
|
354
|
+
patterns = biom_patterns
|
|
357
355
|
|
|
358
356
|
# these patterns have the original name for the key, so change
|
|
359
357
|
# the key to the iroki name
|
data/lib/iroki/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: iroki
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.34
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Moore
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-05-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|