bio-restriction_enzyme 1.0.0

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.
Files changed (49) hide show
  1. data/.document +5 -0
  2. data/COPYING.txt +121 -0
  3. data/Gemfile +10 -0
  4. data/LICENSE.txt +7 -0
  5. data/README.rdoc +22 -0
  6. data/Rakefile +53 -0
  7. data/VERSION +1 -0
  8. data/bio-restriction_enzyme.gemspec +99 -0
  9. data/lib/bio-restriction_enzyme.rb +1 -0
  10. data/lib/bio/util/restriction_enzyme.rb +218 -0
  11. data/lib/bio/util/restriction_enzyme/analysis.rb +241 -0
  12. data/lib/bio/util/restriction_enzyme/analysis_basic.rb +209 -0
  13. data/lib/bio/util/restriction_enzyme/cut_symbol.rb +99 -0
  14. data/lib/bio/util/restriction_enzyme/double_stranded.rb +313 -0
  15. data/lib/bio/util/restriction_enzyme/double_stranded/aligned_strands.rb +127 -0
  16. data/lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair.rb +95 -0
  17. data/lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair_in_enzyme_notation.rb +30 -0
  18. data/lib/bio/util/restriction_enzyme/double_stranded/cut_locations.rb +68 -0
  19. data/lib/bio/util/restriction_enzyme/double_stranded/cut_locations_in_enzyme_notation.rb +99 -0
  20. data/lib/bio/util/restriction_enzyme/range/cut_range.rb +16 -0
  21. data/lib/bio/util/restriction_enzyme/range/cut_ranges.rb +39 -0
  22. data/lib/bio/util/restriction_enzyme/range/horizontal_cut_range.rb +59 -0
  23. data/lib/bio/util/restriction_enzyme/range/sequence_range.rb +249 -0
  24. data/lib/bio/util/restriction_enzyme/range/sequence_range/calculated_cuts.rb +236 -0
  25. data/lib/bio/util/restriction_enzyme/range/sequence_range/fragment.rb +43 -0
  26. data/lib/bio/util/restriction_enzyme/range/sequence_range/fragments.rb +33 -0
  27. data/lib/bio/util/restriction_enzyme/range/vertical_cut_range.rb +69 -0
  28. data/lib/bio/util/restriction_enzyme/single_strand.rb +193 -0
  29. data/lib/bio/util/restriction_enzyme/single_strand/cut_locations_in_enzyme_notation.rb +127 -0
  30. data/lib/bio/util/restriction_enzyme/single_strand_complement.rb +15 -0
  31. data/lib/bio/util/restriction_enzyme/string_formatting.rb +103 -0
  32. data/test/bio-restriction_enzyme/analysis/test_calculated_cuts.rb +281 -0
  33. data/test/bio-restriction_enzyme/analysis/test_cut_ranges.rb +87 -0
  34. data/test/bio-restriction_enzyme/analysis/test_sequence_range.rb +223 -0
  35. data/test/bio-restriction_enzyme/double_stranded/test_aligned_strands.rb +84 -0
  36. data/test/bio-restriction_enzyme/double_stranded/test_cut_location_pair.rb +58 -0
  37. data/test/bio-restriction_enzyme/double_stranded/test_cut_location_pair_in_enzyme_notation.rb +56 -0
  38. data/test/bio-restriction_enzyme/double_stranded/test_cut_locations.rb +35 -0
  39. data/test/bio-restriction_enzyme/double_stranded/test_cut_locations_in_enzyme_notation.rb +87 -0
  40. data/test/bio-restriction_enzyme/single_strand/test_cut_locations_in_enzyme_notation.rb +66 -0
  41. data/test/bio-restriction_enzyme/test_analysis.rb +228 -0
  42. data/test/bio-restriction_enzyme/test_cut_symbol.rb +27 -0
  43. data/test/bio-restriction_enzyme/test_double_stranded.rb +98 -0
  44. data/test/bio-restriction_enzyme/test_single_strand.rb +131 -0
  45. data/test/bio-restriction_enzyme/test_single_strand_complement.rb +131 -0
  46. data/test/bio-restriction_enzyme/test_string_formatting.rb +43 -0
  47. data/test/helper.rb +17 -0
  48. data/test/test_bio-restriction_enzyme.rb +21 -0
  49. metadata +153 -0
@@ -0,0 +1,21 @@
1
+ require 'helper'
2
+
3
+ class TestBioRestrictionEnzyme < Test::Unit::TestCase
4
+ def setup
5
+ @t = Bio::RestrictionEnzyme
6
+ end
7
+
8
+ def test_rebase
9
+ assert_equal(@t.rebase.respond_to?(:enzymes), true)
10
+ assert_not_nil @t.rebase['AarI']
11
+ assert_nil @t.rebase['blah']
12
+ end
13
+
14
+ def test_enzyme_name
15
+ assert_equal(@t.enzyme_name?('AarI'), true)
16
+ assert_equal(@t.enzyme_name?('atgc'), false)
17
+ assert_equal(@t.enzyme_name?('aari'), true)
18
+ assert_equal(@t.enzyme_name?('EcoRI'), true)
19
+ assert_equal(@t.enzyme_name?('EcoooRI'), false)
20
+ end
21
+ end
metadata ADDED
@@ -0,0 +1,153 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bio-restriction_enzyme
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Trevor Wennblom
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-09-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bio-data-restriction_enzyme
16
+ requirement: &70186296288220 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70186296288220
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &70186296284380 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70186296284380
36
+ - !ruby/object:Gem::Dependency
37
+ name: jeweler
38
+ requirement: &70186296295900 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.6.4
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70186296295900
47
+ - !ruby/object:Gem::Dependency
48
+ name: rcov
49
+ requirement: &70186296290660 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70186296290660
58
+ - !ruby/object:Gem::Dependency
59
+ name: bio
60
+ requirement: &70186296304160 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: 1.4.1
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70186296304160
69
+ description: Digests DNA based on restriction enzyme cut patterns
70
+ email: trevor@well.com
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files:
74
+ - LICENSE.txt
75
+ - README.rdoc
76
+ files:
77
+ - .document
78
+ - COPYING.txt
79
+ - Gemfile
80
+ - LICENSE.txt
81
+ - README.rdoc
82
+ - Rakefile
83
+ - VERSION
84
+ - bio-restriction_enzyme.gemspec
85
+ - lib/bio-restriction_enzyme.rb
86
+ - lib/bio/util/restriction_enzyme.rb
87
+ - lib/bio/util/restriction_enzyme/analysis.rb
88
+ - lib/bio/util/restriction_enzyme/analysis_basic.rb
89
+ - lib/bio/util/restriction_enzyme/cut_symbol.rb
90
+ - lib/bio/util/restriction_enzyme/double_stranded.rb
91
+ - lib/bio/util/restriction_enzyme/double_stranded/aligned_strands.rb
92
+ - lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair.rb
93
+ - lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair_in_enzyme_notation.rb
94
+ - lib/bio/util/restriction_enzyme/double_stranded/cut_locations.rb
95
+ - lib/bio/util/restriction_enzyme/double_stranded/cut_locations_in_enzyme_notation.rb
96
+ - lib/bio/util/restriction_enzyme/range/cut_range.rb
97
+ - lib/bio/util/restriction_enzyme/range/cut_ranges.rb
98
+ - lib/bio/util/restriction_enzyme/range/horizontal_cut_range.rb
99
+ - lib/bio/util/restriction_enzyme/range/sequence_range.rb
100
+ - lib/bio/util/restriction_enzyme/range/sequence_range/calculated_cuts.rb
101
+ - lib/bio/util/restriction_enzyme/range/sequence_range/fragment.rb
102
+ - lib/bio/util/restriction_enzyme/range/sequence_range/fragments.rb
103
+ - lib/bio/util/restriction_enzyme/range/vertical_cut_range.rb
104
+ - lib/bio/util/restriction_enzyme/single_strand.rb
105
+ - lib/bio/util/restriction_enzyme/single_strand/cut_locations_in_enzyme_notation.rb
106
+ - lib/bio/util/restriction_enzyme/single_strand_complement.rb
107
+ - lib/bio/util/restriction_enzyme/string_formatting.rb
108
+ - test/bio-restriction_enzyme/analysis/test_calculated_cuts.rb
109
+ - test/bio-restriction_enzyme/analysis/test_cut_ranges.rb
110
+ - test/bio-restriction_enzyme/analysis/test_sequence_range.rb
111
+ - test/bio-restriction_enzyme/double_stranded/test_aligned_strands.rb
112
+ - test/bio-restriction_enzyme/double_stranded/test_cut_location_pair.rb
113
+ - test/bio-restriction_enzyme/double_stranded/test_cut_location_pair_in_enzyme_notation.rb
114
+ - test/bio-restriction_enzyme/double_stranded/test_cut_locations.rb
115
+ - test/bio-restriction_enzyme/double_stranded/test_cut_locations_in_enzyme_notation.rb
116
+ - test/bio-restriction_enzyme/single_strand/test_cut_locations_in_enzyme_notation.rb
117
+ - test/bio-restriction_enzyme/test_analysis.rb
118
+ - test/bio-restriction_enzyme/test_cut_symbol.rb
119
+ - test/bio-restriction_enzyme/test_double_stranded.rb
120
+ - test/bio-restriction_enzyme/test_single_strand.rb
121
+ - test/bio-restriction_enzyme/test_single_strand_complement.rb
122
+ - test/bio-restriction_enzyme/test_string_formatting.rb
123
+ - test/helper.rb
124
+ - test/test_bio-restriction_enzyme.rb
125
+ homepage: http://github.com/trevor/bioruby-restriction_enzyme
126
+ licenses:
127
+ - CC0
128
+ post_install_message:
129
+ rdoc_options: []
130
+ require_paths:
131
+ - lib
132
+ required_ruby_version: !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ segments:
139
+ - 0
140
+ hash: 1162168444368907343
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
+ none: false
143
+ requirements:
144
+ - - ! '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ requirements: []
148
+ rubyforge_project:
149
+ rubygems_version: 1.8.10
150
+ signing_key:
151
+ specification_version: 3
152
+ summary: Digests DNA based on restriction enzyme cut patterns
153
+ test_files: []