rbbt-util 5.31.9 → 5.31.10
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/rbbt/util/cmd.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4909a13c518c1128adcdfc981153c04bb9f57c11b8501c65549b427fd0d647d5
|
|
4
|
+
data.tar.gz: 0b6f7089d1c78aec899dcfdec1784a0bbb56f3df7c84f24bedb6da0d79e058fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f041b99830f23f3bd8f6e29de8bec29ca5352d4a0873d36dc452b5c1d7a2d31a7d563247337980e8df06fbd9a1835ba04bab43bd9293d9484f82ab00fc534482
|
|
7
|
+
data.tar.gz: 2c80efb6433e60851c666cc7bb75a7e66a7a3e5813db3bd41c73c8511ef94a64b4ab8528da2a2abe104f2aad97d7ed69876931e5932c02a7ed2db1e5f470a3b1
|
data/lib/rbbt/util/cmd.rb
CHANGED
|
@@ -10,6 +10,14 @@ module CMD
|
|
|
10
10
|
TOOLS[tool] = [claim, test, block, cmd]
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
def self.conda(tool, env = nil, channel = 'bioconda')
|
|
14
|
+
if env
|
|
15
|
+
CMD.cmd("bash -l -c '(conda activate #{env} && conda install #{tool} -c #{channel})'")
|
|
16
|
+
else
|
|
17
|
+
CMD.cmd("bash -l -c 'conda install #{tool} -c #{channel}'")
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
13
21
|
def self.get_tool(tool)
|
|
14
22
|
return tool.to_s unless TOOLS[tool]
|
|
15
23
|
|