miga-base 0.2.1.3 → 0.2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miga/_data/aai-intax.tsv.gz +0 -0
- data/lib/miga/_data/aai-novel.tsv.gz +0 -0
- data/lib/miga/version.rb +1 -1
- data/utils/plot-taxdist.R +4 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dd8e19d8780562edc9d8bf94bb84e5f60487e54
|
4
|
+
data.tar.gz: dd86f3de40811fb2862adef1ef5eddb128a9d4d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f93f2e32564193007777e83fb26583a96081eb607881167ba179ba25187ed4ee466897a188d5a81157d6287bcfff73d0690cb834842ebae182533049cc3d89f3
|
7
|
+
data.tar.gz: a4fcfb6ef19264145afedf204ff9b412db4f9d32549a060d4dc8fab21eca6a0e2c13f8646307c8fff56ef902404246a226668a3045f128c2a494edfd57e46d36
|
Binary file
|
Binary file
|
data/lib/miga/version.rb
CHANGED
@@ -10,7 +10,7 @@ module MiGA
|
|
10
10
|
# - Float representing the major.minor version.
|
11
11
|
# - Integer representing gem releases of the current version.
|
12
12
|
# - Integer representing minor changes that require new version number.
|
13
|
-
VERSION = [0.2, 1,
|
13
|
+
VERSION = [0.2, 1, 4]
|
14
14
|
|
15
15
|
##
|
16
16
|
# Nickname for the current major.minor version.
|
data/utils/plot-taxdist.R
CHANGED
@@ -94,17 +94,15 @@ plot.miga.taxdist <- function(file, exclude=c()){
|
|
94
94
|
miga.taxprob.novel <- function(max.aai, rank, data){
|
95
95
|
o <- c()
|
96
96
|
for(i in max.aai){
|
97
|
-
|
98
|
-
o <- c(o, a)
|
97
|
+
o <- c(o, sum(data$rank >= rank & data$aai <= i))
|
99
98
|
}
|
100
|
-
return(o
|
99
|
+
return(o/sum(data$rank >= rank))
|
101
100
|
}
|
102
101
|
|
103
102
|
miga.taxprob.intax <- function(max.aai, rank, data){
|
104
103
|
o <- c()
|
105
104
|
for(i in max.aai){
|
106
|
-
|
107
|
-
o <- c(o, a)
|
105
|
+
o <- c(o, sum(data$rank < rank & data$aai >= i)/sum(data$aai >= i))
|
108
106
|
}
|
109
|
-
return(o
|
107
|
+
return(o)
|
110
108
|
}
|