miga-base 1.2.2.0 → 1.2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab62d2e6d20aa126a5f455bd3b8159549d5c39b7b2e747587a0b0444a30d935a
4
- data.tar.gz: 273671304affb6a21d1e4dc0374c4ff17edf39a96cba8893d2a666640ab1c7c9
3
+ metadata.gz: b13fbb5ae17b883dde03cec010e19649e09cecf2254e5bf9f4e8f9e5447d6445
4
+ data.tar.gz: a26e562d5517dbad291a4817c2c309f7472460a7e6c063a811a9949d060e7667
5
5
  SHA512:
6
- metadata.gz: a157f0c4c52cfe4729eb5bda27900150153606b80f816a169ef18d6603b3fcd0ac03574cdbafbfcfe73e56a55ffbbf168a8c4316f066674ff6aebf6cef168500
7
- data.tar.gz: 1a7b42d7dc75c5cac04f3408e6fba0e989d46ac63e926602c020e15340e24e8dc4694bf07b5f75ecc3a707db9d110d4a379841c426f7eb4a5670da5bcfa9642e
6
+ metadata.gz: e16918bfa39b28db6b057bc9794e8766a56cffe36bff47d29e8d57ef5dac7274fdec1369291c468123acf7dbb7c2002ec58e8e9b0715f01c1e508d355f0a74a8
7
+ data.tar.gz: 78217ee076fe60f36273e6ce8638a32cd4b117ffa524d2d7bc2d5286a179b40e4e8117d6eab617f73e5283ca57860f8197b1f9052be3f356acff8b116b50e2f7
@@ -112,7 +112,7 @@ module MiGA::Cli::Action::Init::FilesHelper
112
112
  && tar zxf #{arch.shellescape} \
113
113
  && rm #{arch.shellescape}
114
114
  CMD
115
- run_cmd(cmd, source: nil)
115
+ run_cmd(cli, cmd, source: nil)
116
116
  cli.puts
117
117
  end
118
118
  end
data/lib/miga/version.rb CHANGED
@@ -12,7 +12,7 @@ module MiGA
12
12
  # - String indicating release status:
13
13
  # - rc* release candidate, not released as gem
14
14
  # - [0-9]+ stable release, released as gem
15
- VERSION = [1.2, 2, 0].freeze
15
+ VERSION = [1.2, 2, 1].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
@@ -20,7 +20,7 @@ module MiGA
20
20
 
21
21
  ##
22
22
  # Date of the current gem relese.
23
- VERSION_DATE = Date.new(2021, 12, 12)
23
+ VERSION_DATE = Date.new(2022, 1, 27)
24
24
 
25
25
  ##
26
26
  # References of MiGA
data/utils/ref-tree.R CHANGED
@@ -5,38 +5,43 @@
5
5
  #
6
6
 
7
7
  #= Load stuff
8
- argv <- commandArgs(trailingOnly=T)
8
+ argv <- commandArgs(trailingOnly = TRUE)
9
9
  suppressPackageStartupMessages(library(ape))
10
- if(Sys.getenv('MIGA') == ''){
10
+ if (Sys.getenv("MIGA") == "") {
11
11
  suppressPackageStartupMessages(library(enveomics.R))
12
- }else{
13
- source(file.path(Sys.getenv('MIGA'),
14
- 'utils', 'enveomics', 'enveomics.R', 'R', 'df2dist.R'))
12
+ } else {
13
+ source(
14
+ file.path(
15
+ Sys.getenv("MIGA"), "utils", "enveomics", "enveomics.R", "R", "df2dist.R"
16
+ )
17
+ )
15
18
  }
16
19
  inst <- c("phangorn", "phytools") %in% rownames(installed.packages())
17
- if(inst[1]){
20
+ if (inst[1]) {
18
21
  suppressPackageStartupMessages(library(phangorn))
19
22
  reroot.fun <- midpoint
20
- }else if(inst[2]){
23
+ } else if (inst[2]) {
21
24
  suppressPackageStartupMessages(library(phytools))
22
25
  reroot.fun <- midpoint.root
23
- }else{
26
+ } else {
24
27
  reroot.fun <- function(x) return(x)
25
28
  }
26
29
 
27
30
  #= Main function
28
31
  ref_tree <- function(ani_file, out_base, q_dataset) {
29
- a <- read.table(ani_file, sep="\t", header=TRUE, as.is=TRUE)
30
- ani.d <- enve.df2dist(a[,1:3], default.d=0.9, max.sim=100)
32
+ a <- read.table(ani_file, sep = "\t", header = TRUE, as.is = TRUE)
33
+ ani.d <- enve.df2dist(a[, 1:3], default.d = 0.9, max.sim = 100)
31
34
  ani.ph <- reroot.fun(bionj(ani.d))
32
- write.tree(ani.ph, paste(out_base, ".nwk", sep=""))
33
- pdf(paste(out_base, ".nwk.pdf", sep=""), 7, 7)
34
- plot(ani.ph, cex=1/3, type='fan',
35
- tip.color=c('red', 'black')[ifelse(ani.ph$tip.label==q_dataset, 1, 2)])
35
+ write.tree(ani.ph, paste(out_base, ".nwk", sep = ""))
36
+ pdf(paste(out_base, ".nwk.pdf", sep = ""), 7, 7)
37
+ plot(
38
+ ani.ph, cex = 1/3, type = "fan",
39
+ tip.color = c("red", "black")[ifelse(ani.ph$tip.label == q_dataset, 1, 2)]
40
+ )
36
41
  add.scale.bar()
37
42
  dev.off()
38
43
  }
39
44
 
40
45
  #= Main
41
- ref_tree(ani_file=argv[1], out_base=argv[2], q_dataset=argv[3])
46
+ ref_tree(ani_file = argv[1], out_base = argv[2], q_dataset = argv[3])
42
47
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2.0
4
+ version: 1.2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-12 00:00:00.000000000 Z
11
+ date: 2022-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons