ulla 0.9.7 → 0.9.8
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.
- data/History.txt +4 -0
- data/Manifest.txt +0 -1
- data/README.rdoc +8 -7
- data/Rakefile +14 -21
- data/lib/ulla.rb +1 -1
- data/lib/ulla/cli.rb +4 -4
- data/ulla.gemspec +9 -10
- data/website/index.html +1 -1
- metadata +4 -16
- data/.autotest +0 -5
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -49,7 +49,10 @@ It's pretty much the same as Kenji's subst (http://www-cryst.bioc.cam.ac.uk/~ken
|
|
49
49
|
--classdef (-c) FILE: a file for the defintion of environments (default: 'classdef.dat')
|
50
50
|
--outfile (-o) FILE: output filename (default 'allmat.dat')
|
51
51
|
--weight (-w) INTEGER: clustering level (PID) for the BLOSUM-like weighting (default: 60)
|
52
|
-
--noweight: calculate substitution
|
52
|
+
--noweight: calculate substitution counts with no weights
|
53
|
+
--environment (-e) INTEGER:
|
54
|
+
0 for considering only substituted amino acids' environments (default)
|
55
|
+
1 for considering both substituted and substituting amino acids' environments
|
53
56
|
--smooth (-s) INTEGER:
|
54
57
|
0 for partial smoothing (default)
|
55
58
|
1 for full smoothing
|
@@ -60,14 +63,14 @@ It's pretty much the same as Kenji's subst (http://www-cryst.bioc.cam.ac.uk/~ken
|
|
60
63
|
1 for both structure and sequence
|
61
64
|
2 for using only C for both (must be set when you have no 'disulphide' or 'disulfide' annotation in templates)
|
62
65
|
--output INTEGER:
|
63
|
-
0 for raw
|
66
|
+
0 for raw counts (no smoothing performed)
|
64
67
|
1 for probabilities
|
65
|
-
2 for log
|
68
|
+
2 for log-odds (default)
|
66
69
|
--noroundoff: do not round off log odds ratio
|
67
|
-
--scale INTEGER: log
|
70
|
+
--scale INTEGER: log-odds matrices in 1/n bit units (default 3)
|
68
71
|
--sigma DOUBLE: change the sigma value for smoothing (default 5.0)
|
69
72
|
--autosigma: automatically adjust the sigma value for smoothing
|
70
|
-
--add DOUBLE: add this value to raw
|
73
|
+
--add DOUBLE: add this value to raw counts when deriving log-odds without smoothing (default 0)
|
71
74
|
--pidmin DOUBLE: count substitutions only for pairs with PID equal to or greater than this value (default none)
|
72
75
|
--pidmax DOUBLE: count substitutions only for pairs with PID smaller than this value (default none)
|
73
76
|
--heatmap INTEGER:
|
@@ -234,8 +237,6 @@ It's pretty much the same as Kenji's subst (http://www-cryst.bioc.cam.ac.uk/~ken
|
|
234
237
|
|
235
238
|
== TODO
|
236
239
|
|
237
|
-
* Substitution table generation considering both the source and the target environmental classes
|
238
|
-
|
239
240
|
== Repository
|
240
241
|
|
241
242
|
You can download a pre-built RubyGems package from
|
data/Rakefile
CHANGED
@@ -1,32 +1,25 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'rubygems'
|
2
|
+
gem 'hoe', '>= 2.1.0'
|
3
|
+
require 'hoe'
|
4
|
+
require 'fileutils'
|
5
|
+
|
6
|
+
Hoe.plugin :newgem
|
7
|
+
# Hoe.plugin :website
|
8
|
+
# Hoe.plugin :cucumberfeatures
|
3
9
|
|
4
10
|
# Generate all the Rake tasks
|
5
11
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
6
|
-
$hoe = Hoe.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
p.extra_deps = [
|
12
|
+
$hoe = Hoe.spec 'ulla' do
|
13
|
+
self.developer 'Semin Lee', 'seminlee@gmail.com'
|
14
|
+
self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
|
15
|
+
self.rubyforge_name = self.name # TODO this is default value
|
16
|
+
self.extra_deps = [
|
12
17
|
['narray', '>= 0.5.9.5'],
|
13
18
|
['bio', '>= 1.2.1'],
|
14
19
|
['facets', '>= 2.4.5'],
|
15
20
|
['rmagick', '>= 2.9.1'],
|
16
21
|
]
|
17
|
-
|
18
|
-
p.extra_dev_deps = [
|
19
|
-
['newgem', ">= #{::Newgem::VERSION}"]
|
20
|
-
]
|
21
|
-
|
22
|
-
p.clean_globs |= %w[**/.DS_Store tmp *.log *.swp]
|
23
|
-
path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
|
24
|
-
p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
|
25
|
-
p.rsync_args = '-av --delete --ignore-errors'
|
26
22
|
end
|
27
23
|
|
28
|
-
require 'newgem/tasks'
|
24
|
+
require 'newgem/tasks'
|
29
25
|
Dir['tasks/**/*.rake'].each { |t| load t }
|
30
|
-
|
31
|
-
# TODO - want other tests/tasks run by default? Add them to the list
|
32
|
-
# task :default => [:spec, :features]
|
data/lib/ulla.rb
CHANGED
data/lib/ulla/cli.rb
CHANGED
@@ -384,7 +384,7 @@ Options:
|
|
384
384
|
|
385
385
|
# if --cys option 2, then we don't care about 'J' (for both Cystine and Cystine)
|
386
386
|
if $cys == 2
|
387
|
-
$amino_acids = 'ACDEFGHIKLMNPQRSTVWY'.delete('J')
|
387
|
+
$amino_acids = 'ACDEFGHIKLMNPQRSTVWY'.delete('J').split('')
|
388
388
|
end
|
389
389
|
|
390
390
|
# create an EnvironmentFeatureArray object for storing all environment
|
@@ -709,11 +709,11 @@ Options:
|
|
709
709
|
env_label2 = $environment == 1 ? aa2 + '-' + aa1[1..-1] : env_labels[id2][pos]
|
710
710
|
|
711
711
|
if $cst_features.empty?
|
712
|
-
$env_classes[env_label1].increase_residue_count(aa2[0].chr, jnt_cnt)
|
713
|
-
$env_classes[env_label2].increase_residue_count(aa1[0].chr, jnt_cnt)
|
712
|
+
$env_classes[env_label1].increase_residue_count(aa2[0].chr, jnt_cnt) #rescue $logger.error "Something wrong with #{tem_file}-#{id2}-#{pos}-#{aa2}-#{env_label2}"
|
713
|
+
$env_classes[env_label2].increase_residue_count(aa1[0].chr, jnt_cnt) #rescue $logger.error "Something wrong with #{tem_file}-#{id2}-#{pos}-#{aa2}-#{env_label2}"
|
714
714
|
elsif (env_labels[id1][pos].split('').values_at(*$cst_features) == env_labels[id2][pos].split('').values_at(*$cst_features))
|
715
715
|
$env_classes[env_label1].increase_residue_count(aa2[0].chr, jnt_cnt)
|
716
|
-
$env_classes[env_label2].increase_residue_count(aa1[
|
716
|
+
$env_classes[env_label2].increase_residue_count(aa1[0].chr, jnt_cnt)
|
717
717
|
else
|
718
718
|
$logger.debug "Skipped #{id1}-#{pos}-#{aa1[0].chr} and #{id2}-#{pos}-#{aa2[0].chr} having different symbols for constrained environment features each other."
|
719
719
|
next
|
data/ulla.gemspec
CHANGED
@@ -2,44 +2,43 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ulla}
|
5
|
-
s.version = "0.9.
|
5
|
+
s.version = "0.9.7"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Semin Lee"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-06-11}
|
10
10
|
s.default_executable = %q{ulla}
|
11
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
12
|
s.email = ["seminlee@gmail.com"]
|
13
13
|
s.executables = ["ulla"]
|
14
14
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "website/index.txt"]
|
15
|
-
s.files = ["
|
16
|
-
s.has_rdoc = true
|
15
|
+
s.files = ["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"]
|
17
16
|
s.homepage = %q{http://www-cryst.bioc.cam.ac.uk/ulla}
|
18
17
|
s.post_install_message = %q{PostInstall.txt}
|
19
18
|
s.rdoc_options = ["--main", "README.rdoc"]
|
20
19
|
s.require_paths = ["lib"]
|
21
20
|
s.rubyforge_project = %q{ulla}
|
22
|
-
s.rubygems_version = %q{1.3.
|
21
|
+
s.rubygems_version = %q{1.3.4}
|
23
22
|
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/
|
23
|
+
s.test_files = ["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"]
|
25
24
|
|
26
25
|
if s.respond_to? :specification_version then
|
27
26
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
28
|
-
s.specification_version =
|
27
|
+
s.specification_version = 3
|
29
28
|
|
30
29
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
31
30
|
s.add_runtime_dependency(%q<narray>, [">= 0.5.9.5"])
|
32
31
|
s.add_runtime_dependency(%q<bio>, [">= 1.2.1"])
|
33
32
|
s.add_runtime_dependency(%q<facets>, [">= 2.4.5"])
|
34
33
|
s.add_runtime_dependency(%q<rmagick>, [">= 2.9.1"])
|
35
|
-
s.add_development_dependency(%q<newgem>, [">= 1.
|
34
|
+
s.add_development_dependency(%q<newgem>, [">= 1.4.1"])
|
36
35
|
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
37
36
|
else
|
38
37
|
s.add_dependency(%q<narray>, [">= 0.5.9.5"])
|
39
38
|
s.add_dependency(%q<bio>, [">= 1.2.1"])
|
40
39
|
s.add_dependency(%q<facets>, [">= 2.4.5"])
|
41
40
|
s.add_dependency(%q<rmagick>, [">= 2.9.1"])
|
42
|
-
s.add_dependency(%q<newgem>, [">= 1.
|
41
|
+
s.add_dependency(%q<newgem>, [">= 1.4.1"])
|
43
42
|
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
44
43
|
end
|
45
44
|
else
|
@@ -47,7 +46,7 @@ Gem::Specification.new do |s|
|
|
47
46
|
s.add_dependency(%q<bio>, [">= 1.2.1"])
|
48
47
|
s.add_dependency(%q<facets>, [">= 2.4.5"])
|
49
48
|
s.add_dependency(%q<rmagick>, [">= 2.9.1"])
|
50
|
-
s.add_dependency(%q<newgem>, [">= 1.
|
49
|
+
s.add_dependency(%q<newgem>, [">= 1.4.1"])
|
51
50
|
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
52
51
|
end
|
53
52
|
end
|
data/website/index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Refresh" content="5; URL=http://github.com/semin/ulla">
|
6
6
|
<title>
|
7
|
-
|
7
|
+
Ulla: a program for calculating environment-specific substitution tables
|
8
8
|
</title>
|
9
9
|
</head>
|
10
10
|
<body>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ulla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.8
|
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-
|
12
|
+
date: 2009-07-21 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -52,16 +52,6 @@ dependencies:
|
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: 2.9.1
|
54
54
|
version:
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: newgem
|
57
|
-
type: :development
|
58
|
-
version_requirement:
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 1.4.1
|
64
|
-
version:
|
65
55
|
- !ruby/object:Gem::Dependency
|
66
56
|
name: hoe
|
67
57
|
type: :development
|
@@ -70,7 +60,7 @@ dependencies:
|
|
70
60
|
requirements:
|
71
61
|
- - ">="
|
72
62
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
63
|
+
version: 2.3.2
|
74
64
|
version:
|
75
65
|
description: "'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."
|
76
66
|
email:
|
@@ -83,10 +73,8 @@ extra_rdoc_files:
|
|
83
73
|
- History.txt
|
84
74
|
- Manifest.txt
|
85
75
|
- PostInstall.txt
|
86
|
-
- README.rdoc
|
87
76
|
- website/index.txt
|
88
77
|
files:
|
89
|
-
- .autotest
|
90
78
|
- History.txt
|
91
79
|
- Manifest.txt
|
92
80
|
- PostInstall.txt
|
@@ -150,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
138
|
requirements: []
|
151
139
|
|
152
140
|
rubyforge_project: ulla
|
153
|
-
rubygems_version: 1.3.
|
141
|
+
rubygems_version: 1.3.4
|
154
142
|
signing_key:
|
155
143
|
specification_version: 3
|
156
144
|
summary: "'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."
|