rbbt-util 5.17.45 → 5.17.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rbbt +1 -1
- data/lib/rbbt/util/log/progress/report.rb +1 -1
- data/share/rbbt_commands/tsv/sort +10 -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: 343bf453468db2fccabfac2f4bdc61766d5a13dc
|
4
|
+
data.tar.gz: 99da330d0c5b25fb5c641356b8bb6db857b2631a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 740316fe25f986440370d4f3fb0bb5178f442deee5b02d5e7ad1b0129e1174846371669c0f6bf39bfc18ce24582ae69319be36521f715d242140ff4f70cb5206
|
7
|
+
data.tar.gz: 854f65081846e9830d4d62318d4dd5884f8421bcfb35d432c22d90c49f31f04b4df3c8ca42933fed8023991ac478ee484054f92af200b05340c8cba536b949a3
|
data/bin/rbbt
CHANGED
@@ -32,7 +32,7 @@ Log.nocolor = true if ARGV.include? "--nocolor"
|
|
32
32
|
options = SOPT.setup <<EOF
|
33
33
|
Ruby bioinformatics toolkit
|
34
34
|
|
35
|
-
$ rbbt <command> <subcommand> ... -a --arg1 --arg2='value' --arg3 'another-value'
|
35
|
+
$ rbbt <command> <subcommand> ... -a --arg1 --arg2='value' --arg3 'another-value'
|
36
36
|
|
37
37
|
|
38
38
|
--log* #{Log.color :yellow, "Log level from 0 (debug) 6 (errors)"}
|
@@ -83,7 +83,7 @@ module Log
|
|
83
83
|
str = Log.color :magenta, desc
|
84
84
|
if @ticks == 0
|
85
85
|
if @max
|
86
|
-
return str << " " << Log.color(:yellow, "waiting on #{@max} #{bytes ? 'bytes' : 'items'}
|
86
|
+
return str << " " << Log.color(:yellow, "waiting on #{@max} #{bytes ? 'bytes' : 'items'}")
|
87
87
|
else
|
88
88
|
return str << " " << Log.color(:yellow, "waiting - #{Process.pid}")
|
89
89
|
end
|
@@ -13,6 +13,7 @@ $ rbbt tsv sort file.tsv
|
|
13
13
|
Display summary information. Works with Tokyocabinet HDB and BDB as well.
|
14
14
|
|
15
15
|
-hh--header_hash* Change the character used to mark the header line (defaults to #)
|
16
|
+
-f--field* Field to sort by (name or number)
|
16
17
|
-h--help Help
|
17
18
|
EOF
|
18
19
|
|
@@ -22,7 +23,15 @@ file = ARGV.shift
|
|
22
23
|
|
23
24
|
file = STDIN if file == '-' or file.nil?
|
24
25
|
|
25
|
-
|
26
|
+
|
27
|
+
field = options[:field]
|
28
|
+
if field =~ /^\d+$/
|
29
|
+
field_pos = field.to_i
|
30
|
+
else
|
31
|
+
field_pos = TSV.parse_header(file).all_fields.index(field) + 1
|
32
|
+
end
|
33
|
+
|
34
|
+
rest = ARGV.inject("-t\"\t\" -g -k#{field_pos}"){|acc,e| acc << " '#{e}'" }
|
26
35
|
|
27
36
|
file_io = TSV.get_stream(file)
|
28
37
|
stream = Misc.sort_stream(file_io, options[:header_hash] || "#", rest)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.17.
|
4
|
+
version: 5.17.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|