bio-samtools 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/.document +5 -0
  2. data/Gemfile +16 -0
  3. data/Gemfile.lock +24 -0
  4. data/LICENSE.txt +702 -0
  5. data/README.rdoc +85 -0
  6. data/Rakefile +59 -0
  7. data/VERSION +1 -0
  8. data/bio-samtools.gemspec +105 -0
  9. data/ext/mkrf_conf.rb +65 -0
  10. data/lib/bio-samtools.rb +2 -0
  11. data/lib/bio/.DS_Store +0 -0
  12. data/lib/bio/db/sam.rb +325 -0
  13. data/lib/bio/db/sam/bam.rb +210 -0
  14. data/lib/bio/db/sam/external/COPYING +21 -0
  15. data/lib/bio/db/sam/external/VERSION +1 -0
  16. data/lib/bio/db/sam/faidx.rb +21 -0
  17. data/lib/bio/db/sam/library.rb +25 -0
  18. data/lib/bio/db/sam/sam.rb +84 -0
  19. data/test/basictest.rb +308 -0
  20. data/test/coverage.rb +26 -0
  21. data/test/coverage_plot.rb +28 -0
  22. data/test/feature.rb +0 -0
  23. data/test/helper.rb +18 -0
  24. data/test/samples/small/ids2.txt +1 -0
  25. data/test/samples/small/sorted.bam +0 -0
  26. data/test/samples/small/test +0 -0
  27. data/test/samples/small/test.bam +0 -0
  28. data/test/samples/small/test.fa +20 -0
  29. data/test/samples/small/test.fai +0 -0
  30. data/test/samples/small/test.sai +0 -0
  31. data/test/samples/small/test.tam +10 -0
  32. data/test/samples/small/test_chr.fasta +1000 -0
  33. data/test/samples/small/test_chr.fasta.amb +2 -0
  34. data/test/samples/small/test_chr.fasta.ann +3 -0
  35. data/test/samples/small/test_chr.fasta.bwt +0 -0
  36. data/test/samples/small/test_chr.fasta.fai +1 -0
  37. data/test/samples/small/test_chr.fasta.pac +0 -0
  38. data/test/samples/small/test_chr.fasta.rbwt +0 -0
  39. data/test/samples/small/test_chr.fasta.rpac +0 -0
  40. data/test/samples/small/test_chr.fasta.rsa +0 -0
  41. data/test/samples/small/test_chr.fasta.sa +0 -0
  42. data/test/samples/small/testu.bam +0 -0
  43. data/test/samples/small/testu.bam.bai +0 -0
  44. data/test/test_bio-samtools.rb +7 -0
  45. metadata +185 -0
@@ -0,0 +1,2 @@
1
+ 69930 1 1
2
+ 41554 50 N
@@ -0,0 +1,3 @@
1
+ 69930 1 11
2
+ 0 chr_1 (null)
3
+ 0 69930 1
@@ -0,0 +1 @@
1
+ chr_1 69930 7 70 71
Binary file
Binary file
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestBioSamtools < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,185 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bio-samtools
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.2.0
6
+ platform: ruby
7
+ authors:
8
+ - Ricardo Ramirez-Gonzalez
9
+ - Dan MacLean
10
+ - Raoul J.P. Bonnal
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+
15
+ date: 2011-05-23 00:00:00 +02:00
16
+ default_executable:
17
+ dependencies:
18
+ - !ruby/object:Gem::Dependency
19
+ name: ffi
20
+ requirement: &id001 !ruby/object:Gem::Requirement
21
+ none: false
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: "0"
26
+ type: :runtime
27
+ prerelease: false
28
+ version_requirements: *id001
29
+ - !ruby/object:Gem::Dependency
30
+ name: shoulda
31
+ requirement: &id002 !ruby/object:Gem::Requirement
32
+ none: false
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: "0"
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: *id002
40
+ - !ruby/object:Gem::Dependency
41
+ name: bundler
42
+ requirement: &id003 !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: *id003
51
+ - !ruby/object:Gem::Dependency
52
+ name: jeweler
53
+ requirement: &id004 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: "0"
59
+ type: :development
60
+ prerelease: false
61
+ version_requirements: *id004
62
+ - !ruby/object:Gem::Dependency
63
+ name: rcov
64
+ requirement: &id005 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: "0"
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: *id005
73
+ - !ruby/object:Gem::Dependency
74
+ name: bio
75
+ requirement: &id006 !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 1.4.1
81
+ type: :development
82
+ prerelease: false
83
+ version_requirements: *id006
84
+ - !ruby/object:Gem::Dependency
85
+ name: ffi
86
+ requirement: &id007 !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: "0"
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: *id007
95
+ description: |-
96
+ Binder of samtools for ruby, on the top of FFI.
97
+
98
+ This project was born from the need to add support of BAM files to
99
+ the gee_fu genome browser (http://github.com/danmaclean/gee_fu).
100
+ email: ilpuccio.febo@gmail.com
101
+ executables: []
102
+
103
+ extensions:
104
+ - ext/mkrf_conf.rb
105
+ extra_rdoc_files:
106
+ - LICENSE.txt
107
+ - README.rdoc
108
+ files:
109
+ - .document
110
+ - Gemfile
111
+ - Gemfile.lock
112
+ - LICENSE.txt
113
+ - README.rdoc
114
+ - Rakefile
115
+ - VERSION
116
+ - bio-samtools.gemspec
117
+ - ext/mkrf_conf.rb
118
+ - lib/bio-samtools.rb
119
+ - lib/bio/.DS_Store
120
+ - lib/bio/db/sam.rb
121
+ - lib/bio/db/sam/bam.rb
122
+ - lib/bio/db/sam/external/COPYING
123
+ - lib/bio/db/sam/external/VERSION
124
+ - lib/bio/db/sam/faidx.rb
125
+ - lib/bio/db/sam/library.rb
126
+ - lib/bio/db/sam/sam.rb
127
+ - test/basictest.rb
128
+ - test/coverage.rb
129
+ - test/coverage_plot.rb
130
+ - test/feature.rb
131
+ - test/helper.rb
132
+ - test/samples/small/ids2.txt
133
+ - test/samples/small/sorted.bam
134
+ - test/samples/small/test
135
+ - test/samples/small/test.bam
136
+ - test/samples/small/test.fa
137
+ - test/samples/small/test.fai
138
+ - test/samples/small/test.sai
139
+ - test/samples/small/test.tam
140
+ - test/samples/small/test_chr.fasta
141
+ - test/samples/small/test_chr.fasta.amb
142
+ - test/samples/small/test_chr.fasta.ann
143
+ - test/samples/small/test_chr.fasta.bwt
144
+ - test/samples/small/test_chr.fasta.fai
145
+ - test/samples/small/test_chr.fasta.pac
146
+ - test/samples/small/test_chr.fasta.rbwt
147
+ - test/samples/small/test_chr.fasta.rpac
148
+ - test/samples/small/test_chr.fasta.rsa
149
+ - test/samples/small/test_chr.fasta.sa
150
+ - test/samples/small/testu.bam
151
+ - test/samples/small/testu.bam.bai
152
+ - test/test_bio-samtools.rb
153
+ has_rdoc: true
154
+ homepage: http://github.com/helios/bioruby-samtools
155
+ licenses:
156
+ - MIT
157
+ post_install_message:
158
+ rdoc_options: []
159
+
160
+ require_paths:
161
+ - lib
162
+ required_ruby_version: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ hash: -2254602407450598476
168
+ segments:
169
+ - 0
170
+ version: "0"
171
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: "0"
177
+ requirements: []
178
+
179
+ rubyforge_project:
180
+ rubygems_version: 1.5.0
181
+ signing_key:
182
+ specification_version: 3
183
+ summary: Binder of samtools for ruby, on the top of FFI.
184
+ test_files: []
185
+