egor 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt ADDED
@@ -0,0 +1,4 @@
1
+ == 0.0.1 2008-11-07
2
+
3
+ * 1 major enhancement:
4
+ * Initial release
data/Manifest.txt ADDED
@@ -0,0 +1,32 @@
1
+ History.txt
2
+ Manifest.txt
3
+ PostInstall.txt
4
+ README.rdoc
5
+ Rakefile
6
+ bin/egor
7
+ config/website.yml
8
+ config/website.yml.sample
9
+ egor.gemspec
10
+ lib/egor.rb
11
+ lib/egor/cli.rb
12
+ lib/enumerable_extensions.rb
13
+ lib/environment.rb
14
+ lib/environment_feature.rb
15
+ lib/math_extensions.rb
16
+ lib/narray_extensions.rb
17
+ lib/nmatrix_extensions.rb
18
+ script/console
19
+ script/destroy
20
+ script/generate
21
+ script/txt2html
22
+ test/test_egor.rb
23
+ test/test_egor_cli.rb
24
+ test/test_enumerable_extensions.rb
25
+ test/test_environment_feature.rb
26
+ test/test_helper.rb
27
+ test/test_nmatrix_extensions.rb
28
+ website/index.html
29
+ website/index.txt
30
+ website/javascripts/rounded_corners_lite.inc.js
31
+ website/stylesheets/screen.css
32
+ website/template.html.erb
data/PostInstall.txt ADDED
@@ -0,0 +1,5 @@
1
+ HELP/OPTIONS: egor -h
2
+
3
+ For more information on egor, see http://egor.rubyforge.org
4
+
5
+
data/README.rdoc ADDED
@@ -0,0 +1,88 @@
1
+ = egor
2
+
3
+ * http://egor.rubyforge.org
4
+
5
+ == DESCRIPTION:
6
+
7
+ egor: Esst GeneratOR, a program for calculating environment-specific substitution tables
8
+
9
+ == FEATURES/PROBLEMS:
10
+
11
+ * No more segmentation fault
12
+ * Full smoothing supported
13
+ * Infinite number of environment features can be handled (in theory)
14
+
15
+ == BASIC USAGE:
16
+
17
+ $ egor -l TEMLIST-file -c classdef.dat
18
+ or
19
+ $ egor -f TEM-file -c classdef.dat
20
+
21
+ == OPTIONS:
22
+ --tem-file (-f) STRING: a tem file
23
+ --tem-list (-l) STRING: a list for tem files
24
+ --classdef (-c) STRING: a file for the defintion of environments (default: 'classdef.dat')
25
+ --outfile (-o) STRING: output filename ("allmat.dat" if not specified)
26
+ --weight (-w) INTEGER: clustering level (PID) for the BLOSUM-like weighting (not supported yet)
27
+ --noweight: calculate substitution counts with no weights (default)
28
+ --smooth (-s) INTEGER:
29
+ 0 for parial smoothing (default)
30
+ 1 for full smoothing
31
+ --nosmooth: perform no smoothing operation
32
+ --cys (-y) INTEGER: (!!!not implemented yet!!!)
33
+ 0 for using C and J only for structure
34
+ 1 for both structure and sequence (default)
35
+ --output INTEGER:
36
+ 0 for raw counts (no-smoothing performed)
37
+ 1 for probabilities
38
+ 2 for log-odds (default)
39
+ --scale INTEGER: log-odds matrices in 1/n bit units (default 3)
40
+ --sigma DOUBLE: change the sigma value for smoothing (default 5)
41
+ --add DOUBLE: add this value to raw counts when deriving log-odds without smoothing (default 1/#classes)
42
+ --penv: use environment-dependent frequencies for log-odds calculation (default false) (!!!not implemented yet!!!)
43
+ --pidmin DOUBLE: count substitutions only for pairs with PID equal to or greater than this value (default none)
44
+ --pidmax DOUBLE: count substitutions only for pairs with PID smaller than this value (default none)
45
+ --verbose (-v) INTEGER
46
+ 0 for ERROR level (default)
47
+ 1 for WARN or above level
48
+ 2 for INFO or above level
49
+ 3 for DEBUG or above level
50
+ --version: print version
51
+ --help (-h): show help
52
+
53
+ == REQUIREMENTS:
54
+
55
+ * ruby 1.8.6 or above (http://www.ruby-lang.org)
56
+ * rubygems 1.2.0 or above (http://rubyforge.org/projects/rubygems/)
57
+ * narray (http://narray.rubyforge.org/)
58
+ * facets (http://facets.rubyforge.org/)
59
+ * bio (http://bioruby.open-bio.org/)
60
+
61
+ == INSTALL:
62
+
63
+ $ sudo gem install egor
64
+
65
+ == LICENSE:
66
+
67
+ (The MIT License)
68
+
69
+ Copyright (c) 2008 Semin Lee
70
+
71
+ Permission is hereby granted, free of charge, to any person obtaining
72
+ a copy of this software and associated documentation files (the
73
+ 'Software'), to deal in the Software without restriction, including
74
+ without limitation the rights to use, copy, modify, merge, publish,
75
+ distribute, sublicense, and/or sell copies of the Software, and to
76
+ permit persons to whom the Software is furnished to do so, subject to
77
+ the following conditions:
78
+
79
+ The above copyright notice and this permission notice shall be
80
+ included in all copies or substantial portions of the Software.
81
+
82
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
83
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
84
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
85
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
86
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
87
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
88
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,32 @@
1
+ %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
2
+ require File.dirname(__FILE__) + '/lib/egor'
3
+
4
+ # Generate all the Rake tasks
5
+ # Run 'rake -T' to see list of generated tasks (from gem root directory)
6
+ $hoe = Hoe.new('egor', Egor::VERSION) do |p|
7
+ p.developer('Semin Lee', 'seminlee@gmail.com')
8
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
9
+ p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
10
+ p.rubyforge_name = p.name # TODO this is default value
11
+ p.extra_deps = [
12
+ ['narray','>= 0.5.9.5'],
13
+ ['bio', '>= 1.2.1'],
14
+ ['facets','>= 2.4.5'],
15
+ ['simple_memoize', '>= 1.0.0'],
16
+ ]
17
+
18
+ p.extra_dev_deps = [
19
+ ['newgem', ">= #{::Newgem::VERSION}"]
20
+ ]
21
+
22
+ p.clean_globs |= %w[**/.DS_Store tmp *.log]
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
+ end
27
+
28
+ require 'newgem/tasks' # load /tasks/*.rake
29
+ 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/bin/egor ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Created on 2008-11-7.
4
+ # Copyright (c) 2008. All rights reserved.
5
+
6
+ require File.expand_path(File.dirname(__FILE__) + "/../lib/egor")
7
+
8
+ require "egor/cli"
9
+
10
+ Egor::CLI.execute(ARGV)
@@ -0,0 +1,2 @@
1
+ host: semin@rubyforge.org
2
+ remote_dir: /var/www/gforge-projects/egor
@@ -0,0 +1,2 @@
1
+ host: unknown@rubyforge.org
2
+ remote_dir: /var/www/gforge-projects/egor
data/egor.gemspec ADDED
@@ -0,0 +1,53 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{egor}
5
+ s.version = "0.0.1"
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{2008-11-10}
10
+ s.default_executable = %q{egor}
11
+ s.description = %q{egor: Esst GeneratOR, a program for calculating environment-specific substitution tables}
12
+ s.email = ["seminlee@gmail.com"]
13
+ s.executables = ["egor"]
14
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "website/index.txt"]
15
+ s.files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "bin/egor", "config/website.yml", "config/website.yml.sample", "egor.gemspec", "lib/egor.rb", "lib/egor/cli.rb", "lib/enumerable_extensions.rb", "lib/environment.rb", "lib/environment_feature.rb", "lib/math_extensions.rb", "lib/narray_extensions.rb", "lib/nmatrix_extensions.rb", "script/console", "script/destroy", "script/generate", "script/txt2html", "test/test_egor.rb", "test/test_egor_cli.rb", "test/test_enumerable_extensions.rb", "test/test_environment_feature.rb", "test/test_helper.rb", "test/test_nmatrix_extensions.rb", "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://egor.rubyforge.org}
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{egor}
22
+ s.rubygems_version = %q{1.3.1}
23
+ s.summary = %q{egor: Esst GeneratOR, a program for calculating environment-specific substitution tables}
24
+ s.test_files = ["test/test_helper.rb", "test/test_egor.rb", "test/test_enumerable_extensions.rb", "test/test_environment_feature.rb", "test/test_nmatrix_extensions.rb", "test/test_egor_cli.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<simple_memoize>, [">= 1.0.0"])
35
+ s.add_development_dependency(%q<newgem>, [">= 1.0.7"])
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<simple_memoize>, [">= 1.0.0"])
42
+ s.add_dependency(%q<newgem>, [">= 1.0.7"])
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<simple_memoize>, [">= 1.0.0"])
50
+ s.add_dependency(%q<newgem>, [">= 1.0.7"])
51
+ s.add_dependency(%q<hoe>, [">= 1.8.0"])
52
+ end
53
+ end