egor 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/README.rdoc +25 -13
- data/egor.gemspec +8 -6
- data/lib/egor/cli.rb +618 -596
- data/lib/egor.rb +1 -1
- data/lib/environment.rb +9 -9
- data/website/index.html +5 -5
- data/website/index.txt +8 -6
- data.tar.gz.sig +0 -0
- metadata +26 -5
- metadata.gz.sig +1 -0
data/lib/egor.rb
CHANGED
data/lib/environment.rb
CHANGED
@@ -5,26 +5,26 @@ require "facets"
|
|
5
5
|
|
6
6
|
class Environment
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
attr_accessor :number,
|
8
|
+
attr_accessor :amino_acids,
|
9
|
+
:number,
|
11
10
|
:label,
|
12
11
|
:freq_array,
|
13
12
|
:prob_array,
|
14
13
|
:logodd_array,
|
15
14
|
:smooth_prob_array
|
16
15
|
|
17
|
-
def initialize(number, label)
|
16
|
+
def initialize(number, label, amino_acids = "ACDEFGHIKLMNPQRSTVWYJ".split(''))
|
17
|
+
@amino_acids = amino_acids
|
18
18
|
@number = number
|
19
19
|
@label = label
|
20
|
-
@freq_array = $noweight ? NArray.int(
|
21
|
-
@prob_array = NArray.float(
|
22
|
-
@logodd_array = NArray.float(
|
23
|
-
@smooth_prob_array = NArray.float(
|
20
|
+
@freq_array = $noweight ? NArray.int(@amino_acids.size) : NArray.float(@amino_acids.size)
|
21
|
+
@prob_array = NArray.float(@amino_acids.size)
|
22
|
+
@logodd_array = NArray.float(@amino_acids.size)
|
23
|
+
@smooth_prob_array = NArray.float(@amino_acids.size)
|
24
24
|
end
|
25
25
|
|
26
26
|
def increase_residue_count(a, inc = 1.0)
|
27
|
-
@freq_array[
|
27
|
+
@freq_array[@amino_acids.index(a.upcase)] += inc
|
28
28
|
end
|
29
29
|
|
30
30
|
def label_set
|
data/website/index.html
CHANGED
@@ -34,13 +34,11 @@
|
|
34
34
|
<div class="sidebar">
|
35
35
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/egor"; return false'>
|
36
36
|
<p>Get Version</p>
|
37
|
-
<a href="http://rubyforge.org/projects/egor" class="numbers">0.0.
|
37
|
+
<a href="http://rubyforge.org/projects/egor" class="numbers">0.0.3</a>
|
38
38
|
</div>
|
39
39
|
</div>
|
40
40
|
<h2>What</h2>
|
41
41
|
<p>‘egor’ is a program for calculating environment-specific substitution tables</p>
|
42
|
-
<h2>Installation</h2>
|
43
|
-
<p><pre class='syntax'><span class="global">$ </span><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">egor</span></pre></p>
|
44
42
|
<h2>Features</h2>
|
45
43
|
<ul>
|
46
44
|
<li>No more segmentation fault</li>
|
@@ -49,8 +47,10 @@
|
|
49
47
|
<li>Full smoothing supported</li>
|
50
48
|
<li>In theory, infinite number of environment features can be handled</li>
|
51
49
|
</ul>
|
50
|
+
<h2>Installation</h2>
|
51
|
+
<p><pre class='syntax'><span class="global">$ </span><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">egor</span></pre></p>
|
52
52
|
<h2>Demonstration of usage</h2>
|
53
|
-
<p>It’s pretty much the same as Kenji’s subst, so in most cases, you
|
53
|
+
<p>It’s pretty much the same as Kenji’s subst, so in most cases, you can swap ‘subst’ with ‘egor’.</p>
|
54
54
|
<pre>$ egor -l TEMLIST-file -c classdef.dat</pre>
|
55
55
|
or
|
56
56
|
<pre>$ egor -l TEM-file -c classdef.dat</pre>
|
@@ -69,7 +69,7 @@ or
|
|
69
69
|
<h2>Contact</h2>
|
70
70
|
<p>Comments are welcome, please send an email to me (seminlee at gmail dot com).</p>
|
71
71
|
<p class="coda">
|
72
|
-
Semin Lee,
|
72
|
+
Semin Lee, 6th December 2008<br>
|
73
73
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
74
74
|
</p>
|
75
75
|
</div>
|
data/website/index.txt
CHANGED
@@ -6,11 +6,6 @@ h2. What
|
|
6
6
|
'egor' is a program for calculating environment-specific substitution tables
|
7
7
|
|
8
8
|
|
9
|
-
h2. Installation
|
10
|
-
|
11
|
-
<pre syntax="ruby">$ sudo gem install egor</pre>
|
12
|
-
|
13
|
-
|
14
9
|
h2. Features
|
15
10
|
|
16
11
|
* No more segmentation fault
|
@@ -20,9 +15,14 @@ h2. Features
|
|
20
15
|
* In theory, infinite number of environment features can be handled
|
21
16
|
|
22
17
|
|
18
|
+
h2. Installation
|
19
|
+
|
20
|
+
<pre syntax="ruby">$ sudo gem install egor</pre>
|
21
|
+
|
22
|
+
|
23
23
|
h2. Demonstration of usage
|
24
24
|
|
25
|
-
It's pretty much the same as Kenji's subst, so in most cases, you
|
25
|
+
It's pretty much the same as Kenji's subst, so in most cases, you can swap 'subst' with 'egor'.
|
26
26
|
|
27
27
|
<pre>$ egor -l TEMLIST-file -c classdef.dat</pre>
|
28
28
|
or
|
@@ -41,10 +41,12 @@ or, You can fetch the source from
|
|
41
41
|
|
42
42
|
<pre>$ git clone git://github.com/semin/egor.git</pre>
|
43
43
|
|
44
|
+
|
44
45
|
h2. License
|
45
46
|
|
46
47
|
This code is free to use under the terms of the MIT license.
|
47
48
|
|
49
|
+
|
48
50
|
h2. Contact
|
49
51
|
|
50
52
|
Comments are welcome, please send an email to me (seminlee at gmail dot com).
|
data.tar.gz.sig
ADDED
Binary file
|
metadata
CHANGED
@@ -1,15 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Semin Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDMjCCAhqgAwIBAgIBADANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhzZW1p
|
14
|
+
bmxlZTE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W9IippKE9cPxjI
|
29
|
+
3IQH/Zpt1gX4LY6kRrFLj108jus+Cd/srgifylUm2EcHwv2tA1TnqXcm41b5RHyn
|
30
|
+
35w+y1Jd
|
31
|
+
-----END CERTIFICATE-----
|
11
32
|
|
12
|
-
date: 2008-
|
33
|
+
date: 2008-12-09 00:00:00 +00:00
|
13
34
|
default_executable:
|
14
35
|
dependencies:
|
15
36
|
- !ruby/object:Gem::Dependency
|
@@ -146,9 +167,9 @@ signing_key:
|
|
146
167
|
specification_version: 2
|
147
168
|
summary: "egor: Esst GeneratOR, a program for calculating environment-specific substitution tables"
|
148
169
|
test_files:
|
149
|
-
- test/test_helper.rb
|
150
170
|
- test/test_egor.rb
|
171
|
+
- test/test_egor_cli.rb
|
151
172
|
- test/test_enumerable_extensions.rb
|
152
173
|
- test/test_environment_feature.rb
|
174
|
+
- test/test_helper.rb
|
153
175
|
- test/test_nmatrix_extensions.rb
|
154
|
-
- test/test_egor_cli.rb
|
metadata.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
�[�"�sS�Fp-��W�d[U��У˘��.Ctm�0� �Vgk���j�M`z,Gs��B�5�$���=["O����Yn�#��f*g�w�H.��O��}U�O�ދ2�y�DyJ��f���cu��m�#{�g�Z� 顃��{�!�[~�+傄!��)�+ʄ���B�|�Q)^h���i}ܩ�ơ��J�'�xi��j����/���J����8��y����=X=�����Y
|