rbbt-util 5.25.39 → 5.25.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/hpc.rb +6 -3
- data/share/rbbt_commands/tsv/subset +1 -0
- 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: 9433fb814b44267945865834fea4990b38cbeb96
|
4
|
+
data.tar.gz: 1f1a04136934f52f3a3ff4d7826b2e34a7cddff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5d6572ac860c7028a6abd78fe0bb8cc9e3ca563eccda0e11d404a665a15e29b5a7e5aba43193ed78325e7c92f16dcbeabf876eea28e33c39859737313e76b07
|
7
|
+
data.tar.gz: 2db09b238b2d769ee4b686ca13bc3d9c636af2c3a08512e2adac5801887ec75553a27c4bb038eed17d24fe9117911b337f6c51f17f87ed168de1523b43635108
|
data/lib/rbbt/hpc.rb
CHANGED
@@ -98,6 +98,9 @@ module Marenostrum
|
|
98
98
|
# Prepare env
|
99
99
|
[[ -f ~/config/load.sh ]] && source ~/config/load.sh
|
100
100
|
module load java
|
101
|
+
|
102
|
+
# Calculate max available memory
|
103
|
+
let "MAX_MEMORY=$SLURM_MEM_PER_CPU * $SLURM_CPUS_ON_NODE"
|
101
104
|
EOF
|
102
105
|
|
103
106
|
if singularity
|
@@ -165,16 +168,16 @@ EOF
|
|
165
168
|
group = File.basename(File.dirname(ENV['HOME']))
|
166
169
|
scratch_group_dir = File.join('/gpfs/scratch/', group)
|
167
170
|
projects_group_dir = File.join('/gpfs/projects/', group)
|
168
|
-
exec_cmd = %(singularity exec -e -C -H "$CONTAINER_DIR" -B /apps/ -B "$SINGULARITY_RUBY_INLINE":"$CONTAINER_DIR/.ruby_inline":rw -B ~/git:"$CONTAINER_DIR/git":ro -B #{scratch_group_dir}:"$CONTAINER_DIR/scratch":ro -B ~/.rbbt/software/opt/:"/opt/":ro -B ~/.rbbt:"$CONTAINER_DIR/home/":ro -B #{projects_group_dir}:"$CONTAINER_DIR/projects":ro "$SINGULARITY_IMG" env TMPDIR="$CONTAINER_DIR/.rbbt/tmp" rbbt)
|
171
|
+
exec_cmd = %(singularity exec -e -C -H "$CONTAINER_DIR" -B /apps/ -B "$SINGULARITY_RUBY_INLINE":"$CONTAINER_DIR/.ruby_inline":rw -B ~/git:"$CONTAINER_DIR/git":ro -B #{scratch_group_dir}:"$CONTAINER_DIR/scratch":ro -B ~/.rbbt/software/opt/:"/opt/":ro -B ~/.rbbt:"$CONTAINER_DIR/home/":ro -B #{projects_group_dir}:"$CONTAINER_DIR/projects":ro "$SINGULARITY_IMG" env TMPDIR="$CONTAINER_DIR/.rbbt/tmp" env _JAVA_OPTION="-Xms1g -Xmx${MAX_MEMORY}m" rbbt)
|
169
172
|
else
|
170
|
-
exec_cmd = %(singularity exec -e -B /apps/ -B "$SINGULARITY_RUBY_INLINE":"$HOME/.ruby_inline":rw "$SINGULARITY_IMG" rbbt)
|
173
|
+
exec_cmd = %(singularity exec -e -B /apps/ -B "$SINGULARITY_RUBY_INLINE":"$HOME/.ruby_inline":rw "$SINGULARITY_IMG" env _JAVA_OPTION="-Xms1g -Xmx${MAX_MEMORY}m" rbbt)
|
171
174
|
end
|
172
175
|
|
173
176
|
if development
|
174
177
|
exec_cmd += ' --dev=git'
|
175
178
|
end
|
176
179
|
else
|
177
|
-
exec_cmd = %(~/git/rbbt-util/bin/rbbt --dev=~/git/)
|
180
|
+
exec_cmd = %(env _JAVA_OPTION="-Xms1g -Xmx${MAX_MEMORY}m" ~/git/rbbt-util/bin/rbbt --dev=~/git/)
|
178
181
|
end
|
179
182
|
|
180
183
|
|
@@ -16,6 +16,7 @@ Subsets entries from a TSV file from a given list. Works with Tokyocabinet HDB a
|
|
16
16
|
-tcb--tokyocabinet_bd File is a TC BDB
|
17
17
|
-hh--header_hash* Change the character used to mark the header line (defaults to #)
|
18
18
|
-s--subset* Subset of keys (Comma-separated or file)
|
19
|
+
-m--merge Merge TSV rows
|
19
20
|
-h--help Help
|
20
21
|
EOF
|
21
22
|
|
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.25.
|
4
|
+
version: 5.25.40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|