goactive 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/MIT-LICENSE +21 -0
  2. data/README +73 -0
  3. data/app/models/assoc_rel.rb +6 -0
  4. data/app/models/association.rb +20 -0
  5. data/app/models/association_qualifier.rb +5 -0
  6. data/app/models/db.rb +4 -0
  7. data/app/models/dbxref.rb +38 -0
  8. data/app/models/evidence.rb +7 -0
  9. data/app/models/evidence_dbxref.rb +5 -0
  10. data/app/models/gene_product.rb +12 -0
  11. data/app/models/gene_product_count.rb +4 -0
  12. data/app/models/gene_product_property.rb +4 -0
  13. data/app/models/gene_product_seq.rb +5 -0
  14. data/app/models/gene_product_synonym.rb +4 -0
  15. data/app/models/graph_path.rb +6 -0
  16. data/app/models/graph_path2term.rb +5 -0
  17. data/app/models/instance_data.rb +3 -0
  18. data/app/models/seq.rb +9 -0
  19. data/app/models/seq_dbxref.rb +5 -0
  20. data/app/models/seq_property.rb +4 -0
  21. data/app/models/source_audit.rb +3 -0
  22. data/app/models/species.rb +10 -0
  23. data/app/models/term.rb +46 -0
  24. data/app/models/term2term.rb +6 -0
  25. data/app/models/term_audit.rb +4 -0
  26. data/app/models/term_dbxref.rb +5 -0
  27. data/app/models/term_definition.rb +5 -0
  28. data/app/models/term_property.rb +4 -0
  29. data/app/models/term_subset.rb +5 -0
  30. data/app/models/term_synonym.rb +5 -0
  31. data/lib/goactive.rb +6 -0
  32. data/test/fixtures/association.yml +0 -0
  33. data/test/fixtures/association_qualifier.yml +0 -0
  34. data/test/fixtures/db.yml +0 -0
  35. data/test/fixtures/dbxref.yml +0 -0
  36. data/test/fixtures/evidence.yml +0 -0
  37. data/test/fixtures/evidence_dbxref.yml +0 -0
  38. data/test/fixtures/gene_product.yml +0 -0
  39. data/test/fixtures/gene_product_count.yml +0 -0
  40. data/test/fixtures/gene_product_property.yml +0 -0
  41. data/test/fixtures/gene_product_seq.yml +0 -0
  42. data/test/fixtures/gene_product_synonym.yml +0 -0
  43. data/test/fixtures/graph_path.yml +0 -0
  44. data/test/fixtures/graph_path2term.yml +0 -0
  45. data/test/fixtures/instance_data.yml +0 -0
  46. data/test/fixtures/seq.yml +0 -0
  47. data/test/fixtures/seq_dbxref.yml +0 -0
  48. data/test/fixtures/seq_property.yml +0 -0
  49. data/test/fixtures/source_audit.yml +0 -0
  50. data/test/fixtures/species.yml +0 -0
  51. data/test/fixtures/term.yml +0 -0
  52. data/test/fixtures/term2term.yml +0 -0
  53. data/test/fixtures/term_audit.yml +0 -0
  54. data/test/fixtures/term_dbxref.yml +0 -0
  55. data/test/fixtures/term_definition.yml +0 -0
  56. data/test/fixtures/term_property.yml +0 -0
  57. data/test/fixtures/term_subset.yml +0 -0
  58. data/test/fixtures/term_synonym.yml +0 -0
  59. data/test/goactive_test.rb +8 -0
  60. data/test/goactive_test_helper.rb +5 -0
  61. data/test/goactive_test_suite.rb +4 -0
  62. data/test/units/assoc_rel_test.rb +10 -0
  63. data/test/units/association_qualifier_test.rb +10 -0
  64. data/test/units/association_test.rb +10 -0
  65. data/test/units/db_test.rb +10 -0
  66. data/test/units/dbxref_test.rb +10 -0
  67. data/test/units/evidence_dbxref_test.rb +10 -0
  68. data/test/units/evidence_test.rb +10 -0
  69. data/test/units/gene_product_count_test.rb +10 -0
  70. data/test/units/gene_product_property_test.rb +10 -0
  71. data/test/units/gene_product_seq_test.rb +10 -0
  72. data/test/units/gene_product_synonym_test.rb +10 -0
  73. data/test/units/gene_product_test.rb +10 -0
  74. data/test/units/graph_path2term_test.rb +10 -0
  75. data/test/units/graph_path_test.rb +10 -0
  76. data/test/units/instance_data_test.rb +11 -0
  77. data/test/units/seq_dbxref_test.rb +10 -0
  78. data/test/units/seq_property_test.rb +10 -0
  79. data/test/units/seq_test.rb +10 -0
  80. data/test/units/source_audit_test.rb +10 -0
  81. data/test/units/species_test.rb +10 -0
  82. data/test/units/term2term_test.rb +10 -0
  83. data/test/units/term_audit_test.rb +10 -0
  84. data/test/units/term_dbxref_test.rb +10 -0
  85. data/test/units/term_definition_test.rb +10 -0
  86. data/test/units/term_property_test.rb +10 -0
  87. data/test/units/term_subset_test.rb +10 -0
  88. data/test/units/term_synonym_test.rb +10 -0
  89. data/test/units/term_test.rb +10 -0
  90. metadata +146 -0
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2006-2007, Regents of the University of Colorado.
2
+ Developer:: Simon Chiang, Biomolecular Structure Program
3
+ Support:: UCHSC School of Medicine Deans Academic Enrichment Fund
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
6
+ software and associated documentation files (the "Software"), to deal in the Software
7
+ without restriction, including without limitation the rights to use, copy, modify, merge,
8
+ publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
9
+ to whom the Software is furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or
12
+ substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21
+ OTHER DEALINGS IN THE SOFTWARE.
data/README ADDED
@@ -0,0 +1,73 @@
1
+ = GOActive
2
+
3
+ Gene Ontology ActiveRecord models.
4
+
5
+ == Description
6
+
7
+ GOActive is a gem/rails plugin containing ActiveRecord models for the Gene Ontology (GO) database
8
+ and migrations to assist in setting up a local version of GO. GOActive is a part of the
9
+ BioActive[http://rubyforge.org/projects/bioactive] project.
10
+
11
+ == Features/Problems
12
+
13
+ Currently the GOActive models have only been used in one tiny application. As such, very little
14
+ work has gone into developing the models beyond defining obvious associations in the
15
+ database. Nonetheless, the basic associations are numerous so GOActive is a good starting point
16
+ for new ruby/rails projects that need them.
17
+
18
+ If you find your work improves these models, please do get in contact with me and pass your
19
+ development back into the community. Additionally, if you have models for another biological
20
+ database, see the BioActive[http://rubyforge.org/projects/bioactive] project on
21
+ RubyForge[http://rubyforge.org] for a nice place to share them.
22
+
23
+ == Installation
24
+
25
+ GOActive can be installed as a gem or as a rails plugin.
26
+
27
+ === For the gem:
28
+
29
+ % gem install goactive
30
+
31
+ If you don't have the activerecord gem, you'll be prompted to install dependencies. Then in
32
+ your scripts:
33
+
34
+ # load the gem
35
+ require 'goactive'
36
+
37
+ # create a connection to your GO database
38
+ ActiveRecord....
39
+
40
+ # now use the models as you please
41
+ dbxref = Dbxref.find :first, :conditions => ["xref_key = ? and xref_dbname = ?", "", "Uniprot"]
42
+ dbxref.gene_product.associated_terms.first.name # =>
43
+
44
+ === For the plugin:
45
+
46
+ The plugin is most easily utilized by first installing the {Rails Engines}[http://rails-engines.org/] plugin.
47
+ Last I checked all you need to do is this (from your rails project of course):
48
+
49
+ % script/plugin install http://svn.rails-engines.org/plugins/engines
50
+
51
+ Check their website for details if this doesn't work. Installing GOActive is similar:
52
+
53
+ % script/plugin install svn://rubyforge.org/var/svn/bioactive/goactive
54
+
55
+ Note: The goactive install command requires you have svn installed. Without it you'll get no response
56
+ or something like 'Plugin not found'. On Windows, even if you have a Subversion client like
57
+ TortoiseSVN[http://tortoisesvn.tigris.org/], svn is often not available. Use whatever client you have to
58
+ manually checkout the files from 'svn://rubyforge...' into your plugins directory.
59
+
60
+ Now you have the plugin which will be, like all plugins, automatically discovered by your application.
61
+ Unless you do some fancy connection-magic, you'll need to install and run migrations to setup the
62
+ GO database on your computer.
63
+
64
+ % script/generate plugin_migration
65
+ % rake db:migrate
66
+
67
+ == License
68
+
69
+ Copyright (c) 2006-2007, Regents of the University of Colorado.
70
+ Developer:: Simon Chiang, Biomolecular Structure Program
71
+ Support:: UCHSC School of Medicine Deans Academic Enrichment Fund
72
+ Licence:: MIT-Style
73
+
@@ -0,0 +1,6 @@
1
+ class AssocRel < ActiveRecord::Base
2
+ set_table_name "assoc_rel"
3
+ belongs_to :from, :class_name => "Association", :foreign_key => "from_id"
4
+ belongs_to :to, :class_name => "Association", :foreign_key => "to_id"
5
+ belongs_to :relationship_type, :class_name => "Term", :foreign_key => "term_id"
6
+ end
@@ -0,0 +1,20 @@
1
+ class Association < ActiveRecord::Base
2
+ set_table_name "association"
3
+ belongs_to :term
4
+ belongs_to :gene_product
5
+ belongs_to :db, :foreign_key => "source_db_id"
6
+ has_many :association_qualifiers
7
+ has_many :qualifiers, :through => :association_qualifiers
8
+ has_many :evidences
9
+
10
+ has_and_belongs_to_many :associations,
11
+ :class_name => "Association",
12
+ :join_table => "assoc_rel",
13
+ :foreign_key => "from_id",
14
+ :association_foreign_key => "to_id"
15
+ has_and_belongs_to_many :reverse_associations,
16
+ :class_name => "Association",
17
+ :join_table => "assoc_rel",
18
+ :foreign_key => "to_id",
19
+ :association_foreign_key => "from_id"
20
+ end
@@ -0,0 +1,5 @@
1
+ class AssociationQualifier < ActiveRecord::Base
2
+ set_table_name "association_qualifier"
3
+ belongs_to :association
4
+ belongs_to :qualifier, :class_name => 'Term', :foreign_key => 'term_id'
5
+ end
@@ -0,0 +1,4 @@
1
+ class Db < ActiveRecord::Base
2
+ set_table_name "db"
3
+ has_many :associations, :foreign_key => "source_db_id"
4
+ end
@@ -0,0 +1,38 @@
1
+ class Dbxref < ActiveRecord::Base
2
+ set_table_name "dbxref"
3
+ has_many :evidence
4
+
5
+ # confusing name...
6
+ has_many :evidence_dbxrefs
7
+ has_many :evidences, :through => :evidence_dbxrefs
8
+
9
+ # apparently a has_one relationship, as per the 'unique' flag on the field in the database schema
10
+ has_one :gene_product
11
+ has_many :seq_dbxrefs
12
+ has_many :seqs, :through => :seq_dbxrefs
13
+ has_many :term_dbxrefs
14
+ has_many :terms, :through => :term_dbxrefs
15
+ has_many :term_definitions
16
+
17
+ def associated_terms=(input)
18
+ @associated_terms = input
19
+ end
20
+
21
+ def associated_terms
22
+ unless @associated_terms
23
+ @associated_terms = if gene_product.nil?
24
+ []
25
+ else
26
+ term_ids = gene_product.associations.collect {|a| a.term_id}.uniq
27
+
28
+ # selecting the graph paths in this way is MUCH quicker than using
29
+ # GraphPath.find because it doesn't instantiate GraphPath objects
30
+ associated_ids = GraphPath.connection.select_all(%Q{select term1_id from #{GraphPath.table_name} where term2_id in (#{term_ids.join(',')})})
31
+ associated_ids = associated_ids.collect {|gp| gp["term1_id"] }.uniq
32
+
33
+ Term.find(:all, :conditions => ["id in (?)", associated_ids])
34
+ end
35
+ end
36
+ @associated_terms
37
+ end
38
+ end
@@ -0,0 +1,7 @@
1
+ class Evidence < ActiveRecord::Base
2
+ set_table_name "evidence"
3
+ belongs_to :association
4
+ belongs_to :dbxref
5
+ has_many :evidence_dbxrefs
6
+ has_many :dbxrefs, :through => :evidence_dbxrefs
7
+ end
@@ -0,0 +1,5 @@
1
+ class EvidenceDbxref < ActiveRecord::Base
2
+ set_table_name "evidence_dbxref"
3
+ belongs_to :evidence
4
+ belongs_to :dbxref
5
+ end
@@ -0,0 +1,12 @@
1
+ class GeneProduct < ActiveRecord::Base
2
+ set_table_name "gene_product"
3
+ has_many :associations
4
+ belongs_to :dbxref
5
+ belongs_to :species
6
+ belongs_to :secondary_species, :class_name => "Species", :foreign_key => "secondary_species_id"
7
+ belongs_to :type, :class_name => "Term", :foreign_key => "type_id"
8
+ has_many :properties, :class_name => "GeneProductProperty"
9
+ has_many :gene_product_seqs
10
+ has_many :sequences, :through => :gene_product_seqs
11
+ has_many :synonyms, :class_name => "GeneProductSynonym"
12
+ end
@@ -0,0 +1,4 @@
1
+ class GeneProductCount < ActiveRecord::Base
2
+ set_table_name "gene_product_count"
3
+ belongs_to :term
4
+ end
@@ -0,0 +1,4 @@
1
+ class GeneProductProperty < ActiveRecord::Base
2
+ set_table_name "gene_product_property"
3
+ belongs_to :gene_product
4
+ end
@@ -0,0 +1,5 @@
1
+ class GeneProductSeq < ActiveRecord::Base
2
+ set_table_name "gene_product_seq"
3
+ belongs_to :gene, :class_name => 'GeneProduct', :foreign_key => 'gene_product_id'
4
+ belongs_to :seq
5
+ end
@@ -0,0 +1,4 @@
1
+ class GeneProductSynonym < ActiveRecord::Base
2
+ set_table_name "gene_product_synonym"
3
+ belongs_to :gene_product
4
+ end
@@ -0,0 +1,6 @@
1
+ class GraphPath < ActiveRecord::Base
2
+ set_table_name "graph_path"
3
+ belongs_to :term1, :class_name => 'Term', :foreign_key => :term1_id
4
+ belongs_to :term2, :class_name => 'Term', :foreign_key => :term2_id
5
+ has_many :graph_path2terms
6
+ end
@@ -0,0 +1,5 @@
1
+ class GraphPath2term < ActiveRecord::Base
2
+ set_table_name "graph_path2term"
3
+ belongs_to :graph_path
4
+ belongs_to :term
5
+ end
@@ -0,0 +1,3 @@
1
+ class InstanceData < ActiveRecord::Base
2
+ set_table_name "instance_data"
3
+ end
@@ -0,0 +1,9 @@
1
+ class Seq < ActiveRecord::Base
2
+ set_table_name "seq"
3
+ has_many :gene_product_seqs
4
+ has_many :genes, :through => :gene_product_seqs
5
+ #belongs_to :display what does display id refer to??
6
+ has_many :seq_dbxrefs
7
+ has_many :dbxrefs, :through => :seq_dbxrefs
8
+ has_many :properties, :class_name => 'SeqProperty'
9
+ end
@@ -0,0 +1,5 @@
1
+ class SeqDbxref < ActiveRecord::Base
2
+ set_table_name "seq_dbxref"
3
+ belongs_to :seq
4
+ belongs_to :dbxref
5
+ end
@@ -0,0 +1,4 @@
1
+ class SeqProperty < ActiveRecord::Base
2
+ set_table_name "seq_property"
3
+ belongs_to :seq
4
+ end
@@ -0,0 +1,3 @@
1
+ class SourceAudit < ActiveRecord::Base
2
+ set_table_name "source_audit"
3
+ end
@@ -0,0 +1,10 @@
1
+ class Species < ActiveRecord::Base
2
+ set_table_name "species"
3
+ has_many :gene_products
4
+
5
+ # kind of misleading as a name?
6
+ has_many :secondary_gene_products, :class_name => "GeneProduct", :foreign_key => "secondary_species_id"
7
+
8
+ # Still not sure what ncbi_taxa_id refers to...
9
+ #belongs_to :ncbi_taxa
10
+ end
@@ -0,0 +1,46 @@
1
+ class Term < ActiveRecord::Base
2
+ set_table_name "term"
3
+ has_many :associations
4
+ #has_many :association_relationships
5
+ has_many :association_qualifiers
6
+ #has_many :associations, :through => :association_qualifiers
7
+ has_many :gene_products, :foreign_key => 'type_id'
8
+ has_many :gene_product_counts
9
+
10
+ # graph path terms
11
+ has_and_belongs_to_many :graph_path_children,
12
+ :class_name => "Term",
13
+ :join_table => "graph_path",
14
+ :foreign_key => "term1_id",
15
+ :association_foreign_key => "term2_id"
16
+ has_and_belongs_to_many :graph_path_parents,
17
+ :class_name => "Term",
18
+ :join_table => "graph_path",
19
+ :foreign_key => "term2_id",
20
+ :association_foreign_key => "term1_id"
21
+
22
+ has_many :graph_path2terms
23
+
24
+ # term2term relationships:
25
+ #has_many :term2term_relationships
26
+ has_and_belongs_to_many :children,
27
+ :class_name => "Term",
28
+ :join_table => "term2term",
29
+ :foreign_key => "term1_id",
30
+ :association_foreign_key => "term2_id"
31
+ has_and_belongs_to_many :parents,
32
+ :class_name => "Term",
33
+ :join_table => "term2term",
34
+ :foreign_key => "term2_id",
35
+ :association_foreign_key => "term1_id"
36
+
37
+ has_many :audits, :class_name => 'TermAudit'
38
+ has_many :term_dbxrefs
39
+ has_many :dbxrefs, :through => :term_dbxrefs
40
+ has_many :definitions, :class_name => 'TermDefinition'
41
+ has_many :properties, :class_name => 'TermProperty'
42
+ has_many :subsets, :class_name => 'TermSubset'
43
+ # has_many :subset_members, :class_name => 'TermSubset', :foreign_key => 'subset_id'
44
+ has_many :synonyms, :class_name => 'TermSynonym'
45
+ #has_many :synonym_types
46
+ end
@@ -0,0 +1,6 @@
1
+ class Term2term < ActiveRecord::Base
2
+ set_table_name "term2term"
3
+ belongs_to :relationship, :class_name => 'Term', :foreign_key => 'relationship_type_id'
4
+ belongs_to :parent, :class_name => 'Term', :foreign_key => 'term1_id'
5
+ belongs_to :child, :class_name => 'Term', :foreign_key => 'term2_id'
6
+ end
@@ -0,0 +1,4 @@
1
+ class TermAudit < ActiveRecord::Base
2
+ set_table_name "term_audit"
3
+ belongs_to :term
4
+ end
@@ -0,0 +1,5 @@
1
+ class TermDbxref < ActiveRecord::Base
2
+ set_table_name "term_dbxref"
3
+ belongs_to :term
4
+ belongs_to :dbxref
5
+ end
@@ -0,0 +1,5 @@
1
+ class TermDefinition < ActiveRecord::Base
2
+ set_table_name "term_definition"
3
+ belongs_to :term
4
+ belongs_to :dbxref
5
+ end
@@ -0,0 +1,4 @@
1
+ class TermProperty < ActiveRecord::Base
2
+ set_table_name "term_property"
3
+ belongs_to :term
4
+ end
@@ -0,0 +1,5 @@
1
+ class TermSubset < ActiveRecord::Base
2
+ set_table_name "term_subset"
3
+ belongs_to :term
4
+ belongs_to :subset, :class_name => 'Term'
5
+ end
@@ -0,0 +1,5 @@
1
+ class TermSynonym < ActiveRecord::Base
2
+ set_table_name "term_synonym"
3
+ belongs_to :term
4
+ belongs_to :synonym_type, :class_name => 'Term', :foreign_key => 'synonym_type_id'
5
+ end
@@ -0,0 +1,6 @@
1
+ # GOActive
2
+ require 'active_record'
3
+
4
+ Dir.glob(File.dirname(__FILE__) + "/../app/models/*.rb") do |file|
5
+ require file
6
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,8 @@
1
+ require 'test/unit'
2
+
3
+ class GoactiveTest < Test::Unit::TestCase
4
+ # Replace this with your real tests.
5
+ def test_this_plugin
6
+ flunk
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ require 'test/unit'
2
+ require 'gemdev'
3
+ require 'joinfix'
4
+
5
+ Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures"
@@ -0,0 +1,4 @@
1
+ $:.unshift File.join(File.dirname(__FILE__), '../lib')
2
+
3
+ ENV["ALL"] = 'true'
4
+ Dir.glob("./**/*_test.rb").each {|test| require test}
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class AssocRelTest < Test::Unit::TestCase
4
+ fixtures :assoc_rel
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class AssociationQualifierTest < Test::Unit::TestCase
4
+ fixtures :association_qualifier
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class AssociationTest < Test::Unit::TestCase
4
+ fixtures :association
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class DbTest < Test::Unit::TestCase
4
+ fixtures :db
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class DbxrefTest < Test::Unit::TestCase
4
+ fixtures :dbxref
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class EvidenceDbxrefTest < Test::Unit::TestCase
4
+ fixtures :evidence_dbxref
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class EvidenceTest < Test::Unit::TestCase
4
+ fixtures :evidence
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class GeneProductCountTest < Test::Unit::TestCase
4
+ fixtures :gene_product_count
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class GeneProductPropertyTest < Test::Unit::TestCase
4
+ fixtures :gene_product_property
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class GeneProductSeqTest < Test::Unit::TestCase
4
+ fixtures :gene_product_seq
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class GeneProductSynonymTest < Test::Unit::TestCase
4
+ fixtures :gene_product_synonym
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class GeneProductTest < Test::Unit::TestCase
4
+ fixtures :gene_product
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class GraphPath2termTest < Test::Unit::TestCase
4
+ fixtures :graph_path2term
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class GraphPathTest < Test::Unit::TestCase
4
+ fixtures :graph_path
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class InstanceDataTest < Test::Unit::TestCase
4
+ fixtures :instance_data
5
+ set_fixture_class :instance_data => "InstanceData"
6
+
7
+ # Replace this with your real tests.
8
+ def test_truth
9
+ assert true
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class SeqDbxrefTest < Test::Unit::TestCase
4
+ fixtures :seq_dbxref
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class SeqPropertyTest < Test::Unit::TestCase
4
+ fixtures :seq_property
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class SeqTest < Test::Unit::TestCase
4
+ fixtures :seq
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class SourceAuditTest < Test::Unit::TestCase
4
+ fixtures :source_audit
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class SpeciesTest < Test::Unit::TestCase
4
+ fixtures :species
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class Term2termTest < Test::Unit::TestCase
4
+ fixtures :term2term
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class TermAuditTest < Test::Unit::TestCase
4
+ fixtures :term_audit
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class TermDbxrefTest < Test::Unit::TestCase
4
+ fixtures :term_dbxref
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class TermDefinitionTest < Test::Unit::TestCase
4
+ fixtures :term_definition
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class TermPropertyTest < Test::Unit::TestCase
4
+ fixtures :term_property
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class TermSubsetTest < Test::Unit::TestCase
4
+ fixtures :term_subset
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class TermSynonymTest < Test::Unit::TestCase
4
+ fixtures :term_synonym
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require File.dirname(__FILE__) + '/../goactive_test_helper'
2
+
3
+ class TermTest < Test::Unit::TestCase
4
+ fixtures :term
5
+
6
+ # Replace this with your real tests.
7
+ def test_truth
8
+ assert true
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,146 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.2
3
+ specification_version: 1
4
+ name: goactive
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.1.0
7
+ date: 2007-05-31 00:00:00 -06:00
8
+ summary: ActiveRecord models for GO.
9
+ require_paths:
10
+ - lib
11
+ email: simon.chiang@uchsc.edu
12
+ homepage: http://rubyforge.org/projects/bioactive/
13
+ rubyforge_project:
14
+ description:
15
+ autorequire: goactive
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Simon Chiang
31
+ files:
32
+ - test/fixtures
33
+ - test/fixtures/association.yml
34
+ - test/fixtures/association_qualifier.yml
35
+ - test/fixtures/db.yml
36
+ - test/fixtures/dbxref.yml
37
+ - test/fixtures/evidence.yml
38
+ - test/fixtures/evidence_dbxref.yml
39
+ - test/fixtures/gene_product.yml
40
+ - test/fixtures/gene_product_count.yml
41
+ - test/fixtures/gene_product_property.yml
42
+ - test/fixtures/gene_product_seq.yml
43
+ - test/fixtures/gene_product_synonym.yml
44
+ - test/fixtures/graph_path.yml
45
+ - test/fixtures/graph_path2term.yml
46
+ - test/fixtures/instance_data.yml
47
+ - test/fixtures/seq.yml
48
+ - test/fixtures/seq_dbxref.yml
49
+ - test/fixtures/seq_property.yml
50
+ - test/fixtures/source_audit.yml
51
+ - test/fixtures/species.yml
52
+ - test/fixtures/term.yml
53
+ - test/fixtures/term2term.yml
54
+ - test/fixtures/term_audit.yml
55
+ - test/fixtures/term_dbxref.yml
56
+ - test/fixtures/term_definition.yml
57
+ - test/fixtures/term_property.yml
58
+ - test/fixtures/term_subset.yml
59
+ - test/fixtures/term_synonym.yml
60
+ - test/goactive_test.rb
61
+ - test/goactive_test_helper.rb
62
+ - test/goactive_test_suite.rb
63
+ - test/units
64
+ - test/units/association_qualifier_test.rb
65
+ - test/units/association_test.rb
66
+ - test/units/assoc_rel_test.rb
67
+ - test/units/dbxref_test.rb
68
+ - test/units/db_test.rb
69
+ - test/units/evidence_dbxref_test.rb
70
+ - test/units/evidence_test.rb
71
+ - test/units/gene_product_count_test.rb
72
+ - test/units/gene_product_property_test.rb
73
+ - test/units/gene_product_seq_test.rb
74
+ - test/units/gene_product_synonym_test.rb
75
+ - test/units/gene_product_test.rb
76
+ - test/units/graph_path2term_test.rb
77
+ - test/units/graph_path_test.rb
78
+ - test/units/instance_data_test.rb
79
+ - test/units/seq_dbxref_test.rb
80
+ - test/units/seq_property_test.rb
81
+ - test/units/seq_test.rb
82
+ - test/units/source_audit_test.rb
83
+ - test/units/species_test.rb
84
+ - test/units/term2term_test.rb
85
+ - test/units/term_audit_test.rb
86
+ - test/units/term_dbxref_test.rb
87
+ - test/units/term_definition_test.rb
88
+ - test/units/term_property_test.rb
89
+ - test/units/term_subset_test.rb
90
+ - test/units/term_synonym_test.rb
91
+ - test/units/term_test.rb
92
+ - lib/goactive.rb
93
+ - app/models
94
+ - app/models/association.rb
95
+ - app/models/association_qualifier.rb
96
+ - app/models/assoc_rel.rb
97
+ - app/models/db.rb
98
+ - app/models/dbxref.rb
99
+ - app/models/evidence.rb
100
+ - app/models/evidence_dbxref.rb
101
+ - app/models/gene_product.rb
102
+ - app/models/gene_product_count.rb
103
+ - app/models/gene_product_property.rb
104
+ - app/models/gene_product_seq.rb
105
+ - app/models/gene_product_synonym.rb
106
+ - app/models/graph_path.rb
107
+ - app/models/graph_path2term.rb
108
+ - app/models/instance_data.rb
109
+ - app/models/seq.rb
110
+ - app/models/seq_dbxref.rb
111
+ - app/models/seq_property.rb
112
+ - app/models/source_audit.rb
113
+ - app/models/species.rb
114
+ - app/models/term.rb
115
+ - app/models/term2term.rb
116
+ - app/models/term_audit.rb
117
+ - app/models/term_dbxref.rb
118
+ - app/models/term_definition.rb
119
+ - app/models/term_property.rb
120
+ - app/models/term_subset.rb
121
+ - app/models/term_synonym.rb
122
+ - README
123
+ - MIT-LICENSE
124
+ test_files:
125
+ - test/goactive_test_suite.rb
126
+ rdoc_options: []
127
+
128
+ extra_rdoc_files:
129
+ - README
130
+ - MIT-LICENSE
131
+ executables: []
132
+
133
+ extensions: []
134
+
135
+ requirements: []
136
+
137
+ dependencies:
138
+ - !ruby/object:Gem::Dependency
139
+ name: activerecord
140
+ version_requirement:
141
+ version_requirements: !ruby/object:Gem::Version::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: 1.15.3
146
+ version: