semin-ulla 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
data/.autotest ADDED
@@ -0,0 +1,5 @@
1
+ #require 'autotest/screen'
2
+
3
+ #Autotest::Screen.statusline = '%H %`%-w%{=b bw}%n %t%{-}%+w (your statusline)'
4
+ #Autotest::Screen.statusline = '%{=b}%{G} Screen(s): %{b}%w %=%{kG}%C%A %D, %M/%d/%Y (your statusline)'
5
+
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ == 0.9.4 18/03/2009
2
+
3
+ * Fixed a bug for environment label and residue name when --cys 2 is set
4
+
5
+ == 0.9.3 23/2/2009
6
+
7
+ * Egor has been renamed to Ulla!
8
+
1
9
  == 0.9.0 13/2/2009
2
10
 
3
11
  * Added --heatmap option for heat map generation from substitution tables
data/Manifest.txt CHANGED
@@ -1,56 +1,4 @@
1
- .git/COMMIT_EDITMSG
2
- .git/HEAD
3
- .git/config
4
- .git/description
5
- .git/hooks/applypatch-msg.sample
6
- .git/hooks/commit-msg.sample
7
- .git/hooks/post-commit.sample
8
- .git/hooks/post-receive.sample
9
- .git/hooks/post-update.sample
10
- .git/hooks/pre-applypatch.sample
11
- .git/hooks/pre-commit.sample
12
- .git/hooks/pre-rebase.sample
13
- .git/hooks/prepare-commit-msg.sample
14
- .git/hooks/update.sample
15
- .git/index
16
- .git/info/exclude
17
- .git/logs/HEAD
18
- .git/logs/refs/heads/master
19
- .git/logs/refs/remotes/origin/HEAD
20
- .git/objects/06/9494e479f28b5751fb135b8e55e8fef3d3a02e
21
- .git/objects/22/0df784191ad94983ca1d943e49fe482c9d1069
22
- .git/objects/3b/b6f2b7f563175a13a0ccd723aab761552f448b
23
- .git/objects/41/f48aefb4d7a6a87eb423eaae77ae1e8a58dd6c
24
- .git/objects/44/d1f1782e3ea1d9fd2f9054784b53e8e810a8ca
25
- .git/objects/4f/364c2eac29f5c7fcbf06419c4f58074cd32ace
26
- .git/objects/57/1326145a7a4b3e58f3d3008ba343135f213b05
27
- .git/objects/6c/4f0844f62b7345f0651b0fb2829a8f157469fb
28
- .git/objects/73/8dc79450de050f12d48a32602f2ddbe6807029
29
- .git/objects/7b/4acb3aee6616d80e295ee21fe8bb7ee93ebe96
30
- .git/objects/9e/0a9235b0d70a8029098070007fb414cb52504e
31
- .git/objects/9e/bfcad2906aac4a23a7c9689a47b76723f5d152
32
- .git/objects/a6/578c95f2f474303464b572e9dac716432472b2
33
- .git/objects/a8/65ef5700ff04601c6fc40fa5ede3cc25534723
34
- .git/objects/aa/285cb176668c5e49c54c6e1d3cc27bd47fd4f4
35
- .git/objects/b8/e3828a1082137c4aa4595386bdfb73e3c75b9d
36
- .git/objects/c2/fb6afc000952b56354fe195682645000d2aea2
37
- .git/objects/c4/a0553ca0e3c4628e688ecb5e3304a8a8ac0c28
38
- .git/objects/c8/d49f83c4a32cff2d87dd4aa5f83eb7aac3a753
39
- .git/objects/ca/c25e8049075ed4bff993705acb4750b2b62ba9
40
- .git/objects/d2/ff2e939339eb3fb776e064c258e71dfa1cf396
41
- .git/objects/d7/cedf9e2a8ff35b5d7dafdc0f20daed9c65ce44
42
- .git/objects/e2/e81af59e3a6c4aa8daac62add62860ae776ba4
43
- .git/objects/e5/7c47d183ce5dda1a944c7ee1c19c8a0c4bb278
44
- .git/objects/eb/f4a4e1e50bb30731597f776e56b0ccb0c9959f
45
- .git/objects/f6/39d6f6cf883fde4b9052012919c1df3288c7da
46
- .git/objects/f8/2346f308f49053df108b7c31ac3089e8b4b4ac
47
- .git/objects/fb/4b193bb1cbe9041d2f00176f6caa6acfb1fc12
48
- .git/objects/pack/pack-aebf617a0b8e016433238d2f21f542bc5b21bd15.idx
49
- .git/objects/pack/pack-aebf617a0b8e016433238d2f21f542bc5b21bd15.pack
50
- .git/packed-refs
51
- .git/refs/heads/master
52
- .git/refs/remotes/origin/HEAD
53
- .gitignore
1
+ .autotest
54
2
  History.txt
55
3
  Manifest.txt
56
4
  PostInstall.txt
@@ -83,6 +31,7 @@ test/test_ulla.rb
83
31
  test/ulla/test_cli.rb
84
32
  test/ulla/test_environment_class_hash.rb
85
33
  test/ulla/test_environment_feature.rb
34
+ ulla.gemspec
86
35
  website/index.html
87
36
  website/index.txt
88
37
  website/javascripts/rounded_corners_lite.inc.js
data/README.rdoc CHANGED
@@ -94,7 +94,7 @@ It's pretty much the same as Kenji's subst (http://www-cryst.bioc.cam.ac.uk/~ken
94
94
 
95
95
  == Usage
96
96
 
97
- 1. Prepare an environmental class definition file. For more details, please check this notes (http://www-cryst.bioc.cam.ac.uk/~kenji/subst/NOTES).
97
+ 1. Prepare an environmental class definition file. For more details, please check this notes (http://www-cryst.bioc.cam.ac.uk/~kenji/subst/NOTES). You can download a sample environmental class definition file from http://www-cryst.bioc.cam.ac.uk/~kenji/subst/classdef.dat
98
98
 
99
99
  ~user $ cat classdef.dat
100
100
  #
@@ -104,7 +104,7 @@ It's pretty much the same as Kenji's subst (http://www-cryst.bioc.cam.ac.uk/~ken
104
104
  secondary structure and phi angle;HEPC;HEPC;T;F
105
105
  solvent accessibility;TF;Aa;F;F
106
106
 
107
- 2. Prepare structural alignments and their annotations of above environmental classes in PIR format.
107
+ 2. Prepare structural alignments and their annotations of above environmental classes in PIR format. You can download sample alignments from http://www-cryst.bioc.cam.ac.uk/~kenji/subst/alltem-allmask.tar.gz
108
108
 
109
109
  ~user $ cat sample1.tem
110
110
  >P1;1mnma
@@ -153,13 +153,13 @@ It's pretty much the same as Kenji's subst (http://www-cryst.bioc.cam.ac.uk/~ken
153
153
 
154
154
  ~user $ ulla -l TEMLIST --output 2 -o substlogo.mat
155
155
 
156
- 7. To produce substitution data only from the sequence pairs within a given PID range, type (if you don't provide any name for output, 'allmat.dat' will be used.)
156
+ 7. To produce substitution probability matrices only from the sequence pairs within a certain PID range, type (if you don't provide any name for output, 'allmat.dat' will be used.)
157
157
 
158
158
  ~user $ ulla -l TEMLIST --pidmin 60 --pidmax 80 --output 1
159
159
 
160
- 8. To change the clustering level (default 60), type
160
+ 8. To change the clustering level (default 60) to PID 80, type
161
161
 
162
- ~user $ ulla -l TEMLIST --weight 80 --output 2
162
+ ~user $ ulla -l TEMLIST --weight 80 --output 1
163
163
 
164
164
  9. In case positions are masked with the character 'X' in any environmental features, all mutations from/to the position will be excluded from the calculation of substitution counts.
165
165
 
@@ -235,7 +235,6 @@ It's pretty much the same as Kenji's subst (http://www-cryst.bioc.cam.ac.uk/~ken
235
235
  == TODO
236
236
 
237
237
  * Substitution table generation considering both the source and the target environmental classes
238
- * Remove dependency on NMatrix package
239
238
 
240
239
  == Repository
241
240
 
data/lib/ulla/cli.rb CHANGED
@@ -502,9 +502,7 @@ Options:
502
502
  'X'
503
503
  else
504
504
  if ei == 0 # Amino Acid Environment Feature
505
- (disulphide.has_key?(key) &&
506
- (disulphide[key][pos] == 'F') &&
507
- (sym == 'C')) ? 'J' : sym
505
+ (disulphide.has_key?(key) && (disulphide[key][pos] == 'F') && (sym == 'C') && ($cys != 2)) ? 'J' : sym
508
506
  else
509
507
  ec.labels[ec.symbols.index(sym)]
510
508
  end
@@ -569,8 +567,8 @@ Options:
569
567
  next
570
568
  end
571
569
 
572
- aa1 = (disulphide.has_key?(id1) && (disulphide[id1][pos] == 'F') && (aa1 == 'C')) ? 'J' : aa1
573
- aa2 = (disulphide.has_key?(id2) && (disulphide[id2][pos] == 'F') && (aa2 == 'C')) ? 'J' : aa2
570
+ aa1 = (disulphide.has_key?(id1) && (disulphide[id1][pos] == 'F') && (aa1 == 'C') && ($cys != 2)) ? 'J' : aa1
571
+ aa2 = (disulphide.has_key?(id2) && (disulphide[id2][pos] == 'F') && (aa2 == 'C') && ($cys != 2)) ? 'J' : aa2
574
572
 
575
573
  if $cst_features.empty?
576
574
  $env_classes[env_labels[id1][pos]].increase_residue_count(aa2)
@@ -684,8 +682,8 @@ Options:
684
682
  next
685
683
  end
686
684
 
687
- aa1 = (disulphide.has_key?(id1) && (disulphide[id1][pos] == 'F') && (aa1 == 'C')) ? 'J' : aa1
688
- aa2 = (disulphide.has_key?(id2) && (disulphide[id2][pos] == 'F') && (aa2 == 'C')) ? 'J' : aa2
685
+ aa1 = (disulphide.has_key?(id1) && (disulphide[id1][pos] == 'F') && (aa1 == 'C') && ($cys != 2)) ? 'J' : aa1
686
+ aa2 = (disulphide.has_key?(id2) && (disulphide[id2][pos] == 'F') && (aa2 == 'C') && ($cys != 2)) ? 'J' : aa2
689
687
  cnt1 = 1.0 / cluster1.size
690
688
  cnt2 = 1.0 / cluster2.size
691
689
  jnt_cnt = cnt1 * cnt2
data/lib/ulla.rb CHANGED
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Ulla
5
- VERSION = '0.9.3'
5
+ VERSION = '0.9.4'
6
6
  end
data/ulla.gemspec ADDED
@@ -0,0 +1,53 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{ulla}
5
+ s.version = "0.9.4"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Semin Lee"]
9
+ s.date = %q{2009-03-18}
10
+ s.default_executable = %q{ulla}
11
+ s.description = %q{'ulla' is a program for calculating environment-specific substitution tables from user providing environmental class definitions and sequence alignments with the annotations of the environment classes.}
12
+ s.email = ["seminlee@gmail.com"]
13
+ s.executables = ["ulla"]
14
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "website/index.txt"]
15
+ s.files = [".autotest", "History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "bin/ulla", "config/website.yml", "config/website.yml.sample", "lib/math_extensions.rb", "lib/narray_extensions.rb", "lib/nmatrix_extensions.rb", "lib/string_extensions.rb", "lib/ulla.rb", "lib/ulla/cli.rb", "lib/ulla/environment.rb", "lib/ulla/environment_class_hash.rb", "lib/ulla/environment_feature.rb", "lib/ulla/environment_feature_array.rb", "lib/ulla/heatmap_array.rb", "script/console", "script/destroy", "script/generate", "script/txt2html", "test/test_helper.rb", "test/test_math_extensions.rb", "test/test_narray_extensions.rb", "test/test_nmatrix_extensions.rb", "test/test_string_extensions.rb", "test/test_ulla.rb", "test/ulla/test_cli.rb", "test/ulla/test_environment_class_hash.rb", "test/ulla/test_environment_feature.rb", "ulla.gemspec", "website/index.html", "website/index.txt", "website/javascripts/rounded_corners_lite.inc.js", "website/stylesheets/screen.css", "website/template.html.erb"]
16
+ s.has_rdoc = true
17
+ s.homepage = %q{http://www-cryst.bioc.cam.ac.uk/ulla}
18
+ s.post_install_message = %q{PostInstall.txt}
19
+ s.rdoc_options = ["--main", "README.rdoc"]
20
+ s.require_paths = ["lib"]
21
+ s.rubyforge_project = %q{ulla}
22
+ s.rubygems_version = %q{1.3.1}
23
+ s.summary = %q{'ulla' is a program for calculating environment-specific substitution tables from user providing environmental class definitions and sequence alignments with the annotations of the environment classes.}
24
+ s.test_files = ["test/test_math_extensions.rb", "test/test_narray_extensions.rb", "test/test_nmatrix_extensions.rb", "test/test_string_extensions.rb", "test/ulla/test_cli.rb", "test/ulla/test_environment_class_hash.rb", "test/ulla/test_environment_feature.rb", "test/test_helper.rb", "test/test_ulla.rb"]
25
+
26
+ if s.respond_to? :specification_version then
27
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
28
+ s.specification_version = 2
29
+
30
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
31
+ s.add_runtime_dependency(%q<narray>, [">= 0.5.9.5"])
32
+ s.add_runtime_dependency(%q<bio>, [">= 1.2.1"])
33
+ s.add_runtime_dependency(%q<facets>, [">= 2.4.5"])
34
+ s.add_runtime_dependency(%q<rmagick>, [">= 2.9.1"])
35
+ s.add_development_dependency(%q<newgem>, [">= 1.3.0"])
36
+ s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
37
+ else
38
+ s.add_dependency(%q<narray>, [">= 0.5.9.5"])
39
+ s.add_dependency(%q<bio>, [">= 1.2.1"])
40
+ s.add_dependency(%q<facets>, [">= 2.4.5"])
41
+ s.add_dependency(%q<rmagick>, [">= 2.9.1"])
42
+ s.add_dependency(%q<newgem>, [">= 1.3.0"])
43
+ s.add_dependency(%q<hoe>, [">= 1.8.0"])
44
+ end
45
+ else
46
+ s.add_dependency(%q<narray>, [">= 0.5.9.5"])
47
+ s.add_dependency(%q<bio>, [">= 1.2.1"])
48
+ s.add_dependency(%q<facets>, [">= 2.4.5"])
49
+ s.add_dependency(%q<rmagick>, [">= 2.9.1"])
50
+ s.add_dependency(%q<newgem>, [">= 1.3.0"])
51
+ s.add_dependency(%q<hoe>, [">= 1.8.0"])
52
+ end
53
+ end
data/website/index.html CHANGED
@@ -9,8 +9,18 @@
9
9
  </head>
10
10
  <body>
11
11
  <p>
12
- Egor has been renamed to Ulla, and an official web site for Ulla will be available when our new web contents management system is ready. Until then, this page will be redirected to its Git repository, <a href="http://http://github.com/semin/ulla/">http://github.com/semin/ulla</a> in 5 seconds.
12
+ Egor has been renamed to Ulla, and an official web site for Ulla will be available when our new web contents management system is ready. Until then, this page will be redirected to its Git repository, <a href="http://github.com/semin/ulla/">http://github.com/semin/ulla</a> in 5 seconds.
13
13
  </p>
14
14
  - Semin
15
+ <script type="text/javascript">
16
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
17
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
18
+ </script>
19
+ <script type="text/javascript">
20
+ try {
21
+ var pageTracker = _gat._getTracker("UA-7633498-1");
22
+ pageTracker._trackPageview();
23
+ } catch(err) {}
24
+ </script>
15
25
  </body>
16
26
  </html>
data/website/index.txt CHANGED
@@ -30,7 +30,6 @@ Following RubyGems will be automatically installed if you have rubygems installe
30
30
  * narray (http://narray.rubyforge.org/)
31
31
  * facets (http://facets.rubyforge.org/)
32
32
  * bio (http://bioruby.open-bio.org/)
33
- * simple_memoize (http://github.com/JackDanger/simple_memoize/tree/master)
34
33
 
35
34
 
36
35
  h2. Basic Usage
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semin-ulla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Semin Lee
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-23 00:00:00 -08:00
12
+ date: 2009-03-18 00:00:00 -07:00
13
13
  default_executable: ulla
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: 1.2.3
63
+ version: 1.3.0
64
64
  version:
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: hoe
@@ -86,59 +86,7 @@ extra_rdoc_files:
86
86
  - README.rdoc
87
87
  - website/index.txt
88
88
  files:
89
- - .git/COMMIT_EDITMSG
90
- - .git/HEAD
91
- - .git/config
92
- - .git/description
93
- - .git/hooks/applypatch-msg.sample
94
- - .git/hooks/commit-msg.sample
95
- - .git/hooks/post-commit.sample
96
- - .git/hooks/post-receive.sample
97
- - .git/hooks/post-update.sample
98
- - .git/hooks/pre-applypatch.sample
99
- - .git/hooks/pre-commit.sample
100
- - .git/hooks/pre-rebase.sample
101
- - .git/hooks/prepare-commit-msg.sample
102
- - .git/hooks/update.sample
103
- - .git/index
104
- - .git/info/exclude
105
- - .git/logs/HEAD
106
- - .git/logs/refs/heads/master
107
- - .git/logs/refs/remotes/origin/HEAD
108
- - .git/objects/06/9494e479f28b5751fb135b8e55e8fef3d3a02e
109
- - .git/objects/22/0df784191ad94983ca1d943e49fe482c9d1069
110
- - .git/objects/3b/b6f2b7f563175a13a0ccd723aab761552f448b
111
- - .git/objects/41/f48aefb4d7a6a87eb423eaae77ae1e8a58dd6c
112
- - .git/objects/44/d1f1782e3ea1d9fd2f9054784b53e8e810a8ca
113
- - .git/objects/4f/364c2eac29f5c7fcbf06419c4f58074cd32ace
114
- - .git/objects/57/1326145a7a4b3e58f3d3008ba343135f213b05
115
- - .git/objects/6c/4f0844f62b7345f0651b0fb2829a8f157469fb
116
- - .git/objects/73/8dc79450de050f12d48a32602f2ddbe6807029
117
- - .git/objects/7b/4acb3aee6616d80e295ee21fe8bb7ee93ebe96
118
- - .git/objects/9e/0a9235b0d70a8029098070007fb414cb52504e
119
- - .git/objects/9e/bfcad2906aac4a23a7c9689a47b76723f5d152
120
- - .git/objects/a6/578c95f2f474303464b572e9dac716432472b2
121
- - .git/objects/a8/65ef5700ff04601c6fc40fa5ede3cc25534723
122
- - .git/objects/aa/285cb176668c5e49c54c6e1d3cc27bd47fd4f4
123
- - .git/objects/b8/e3828a1082137c4aa4595386bdfb73e3c75b9d
124
- - .git/objects/c2/fb6afc000952b56354fe195682645000d2aea2
125
- - .git/objects/c4/a0553ca0e3c4628e688ecb5e3304a8a8ac0c28
126
- - .git/objects/c8/d49f83c4a32cff2d87dd4aa5f83eb7aac3a753
127
- - .git/objects/ca/c25e8049075ed4bff993705acb4750b2b62ba9
128
- - .git/objects/d2/ff2e939339eb3fb776e064c258e71dfa1cf396
129
- - .git/objects/d7/cedf9e2a8ff35b5d7dafdc0f20daed9c65ce44
130
- - .git/objects/e2/e81af59e3a6c4aa8daac62add62860ae776ba4
131
- - .git/objects/e5/7c47d183ce5dda1a944c7ee1c19c8a0c4bb278
132
- - .git/objects/eb/f4a4e1e50bb30731597f776e56b0ccb0c9959f
133
- - .git/objects/f6/39d6f6cf883fde4b9052012919c1df3288c7da
134
- - .git/objects/f8/2346f308f49053df108b7c31ac3089e8b4b4ac
135
- - .git/objects/fb/4b193bb1cbe9041d2f00176f6caa6acfb1fc12
136
- - .git/objects/pack/pack-aebf617a0b8e016433238d2f21f542bc5b21bd15.idx
137
- - .git/objects/pack/pack-aebf617a0b8e016433238d2f21f542bc5b21bd15.pack
138
- - .git/packed-refs
139
- - .git/refs/heads/master
140
- - .git/refs/remotes/origin/HEAD
141
- - .gitignore
89
+ - .autotest
142
90
  - History.txt
143
91
  - Manifest.txt
144
92
  - PostInstall.txt
@@ -171,6 +119,7 @@ files:
171
119
  - test/ulla/test_cli.rb
172
120
  - test/ulla/test_environment_class_hash.rb
173
121
  - test/ulla/test_environment_feature.rb
122
+ - ulla.gemspec
174
123
  - website/index.html
175
124
  - website/index.txt
176
125
  - website/javascripts/rounded_corners_lite.inc.js
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- pkg
2
- doc
3
- .DS_Store
4
- tmp
5
- data
6
- *.log
7
- *.swp
8
- *~