bio-samtools 0.6.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -2
  3. data/README.md +4 -7
  4. data/VERSION +1 -1
  5. data/bio-samtools.gemspec +47 -105
  6. data/doc/Bio.html +68 -131
  7. data/doc/Bio/DB.html +51 -111
  8. data/doc/Bio/DB/Alignment.html +135 -363
  9. data/doc/Bio/DB/Pileup.html +183 -170
  10. data/doc/Bio/DB/SAM.html +1396 -820
  11. data/doc/Bio/DB/SAM/Library.html +73 -123
  12. data/doc/Bio/DB/SAM/Tools.html +51 -273
  13. data/doc/Bio/DB/Tag.html +78 -124
  14. data/doc/Bio/DB/Vcf.html +111 -147
  15. data/doc/LICENSE_txt.html +113 -148
  16. data/doc/created.rid +9 -10
  17. data/doc/fonts.css +167 -0
  18. data/doc/fonts/Lato-Light.ttf +0 -0
  19. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  20. data/doc/fonts/Lato-Regular.ttf +0 -0
  21. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  22. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  23. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  24. data/doc/images/add.png +0 -0
  25. data/doc/images/arrow_up.png +0 -0
  26. data/doc/images/delete.png +0 -0
  27. data/doc/images/tag_blue.png +0 -0
  28. data/doc/index.html +48 -54
  29. data/doc/js/darkfish.js +9 -22
  30. data/doc/js/search.js +20 -5
  31. data/doc/js/search_index.js +1 -1
  32. data/doc/rdoc.css +255 -218
  33. data/doc/table_of_contents.html +256 -137
  34. data/ext/Rakefile +57 -0
  35. data/lib/bio-samtools.rb +7 -2
  36. data/lib/bio/BIOExtensions.rb +89 -0
  37. data/lib/bio/db/alignment.rb +59 -0
  38. data/lib/bio/db/fastadb.rb +255 -0
  39. data/lib/bio/db/pileup.rb +221 -172
  40. data/lib/bio/db/sam.rb +639 -589
  41. data/lib/bio/db/sam/{faidx.rb → faidx_old.rb} +0 -0
  42. data/lib/bio/db/vcf.rb +69 -68
  43. data/test/.gitignore +1 -0
  44. data/test/{test_basic.rb → old_test_basic.rb} +33 -1
  45. data/test/samples/small/dupes.bam +0 -0
  46. data/test/samples/small/dupes.sam +274 -0
  47. data/test/samples/small/map_for_reheader.sam +8 -0
  48. data/test/samples/small/map_to_merge1.bam +0 -0
  49. data/test/samples/small/map_to_merge1.bam.bai +0 -0
  50. data/test/samples/small/map_to_merge1.sam +8 -0
  51. data/test/samples/small/map_to_merge2.bam +0 -0
  52. data/test/samples/small/map_to_merge2.bam.bai +0 -0
  53. data/test/samples/small/map_to_merge2.sam +8 -0
  54. data/test/samples/small/no_md.sam +8 -0
  55. data/test/samples/small/test_chr.fasta.1.bt2 +0 -0
  56. data/test/samples/small/test_chr.fasta.2.bt2 +0 -0
  57. data/test/samples/small/test_chr.fasta.3.bt2 +0 -0
  58. data/test/samples/small/test_chr.fasta.4.bt2 +0 -0
  59. data/test/samples/small/test_chr.fasta.rev.1.bt2 +0 -0
  60. data/test/samples/small/test_chr.fasta.rev.2.bt2 +0 -0
  61. data/test/samples/small/test_cov.svg +273 -0
  62. data/test/samples/small/testu.bam.bai +0 -0
  63. data/test/svg +133 -0
  64. data/test/test_pileup.rb +84 -0
  65. data/test/test_sam.rb +331 -0
  66. data/test/test_vcf.rb +11 -0
  67. data/{doc → tutorial}/tutorial.html +0 -0
  68. data/{doc → tutorial}/tutorial.pdf +0 -0
  69. metadata +56 -114
  70. data/doc/Bio/DB/SAM/Tools/Bam1CoreT.html +0 -159
  71. data/doc/Bio/DB/SAM/Tools/Bam1T.html +0 -220
  72. data/doc/Bio/DB/SAM/Tools/BamHeaderT.html +0 -249
  73. data/doc/Bio/DB/SAM/Tools/BamPileup1T.html +0 -159
  74. data/doc/Bio/DB/SAM/Tools/SamfileT.html +0 -171
  75. data/doc/Bio/DB/SAM/Tools/SamfileTX.html +0 -159
  76. data/doc/Bio/DB/SAMException.html +0 -205
  77. data/doc/LibC.html +0 -155
  78. data/doc/Pileup.html +0 -571
  79. data/doc/Vcf.html +0 -473
  80. data/doc/basic_styles.css +0 -31
  81. data/doc/classes/Bio.html +0 -139
  82. data/doc/classes/Bio/DB.html +0 -137
  83. data/doc/classes/Bio/DB/Alignment.html +0 -441
  84. data/doc/classes/Bio/DB/Alignment.src/M000012.html +0 -19
  85. data/doc/classes/Bio/DB/Alignment.src/M000013.html +0 -27
  86. data/doc/classes/Bio/DB/Alignment.src/M000014.html +0 -45
  87. data/doc/classes/Bio/DB/Alignment.src/M000015.html +0 -40
  88. data/doc/classes/Bio/DB/SAM.html +0 -510
  89. data/doc/classes/Bio/DB/SAM/Library.html +0 -135
  90. data/doc/classes/Bio/DB/SAM/Library.src/M000006.html +0 -28
  91. data/doc/classes/Bio/DB/SAM/Tools.html +0 -278
  92. data/doc/classes/Bio/DB/SAM/Tools.src/M000007.html +0 -20
  93. data/doc/classes/Bio/DB/SAM/Tools/Bam1CoreT.html +0 -111
  94. data/doc/classes/Bio/DB/SAM/Tools/Bam1T.html +0 -150
  95. data/doc/classes/Bio/DB/SAM/Tools/Bam1T.src/M000010.html +0 -20
  96. data/doc/classes/Bio/DB/SAM/Tools/BamHeaderT.html +0 -169
  97. data/doc/classes/Bio/DB/SAM/Tools/BamHeaderT.src/M000008.html +0 -19
  98. data/doc/classes/Bio/DB/SAM/Tools/BamHeaderT.src/M000009.html +0 -18
  99. data/doc/classes/Bio/DB/SAM/Tools/BamPileup1T.html +0 -111
  100. data/doc/classes/Bio/DB/SAM/Tools/SamfileT.html +0 -129
  101. data/doc/classes/Bio/DB/SAM/Tools/SamfileTX.html +0 -111
  102. data/doc/classes/Bio/DB/SAMException.html +0 -140
  103. data/doc/classes/Bio/DB/SAMException.src/M000016.html +0 -18
  104. data/doc/classes/Bio/DB/Sam.src/M000017.html +0 -43
  105. data/doc/classes/Bio/DB/Sam.src/M000018.html +0 -42
  106. data/doc/classes/Bio/DB/Sam.src/M000019.html +0 -18
  107. data/doc/classes/Bio/DB/Sam.src/M000020.html +0 -22
  108. data/doc/classes/Bio/DB/Sam.src/M000021.html +0 -19
  109. data/doc/classes/Bio/DB/Sam.src/M000022.html +0 -25
  110. data/doc/classes/Bio/DB/Sam.src/M000023.html +0 -28
  111. data/doc/classes/Bio/DB/Sam.src/M000024.html +0 -28
  112. data/doc/classes/Bio/DB/Sam.src/M000025.html +0 -46
  113. data/doc/classes/Bio/DB/Sam.src/M000026.html +0 -24
  114. data/doc/classes/Bio/DB/Sam.src/M000027.html +0 -19
  115. data/doc/classes/Bio/DB/Sam.src/M000028.html +0 -24
  116. data/doc/classes/Bio/DB/Sam.src/M000029.html +0 -41
  117. data/doc/classes/Bio/DB/Sam.src/M000030.html +0 -31
  118. data/doc/classes/Bio/DB/Sam.src/M000031.html +0 -86
  119. data/doc/classes/Bio/DB/Sam.src/M000032.html +0 -34
  120. data/doc/classes/Bio/DB/Tag.html +0 -160
  121. data/doc/classes/Bio/DB/Tag.src/M000011.html +0 -21
  122. data/doc/classes/LibC.html +0 -105
  123. data/doc/classes/Pileup.html +0 -374
  124. data/doc/classes/Pileup.src/M000001.html +0 -34
  125. data/doc/classes/Pileup.src/M000002.html +0 -21
  126. data/doc/classes/Pileup.src/M000003.html +0 -21
  127. data/doc/classes/Pileup.src/M000004.html +0 -21
  128. data/doc/classes/Pileup.src/M000005.html +0 -31
  129. data/doc/files/lib/bio-samtools_rb.html +0 -109
  130. data/doc/files/lib/bio/db/sam/bam_rb.html +0 -108
  131. data/doc/files/lib/bio/db/sam/faidx_rb.html +0 -108
  132. data/doc/files/lib/bio/db/sam/library_rb.html +0 -101
  133. data/doc/files/lib/bio/db/sam/pileup_rb.html +0 -178
  134. data/doc/files/lib/bio/db/sam/sam_rb.html +0 -113
  135. data/doc/files/lib/bio/db/sam_rb.html +0 -111
  136. data/doc/fr_class_index.html +0 -43
  137. data/doc/fr_file_index.html +0 -33
  138. data/doc/fr_method_index.html +0 -58
  139. data/doc/lib/bio-samtools_rb.html +0 -115
  140. data/doc/lib/bio/db/pileup_rb.html +0 -171
  141. data/doc/lib/bio/db/sam/bam_rb.html +0 -121
  142. data/doc/lib/bio/db/sam/faidx_rb.html +0 -117
  143. data/doc/lib/bio/db/sam/library_rb.html +0 -115
  144. data/doc/lib/bio/db/sam/pileup_rb.html +0 -171
  145. data/doc/lib/bio/db/sam/sam_rb.html +0 -121
  146. data/doc/lib/bio/db/sam/vcf_rb.html +0 -124
  147. data/doc/lib/bio/db/sam_rb.html +0 -115
  148. data/doc/lib/bio/db/vcf_rb.html +0 -124
  149. data/doc/rdoc-style.css +0 -208
  150. data/lib/bio/db/sam/bam.rb +0 -210
  151. data/lib/bio/db/sam/sam.rb +0 -86
  152. data/test/samples/pipe_char/test.bam +0 -0
  153. data/test/samples/pipe_char/test.bam.bai +0 -0
  154. data/test/samples/pipe_char/test.tam +0 -10
  155. data/test/samples/pipe_char/test_chr.fasta +0 -1000
  156. data/test/samples/pipe_char/test_chr.fasta.fai +0 -1
  157. data/test/samples/small/test +0 -0
  158. data/test/samples/small/test.bam +0 -0
  159. data/test/samples/small/test.fa +0 -20
  160. data/test/samples/small/test.fai +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3abfc67e205b1963c0df6f664bace9fa5f8a890
4
- data.tar.gz: cfc0474c9c8270a014b34e0125b36df2fc85ab02
3
+ metadata.gz: f0608dfce24db2fd3c26be69e04123961209e855
4
+ data.tar.gz: b79cd69ebe66928a53ca9d45f122b1e9538e8c51
5
5
  SHA512:
6
- metadata.gz: bd34cefd2e15ad651382ade949f5e4a4e2e122958753fc18a3b245f629b3587f12e30c2af35a381bffafc89542a9e64679c80bd10122295f0ccfd6fa70570d96
7
- data.tar.gz: 331edd40752b75dbdc3924cf16966f93c70b43617fbda5edaa4e98359f797e0c9234a016d93783ec90573c6aed470d850a332a945b7d94212963ca1332e743ab
6
+ metadata.gz: 60c24c8f5288fc92004b9c96af57d3821d220e2c79cceb7b6283480ac37735e9b7af70ac3129779ac13602599e45afb81ba35480461630c3f9669f788ebd1759
7
+ data.tar.gz: 716ff9d093fc0ad485ae2dc687dca44aeaa30da77c3e38b32856c194306f5b6f01e8bffe1d5a3da81506d50633cb014bd68b814dd8b518f6559bf0f9c617b7ba
data/Gemfile CHANGED
@@ -2,9 +2,8 @@ source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
- gem "ffi"
5
+ gem "bio-svgenes", ">= 0.4.1"
6
6
  gem "bio", ">= 1.4.2"
7
- gem "systemu", ">=2.5.2"
8
7
 
9
8
  # Add dependencies to develop your gem here.
10
9
  # Include everything needed to run rake, tests, features, etc.
@@ -16,5 +15,7 @@ group :development do
16
15
  gem "jeweler"
17
16
  gem "rcov", ">=0", :platforms => :ruby_18
18
17
  gem "simplecov", ">= 0", :platforms => :ruby_19
18
+
19
19
  gem 'rdoc'
20
+ gem 'test-unit'
20
21
  end
data/README.md CHANGED
@@ -55,17 +55,14 @@ Alignments can be obtained one at a time by looping over a specified region usin
55
55
  See more detail on doc/tutorial.html or doc/tutorial.pdf for a walkthrough tutorial.
56
56
 
57
57
  ## Dependencies
58
- * FFI [http://github.com/ffi/ffi](http://github.com/ffi/ffi)
59
- * BioRuby >= 1.4.1 [https://github.com/bioruby/bioruby](https://github.com/bioruby/bioruby)
60
58
 
59
+ * BioRuby >= 1.4.3 [https://github.com/bioruby/bioruby](https://github.com/bioruby/bioruby)
60
+ * Ruby 1.9 and above.
61
61
 
62
62
  ## FAQ
63
63
  * I´m getting a **segmentation Fault**, what did I do wrong?
64
64
 
65
- [Answer] There are two known segmentation faults at the moment
66
-
67
- * When you try to load a text file as binary file
68
- * When you try to lad a binary file as a text file
65
+ [Answer] You are using an old version of bio-samtools, the current version doesn't link directly to the library.
69
66
 
70
67
  * I keep seeing this **Invalid gemspec in [some ruby gem path…]**, what is wrong?
71
68
 
@@ -85,7 +82,7 @@ See more detail on doc/tutorial.html or doc/tutorial.pdf for a walkthrough tutor
85
82
  1. Filter to the fetching algorithm (give a condition that has to be satisfied to add the alignment to the list)
86
83
 
87
84
  ### To whom do I complain?
88
- Try Ricardo dot Ramirez-Gonzalez at tgac dot ac dot uk
85
+ Try [Ricardo.Ramirez-Gonzalez@tgac.ac.uk](Ricardo.Ramirez-Gonzalez@tgac.ac.uk)
89
86
  and [dan.maclean@tsl.ac.uk](dan.maclean@tsl.ac.uk)
90
87
 
91
88
  ### Important Notes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 2.0.3
@@ -2,17 +2,17 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bio-samtools 0.6.2 ruby lib
5
+ # stub: bio-samtools 2.0.3 ruby lib
6
6
  # stub: ext/mkrf_conf.rb
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = "bio-samtools"
10
- s.version = "0.6.2"
10
+ s.version = "2.0.3"
11
11
 
12
12
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
13
13
  s.require_paths = ["lib"]
14
14
  s.authors = ["Ricardo Ramirez-Gonzalez", "Dan MacLean", "Raoul J.P. Bonnal"]
15
- s.date = "2014-02-25"
15
+ s.date = "2014-04-18"
16
16
  s.description = "Binder of samtools for ruby, on the top of FFI. \n\n This project was born from the need to add support of BAM files to \n the gee_fu genome browser (http://github.com/danmaclean/gee_fu)."
17
17
  s.email = "ilpuccio.febo@gmail.com"
18
18
  s.extensions = ["ext/mkrf_conf.rb"]
@@ -36,80 +36,19 @@ Gem::Specification.new do |s|
36
36
  "doc/Bio/DB/SAM.html",
37
37
  "doc/Bio/DB/SAM/Library.html",
38
38
  "doc/Bio/DB/SAM/Tools.html",
39
- "doc/Bio/DB/SAM/Tools/Bam1CoreT.html",
40
- "doc/Bio/DB/SAM/Tools/Bam1T.html",
41
- "doc/Bio/DB/SAM/Tools/BamHeaderT.html",
42
- "doc/Bio/DB/SAM/Tools/BamPileup1T.html",
43
- "doc/Bio/DB/SAM/Tools/SamfileT.html",
44
- "doc/Bio/DB/SAM/Tools/SamfileTX.html",
45
- "doc/Bio/DB/SAMException.html",
46
39
  "doc/Bio/DB/Tag.html",
47
40
  "doc/Bio/DB/Vcf.html",
48
41
  "doc/LICENSE_txt.html",
49
- "doc/LibC.html",
50
- "doc/Pileup.html",
51
- "doc/Vcf.html",
52
- "doc/basic_styles.css",
53
- "doc/classes/Bio.html",
54
- "doc/classes/Bio/DB.html",
55
- "doc/classes/Bio/DB/Alignment.html",
56
- "doc/classes/Bio/DB/Alignment.src/M000012.html",
57
- "doc/classes/Bio/DB/Alignment.src/M000013.html",
58
- "doc/classes/Bio/DB/Alignment.src/M000014.html",
59
- "doc/classes/Bio/DB/Alignment.src/M000015.html",
60
- "doc/classes/Bio/DB/SAM.html",
61
- "doc/classes/Bio/DB/SAM/Library.html",
62
- "doc/classes/Bio/DB/SAM/Library.src/M000006.html",
63
- "doc/classes/Bio/DB/SAM/Tools.html",
64
- "doc/classes/Bio/DB/SAM/Tools.src/M000007.html",
65
- "doc/classes/Bio/DB/SAM/Tools/Bam1CoreT.html",
66
- "doc/classes/Bio/DB/SAM/Tools/Bam1T.html",
67
- "doc/classes/Bio/DB/SAM/Tools/Bam1T.src/M000010.html",
68
- "doc/classes/Bio/DB/SAM/Tools/BamHeaderT.html",
69
- "doc/classes/Bio/DB/SAM/Tools/BamHeaderT.src/M000008.html",
70
- "doc/classes/Bio/DB/SAM/Tools/BamHeaderT.src/M000009.html",
71
- "doc/classes/Bio/DB/SAM/Tools/BamPileup1T.html",
72
- "doc/classes/Bio/DB/SAM/Tools/SamfileT.html",
73
- "doc/classes/Bio/DB/SAM/Tools/SamfileTX.html",
74
- "doc/classes/Bio/DB/SAMException.html",
75
- "doc/classes/Bio/DB/SAMException.src/M000016.html",
76
- "doc/classes/Bio/DB/Sam.src/M000017.html",
77
- "doc/classes/Bio/DB/Sam.src/M000018.html",
78
- "doc/classes/Bio/DB/Sam.src/M000019.html",
79
- "doc/classes/Bio/DB/Sam.src/M000020.html",
80
- "doc/classes/Bio/DB/Sam.src/M000021.html",
81
- "doc/classes/Bio/DB/Sam.src/M000022.html",
82
- "doc/classes/Bio/DB/Sam.src/M000023.html",
83
- "doc/classes/Bio/DB/Sam.src/M000024.html",
84
- "doc/classes/Bio/DB/Sam.src/M000025.html",
85
- "doc/classes/Bio/DB/Sam.src/M000026.html",
86
- "doc/classes/Bio/DB/Sam.src/M000027.html",
87
- "doc/classes/Bio/DB/Sam.src/M000028.html",
88
- "doc/classes/Bio/DB/Sam.src/M000029.html",
89
- "doc/classes/Bio/DB/Sam.src/M000030.html",
90
- "doc/classes/Bio/DB/Sam.src/M000031.html",
91
- "doc/classes/Bio/DB/Sam.src/M000032.html",
92
- "doc/classes/Bio/DB/Tag.html",
93
- "doc/classes/Bio/DB/Tag.src/M000011.html",
94
- "doc/classes/LibC.html",
95
- "doc/classes/Pileup.html",
96
- "doc/classes/Pileup.src/M000001.html",
97
- "doc/classes/Pileup.src/M000002.html",
98
- "doc/classes/Pileup.src/M000003.html",
99
- "doc/classes/Pileup.src/M000004.html",
100
- "doc/classes/Pileup.src/M000005.html",
101
42
  "doc/created.rid",
102
- "doc/files/lib/bio-samtools_rb.html",
103
- "doc/files/lib/bio/db/sam/bam_rb.html",
104
- "doc/files/lib/bio/db/sam/faidx_rb.html",
105
- "doc/files/lib/bio/db/sam/library_rb.html",
106
- "doc/files/lib/bio/db/sam/pileup_rb.html",
107
- "doc/files/lib/bio/db/sam/sam_rb.html",
108
- "doc/files/lib/bio/db/sam_rb.html",
109
- "doc/fr_class_index.html",
110
- "doc/fr_file_index.html",
111
- "doc/fr_method_index.html",
43
+ "doc/fonts.css",
44
+ "doc/fonts/Lato-Light.ttf",
45
+ "doc/fonts/Lato-LightItalic.ttf",
46
+ "doc/fonts/Lato-Regular.ttf",
47
+ "doc/fonts/Lato-RegularItalic.ttf",
48
+ "doc/fonts/SourceCodePro-Bold.ttf",
49
+ "doc/fonts/SourceCodePro-Regular.ttf",
112
50
  "doc/images/add.png",
51
+ "doc/images/arrow_up.png",
113
52
  "doc/images/brick.png",
114
53
  "doc/images/brick_link.png",
115
54
  "doc/images/bug.png",
@@ -140,64 +79,67 @@ Gem::Specification.new do |s|
140
79
  "doc/js/search.js",
141
80
  "doc/js/search_index.js",
142
81
  "doc/js/searcher.js",
143
- "doc/lib/bio-samtools_rb.html",
144
- "doc/lib/bio/db/pileup_rb.html",
145
- "doc/lib/bio/db/sam/bam_rb.html",
146
- "doc/lib/bio/db/sam/faidx_rb.html",
147
- "doc/lib/bio/db/sam/library_rb.html",
148
- "doc/lib/bio/db/sam/pileup_rb.html",
149
- "doc/lib/bio/db/sam/sam_rb.html",
150
- "doc/lib/bio/db/sam/vcf_rb.html",
151
- "doc/lib/bio/db/sam_rb.html",
152
- "doc/lib/bio/db/vcf_rb.html",
153
- "doc/rdoc-style.css",
154
82
  "doc/rdoc.css",
155
83
  "doc/table_of_contents.html",
156
- "doc/tutorial.html",
157
- "doc/tutorial.pdf",
158
84
  "ext/Makefile-bioruby.patch",
159
85
  "ext/Makefile-suse.patch",
86
+ "ext/Rakefile",
160
87
  "ext/mkrf_conf.rb",
161
88
  "lib/bio-samtools.rb",
162
89
  "lib/bio/.DS_Store",
90
+ "lib/bio/BIOExtensions.rb",
91
+ "lib/bio/db/alignment.rb",
92
+ "lib/bio/db/fastadb.rb",
163
93
  "lib/bio/db/pileup.rb",
164
94
  "lib/bio/db/sam.rb",
165
- "lib/bio/db/sam/bam.rb",
166
95
  "lib/bio/db/sam/external/COPYING",
167
96
  "lib/bio/db/sam/external/VERSION",
168
- "lib/bio/db/sam/faidx.rb",
97
+ "lib/bio/db/sam/faidx_old.rb",
169
98
  "lib/bio/db/sam/library.rb",
170
- "lib/bio/db/sam/sam.rb",
171
99
  "lib/bio/db/vcf.rb",
100
+ "test/.gitignore",
172
101
  "test/helper.rb",
173
- "test/samples/pipe_char/test.bam",
174
- "test/samples/pipe_char/test.bam.bai",
175
- "test/samples/pipe_char/test.tam",
176
- "test/samples/pipe_char/test_chr.fasta",
177
- "test/samples/pipe_char/test_chr.fasta.fai",
102
+ "test/old_test_basic.rb",
103
+ "test/samples/small/dupes.bam",
104
+ "test/samples/small/dupes.sam",
178
105
  "test/samples/small/ids2.txt",
106
+ "test/samples/small/map_for_reheader.sam",
107
+ "test/samples/small/map_to_merge1.bam",
108
+ "test/samples/small/map_to_merge1.bam.bai",
109
+ "test/samples/small/map_to_merge1.sam",
110
+ "test/samples/small/map_to_merge2.bam",
111
+ "test/samples/small/map_to_merge2.bam.bai",
112
+ "test/samples/small/map_to_merge2.sam",
113
+ "test/samples/small/no_md.sam",
179
114
  "test/samples/small/sorted.bam",
180
115
  "test/samples/small/sorted.bam.bai",
181
- "test/samples/small/test",
182
- "test/samples/small/test.bam",
183
- "test/samples/small/test.fa",
184
- "test/samples/small/test.fai",
185
116
  "test/samples/small/test.sai",
186
117
  "test/samples/small/test.tam",
187
118
  "test/samples/small/test_chr.fasta",
119
+ "test/samples/small/test_chr.fasta.1.bt2",
120
+ "test/samples/small/test_chr.fasta.2.bt2",
121
+ "test/samples/small/test_chr.fasta.3.bt2",
122
+ "test/samples/small/test_chr.fasta.4.bt2",
188
123
  "test/samples/small/test_chr.fasta.amb",
189
124
  "test/samples/small/test_chr.fasta.ann",
190
125
  "test/samples/small/test_chr.fasta.bwt",
191
126
  "test/samples/small/test_chr.fasta.pac",
192
127
  "test/samples/small/test_chr.fasta.rbwt",
128
+ "test/samples/small/test_chr.fasta.rev.1.bt2",
129
+ "test/samples/small/test_chr.fasta.rev.2.bt2",
193
130
  "test/samples/small/test_chr.fasta.rpac",
194
131
  "test/samples/small/test_chr.fasta.rsa",
195
132
  "test/samples/small/test_chr.fasta.sa",
133
+ "test/samples/small/test_cov.svg",
196
134
  "test/samples/small/testu.bam",
197
135
  "test/samples/small/testu.bam.bai",
198
- "test/test_basic.rb",
136
+ "test/svg",
199
137
  "test/test_bio-samtools.rb",
200
- "test/test_vcf.rb"
138
+ "test/test_pileup.rb",
139
+ "test/test_sam.rb",
140
+ "test/test_vcf.rb",
141
+ "tutorial/tutorial.html",
142
+ "tutorial/tutorial.pdf"
201
143
  ]
202
144
  s.homepage = "http://github.com/helios/bioruby-samtools"
203
145
  s.licenses = ["MIT"]
@@ -208,9 +150,8 @@ Gem::Specification.new do |s|
208
150
  s.specification_version = 4
209
151
 
210
152
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
211
- s.add_runtime_dependency(%q<ffi>, [">= 0"])
153
+ s.add_runtime_dependency(%q<bio-svgenes>, [">= 0.4.1"])
212
154
  s.add_runtime_dependency(%q<bio>, [">= 1.4.2"])
213
- s.add_runtime_dependency(%q<systemu>, [">= 2.5.2"])
214
155
  s.add_development_dependency(%q<shoulda>, [">= 0"])
215
156
  s.add_development_dependency(%q<shoulda-context>, [">= 0"])
216
157
  s.add_development_dependency(%q<shoulda-matchers>, [">= 0"])
@@ -219,10 +160,10 @@ Gem::Specification.new do |s|
219
160
  s.add_development_dependency(%q<rcov>, [">= 0"])
220
161
  s.add_development_dependency(%q<simplecov>, [">= 0"])
221
162
  s.add_development_dependency(%q<rdoc>, [">= 0"])
163
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
222
164
  else
223
- s.add_dependency(%q<ffi>, [">= 0"])
165
+ s.add_dependency(%q<bio-svgenes>, [">= 0.4.1"])
224
166
  s.add_dependency(%q<bio>, [">= 1.4.2"])
225
- s.add_dependency(%q<systemu>, [">= 2.5.2"])
226
167
  s.add_dependency(%q<shoulda>, [">= 0"])
227
168
  s.add_dependency(%q<shoulda-context>, [">= 0"])
228
169
  s.add_dependency(%q<shoulda-matchers>, [">= 0"])
@@ -231,11 +172,11 @@ Gem::Specification.new do |s|
231
172
  s.add_dependency(%q<rcov>, [">= 0"])
232
173
  s.add_dependency(%q<simplecov>, [">= 0"])
233
174
  s.add_dependency(%q<rdoc>, [">= 0"])
175
+ s.add_dependency(%q<test-unit>, [">= 0"])
234
176
  end
235
177
  else
236
- s.add_dependency(%q<ffi>, [">= 0"])
178
+ s.add_dependency(%q<bio-svgenes>, [">= 0.4.1"])
237
179
  s.add_dependency(%q<bio>, [">= 1.4.2"])
238
- s.add_dependency(%q<systemu>, [">= 2.5.2"])
239
180
  s.add_dependency(%q<shoulda>, [">= 0"])
240
181
  s.add_dependency(%q<shoulda-context>, [">= 0"])
241
182
  s.add_dependency(%q<shoulda-matchers>, [">= 0"])
@@ -244,6 +185,7 @@ Gem::Specification.new do |s|
244
185
  s.add_dependency(%q<rcov>, [">= 0"])
245
186
  s.add_dependency(%q<simplecov>, [">= 0"])
246
187
  s.add_dependency(%q<rdoc>, [">= 0"])
188
+ s.add_dependency(%q<test-unit>, [">= 0"])
247
189
  end
248
190
  end
249
191
 
@@ -2,140 +2,90 @@
2
2
 
3
3
  <html>
4
4
  <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
5
+ <meta charset="UTF-8">
6
6
 
7
7
  <title>module Bio - Pileup</title>
8
8
 
9
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
9
+ <link href="./fonts.css" rel="stylesheet">
10
+ <link href="./rdoc.css" rel="stylesheet">
10
11
 
11
12
  <script type="text/javascript">
12
13
  var rdoc_rel_prefix = "./";
13
14
  </script>
14
15
 
15
- <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
16
+ <script src="./js/jquery.js"></script>
17
+ <script src="./js/navigation.js"></script>
18
+ <script src="./js/search_index.js"></script>
19
+ <script src="./js/search.js"></script>
20
+ <script src="./js/searcher.js"></script>
21
+ <script src="./js/darkfish.js"></script>
21
22
 
22
23
 
23
- <body id="top" class="module">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="./index.html">Home</a>
24
+ <body id="top" role="document" class="module">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="./index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="./table_of_contents.html#pages">Pages</a>
28
34
  <a href="./table_of_contents.html#classes">Classes</a>
29
35
  <a href="./table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
36
+ </div>
37
+ </div>
33
38
 
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
35
40
  <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
38
45
  title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
40
51
  </form>
52
+ </div>
41
53
 
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
54
+ </div>
44
55
 
56
+
57
+ <div class="nav-section">
58
+ <h3>Table of Contents</h3>
45
59
 
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/bio/db/pileup.rb
51
- <li>lib/bio/db/sam/bam.rb
52
- <li>lib/bio/db/sam/faidx.rb
53
- <li>lib/bio/db/sam/library.rb
54
- <li>lib/bio/db/sam/sam.rb
55
- <li>lib/bio/db/sam.rb
56
- <li>lib/bio/db/vcf.rb
60
+ <ul class="link-list" role="directory">
61
+ <li><a href="#module-Bio-label-Bio%3A%3ADB%3A%3APileup+">Bio::DB::Pileup </a>
62
+ <li><a href="#module-Bio-label-Vcf+">Vcf </a>
57
63
  </ul>
58
- </nav>
64
+ </div>
59
65
 
60
-
61
- </div>
62
66
 
63
67
  <div id="class-metadata">
64
68
 
65
69
 
66
70
 
67
71
 
68
- </div>
69
-
70
- <div id="project-metadata">
71
- <nav id="fileindex-section" class="section project-section">
72
- <h3 class="section-header">Pages</h3>
73
-
74
- <ul>
75
-
76
- <li class="file"><a href="./LICENSE_txt.html">LICENSE</a>
77
-
78
- </ul>
79
- </nav>
80
-
81
- <nav id="classindex-section" class="section project-section">
82
- <h3 class="section-header">Class and Module Index</h3>
83
-
84
- <ul class="link-list">
85
-
86
- <li><a href="./Bio.html">Bio</a>
87
-
88
- <li><a href="./Bio/DB.html">Bio::DB</a>
89
-
90
- <li><a href="./Bio/DB/Alignment.html">Bio::DB::Alignment</a>
91
-
92
- <li><a href="./Bio/DB/Pileup.html">Bio::DB::Pileup</a>
93
-
94
- <li><a href="./Bio/DB/SAM.html">Bio::DB::SAM</a>
95
-
96
- <li><a href="./Bio/DB/SAM/Library.html">Bio::DB::SAM::Library</a>
97
-
98
- <li><a href="./Bio/DB/SAM/Tools.html">Bio::DB::SAM::Tools</a>
99
-
100
- <li><a href="./Bio/DB/SAM/Tools/Bam1CoreT.html">Bio::DB::SAM::Tools::Bam1CoreT</a>
101
-
102
- <li><a href="./Bio/DB/SAM/Tools/Bam1T.html">Bio::DB::SAM::Tools::Bam1T</a>
103
-
104
- <li><a href="./Bio/DB/SAM/Tools/BamHeaderT.html">Bio::DB::SAM::Tools::BamHeaderT</a>
105
-
106
- <li><a href="./Bio/DB/SAM/Tools/BamPileup1T.html">Bio::DB::SAM::Tools::BamPileup1T</a>
107
-
108
- <li><a href="./Bio/DB/SAM/Tools/SamfileT.html">Bio::DB::SAM::Tools::SamfileT</a>
109
-
110
- <li><a href="./Bio/DB/SAM/Tools/SamfileTX.html">Bio::DB::SAM::Tools::SamfileTX</a>
111
-
112
- <li><a href="./Bio/DB/SAMException.html">Bio::DB::SAMException</a>
113
-
114
- <li><a href="./Bio/DB/Sam.html">Bio::DB::Sam</a>
115
-
116
- <li><a href="./Bio/DB/Tag.html">Bio::DB::Tag</a>
117
-
118
- <li><a href="./Bio/DB/Vcf.html">Bio::DB::Vcf</a>
119
-
120
- <li><a href="./LibC.html">LibC</a>
121
-
122
- </ul>
123
- </nav>
124
-
72
+
125
73
  </div>
126
74
  </nav>
127
75
 
128
- <div id="documentation">
129
- <h1 class="module">module Bio</h1>
76
+ <main role="main" aria-labelledby="module-Bio">
77
+ <h1 id="module-Bio" class="module">
78
+ module Bio
79
+ </h1>
130
80
 
131
- <div id="description" class="description">
81
+ <section class="description">
132
82
 
133
- <h1 id="label-Bio%3A%3ADB%3A%3APileup+"><a href="Bio/DB/Pileup.html">Bio::DB::Pileup</a> </h1>
83
+ <h1 id="module-Bio-label-Bio%3A%3ADB%3A%3APileup+"><a href="Bio/DB/Pileup.html">Bio::DB::Pileup</a> <span><a href="#module-Bio-label-Bio%3A%3ADB%3A%3APileup+">&para;</a> <a href="#documentation">&uarr;</a></span></h1>
134
84
 
135
85
  <p>A class representing information in SAMTools pileup format</p>
136
86
  <dl class="rdoc-list note-list"><dt>Author
137
87
  <dd>
138
- <p>Dan MacLean (tsl at dan.maclean.ac.uk)</p>
88
+ <p>Dan MacLean (dan.maclean@tsl.ac.uk)</p>
139
89
  </dd></dl>
140
90
 
141
91
  <p>Pileup is described at <a
@@ -146,18 +96,18 @@ Briefly (when you invoke pileup with the -c option):</p>
146
96
  </li><li>
147
97
  <p>2 reference coordinate</p>
148
98
  </li><li>
149
- <p>(3) reference base, or `*‘ for an indel line</p>
99
+ <p>(3) reference base, or `*&#39; for an indel line</p>
150
100
  </li><li>
151
101
  <p>(4) genotype where heterozygotes are encoded in the IUB code: M=A/C, R=A/G,
152
102
  W=A/T, S=C/G, Y=C/T and K=G/T; indels are indicated by, for example, +A,
153
103
  -A or +CC/-C. There is no difference between */+A or +A/*.</p>
154
104
  </li><li>
155
105
  <p>(5) Phred-scaled likelihood that the genotype is wrong, which is also
156
- called `consensus quality’.</p>
106
+ called `consensus quality&#39;.</p>
157
107
  </li><li>
158
108
  <p>(6) Phred-scaled likelihood that the genotype is identical to the
159
- reference, which is also called `SNP quality’. Suppose the reference base
160
- is A and in alignment we see 17 G and 3 A. We will get a low consensus
109
+ reference, which is also called `SNP quality&#39;. Suppose the reference
110
+ base is A and in alignment we see 17 G and 3 A. We will get a low consensus
161
111
  quality because it is difficult to distinguish an A/G heterozygote from a
162
112
  G/G homozygote. We will get a high SNP quality, though, because the
163
113
  evidence of a SNP is very strong.</p>
@@ -178,38 +128,27 @@ the 1st indel allele otherwise</p>
178
128
  <p>(13) indel line only: # reads supporting a third indel allele</p>
179
129
  </li></ul>
180
130
 
181
- <p>If pileup is invoked without `-c’, indel lines and columns between 3 and
182
- 7 inclusive will not be outputted.</p>
131
+ <p>If pileup is invoked without `-c&#39;, indel lines and columns between 3
132
+ and 7 inclusive will not be outputted.</p>
183
133
 
184
134
  <p>NB mpileup uses the 6 column output format eg
185
- “seq2t151tGtGt36t0t99t12t.….……At:9&lt;;;7=&lt;&lt;&lt;&lt;&lt;”
186
- Pileup provides accessors for all columns (6 or 10 column format) and a few
187
- other useful methods</p>
135
+ “seq2t151tGtGt36t0t99t12t.….……At:9&lt;;;7=&lt;&lt;&lt;&lt;&lt;” Pileup
136
+ provides accessors for all columns (6 or 10 column format) and a few other
137
+ useful methods</p>
188
138
 
189
- <p>require rubygems require ‘ffi’</p>
139
+ <p>require &#39;rubygems&#39; require&#39;ffi&#39; require
140
+ &#39;bio/db/sam/bam&#39;</p>
190
141
 
191
- <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'bio/db/sam/faidx'</span>
192
- <span class="ruby-identifier">require</span> <span class="ruby-string">'bio/db/sam/sam'</span>
193
- </pre>
194
-
195
- <p>require ‘rubygems’ require’ffi’ require ‘bio/db/sam/bam’</p>
196
-
197
- <pre>sam.rb
198
-
199
- Created by Ricardo Ramirez on 3/25/10.</pre>
200
-
201
- <p>require ‘rubygems’ require’ffi’ require ‘bio/db/sam/bam’</p>
202
-
203
- <h1 id="label-Vcf+">Vcf </h1>
142
+ <h1 id="module-Bio-label-Vcf+">Vcf <span><a href="#module-Bio-label-Vcf+">&para;</a> <a href="#documentation">&uarr;</a></span></h1>
204
143
 
205
144
  <p>A class representing information in Variant Call Format Forked from vcfruby
206
145
  at <a
207
146
  href="https://github.com/jesserod/vcfruby">github.com/jesserod/vcfruby</a>
208
- Modified and tests written by Dan MacLean (tsl at dan.maclean.ac.uk) VCF is
147
+ Modified and tests written by Dan MacLean (dan.maclean@tsl.ac.uk) VCF is
209
148
  described at <a
210
149
  href="http://www.1000genomes.org/node/101">www.1000genomes.org/node/101</a></p>
211
150
 
212
- </div><!-- description -->
151
+ </section>
213
152
 
214
153
 
215
154
 
@@ -223,16 +162,14 @@ href="http://www.1000genomes.org/node/101">www.1000genomes.org/node/101</a></p>
223
162
 
224
163
 
225
164
 
226
- <!-- Methods -->
227
165
 
228
- </section><!-- 5Buntitled-5D -->
229
-
230
- </div><!-- documentation -->
166
+ </section>
167
+ </main>
231
168
 
232
169
 
233
- <footer id="validator-badges">
234
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
235
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
236
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
170
+ <footer id="validator-badges" role="contentinfo">
171
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
172
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
173
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
237
174
  </footer>
238
175