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
@@ -2,28 +2,30 @@
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>Table of Contents - 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 class="indexpage">
24
- <h1>Table of Contents - Pileup</h1>
24
+ <body id="top" class="table-of-contents">
25
+ <main role="main">
26
+ <h1 class="class">Table of Contents - Pileup</h1>
25
27
 
26
- <h2>Pages</h2>
28
+ <h2 id="pages">Pages</h2>
27
29
  <ul>
28
30
  <li class="file">
29
31
  <a href="LICENSE_txt.html">LICENSE</a>
@@ -31,156 +33,273 @@
31
33
 
32
34
  </ul>
33
35
 
34
- <h2 id="classes">Classes/Modules</h2>
36
+ <h2 id="classes">Classes and Modules</h2>
35
37
  <ul>
36
38
  <li class="module">
37
39
  <a href="Bio.html">Bio</a>
40
+
41
+ <ul>
42
+ <li><a href="Bio.html#label-Bio%3A%3ADB%3A%3APileup+">Bio::DB::Pileup </a>
43
+ <li><a href="Bio.html#label-Vcf+">Vcf </a>
44
+ </ul>
38
45
  </li>
39
- <li class="class">
40
- <a href="Bio/DB.html">Bio::DB</a>
41
- </li>
42
- <li class="class">
46
+ <li class="class">
43
47
  <a href="Bio/DB/Alignment.html">Bio::DB::Alignment</a>
44
48
  </li>
45
- <li class="class">
49
+ <li class="class">
46
50
  <a href="Bio/DB/Pileup.html">Bio::DB::Pileup</a>
47
51
  </li>
48
- <li class="module">
49
- <a href="Bio/DB/SAM.html">Bio::DB::SAM</a>
50
- </li>
51
- <li class="module">
52
+ <li class="module">
52
53
  <a href="Bio/DB/SAM/Library.html">Bio::DB::SAM::Library</a>
53
54
  </li>
54
- <li class="module">
55
+ <li class="module">
55
56
  <a href="Bio/DB/SAM/Tools.html">Bio::DB::SAM::Tools</a>
56
57
  </li>
57
- <li class="class">
58
- <a href="Bio/DB/SAM/Tools/Bam1CoreT.html">Bio::DB::SAM::Tools::Bam1CoreT</a>
59
- </li>
60
- <li class="class">
61
- <a href="Bio/DB/SAM/Tools/Bam1T.html">Bio::DB::SAM::Tools::Bam1T</a>
62
- </li>
63
- <li class="class">
64
- <a href="Bio/DB/SAM/Tools/BamHeaderT.html">Bio::DB::SAM::Tools::BamHeaderT</a>
65
- </li>
66
- <li class="class">
67
- <a href="Bio/DB/SAM/Tools/BamPileup1T.html">Bio::DB::SAM::Tools::BamPileup1T</a>
68
- </li>
69
- <li class="class">
70
- <a href="Bio/DB/SAM/Tools/SamfileT.html">Bio::DB::SAM::Tools::SamfileT</a>
71
- </li>
72
- <li class="class">
73
- <a href="Bio/DB/SAM/Tools/SamfileTX.html">Bio::DB::SAM::Tools::SamfileTX</a>
74
- </li>
75
- <li class="class">
76
- <a href="Bio/DB/SAMException.html">Bio::DB::SAMException</a>
77
- </li>
78
- <li class="class">
58
+ <li class="class">
79
59
  <a href="Bio/DB/Sam.html">Bio::DB::Sam</a>
80
60
  </li>
81
- <li class="class">
61
+ <li class="class">
82
62
  <a href="Bio/DB/Tag.html">Bio::DB::Tag</a>
83
63
  </li>
84
- <li class="class">
64
+ <li class="class">
85
65
  <a href="Bio/DB/Vcf.html">Bio::DB::Vcf</a>
86
66
  </li>
87
- <li class="module">
88
- <a href="LibC.html">LibC</a>
89
- </li>
90
-
91
67
  </ul>
92
68
 
93
69
  <h2 id="methods">Methods</h2>
94
70
  <ul>
95
-
96
- <li class="method"><a href="Bio/DB/SAM/Tools.html#method-c-bam_sort">::bam_sort &mdash; Bio::DB::SAM::Tools</a>
97
-
98
- <li class="method"><a href="Bio/DB/SAM/Library.html#method-c-filename">::filename &mdash; Bio::DB::SAM::Library</a>
99
-
100
- <li class="method"><a href="Bio/DB/Alignment.html#method-c-finalize">::finalize &mdash; Bio::DB::Alignment</a>
101
-
102
- <li class="method"><a href="Bio/DB/Sam.html#method-c-finalize">::finalize &mdash; Bio::DB::Sam</a>
103
-
104
- <li class="method"><a href="Bio/DB/Pileup.html#method-c-iupac_to_base">::iupac_to_base &mdash; Bio::DB::Pileup</a>
105
-
106
- <li class="method"><a href="Bio/DB/Sam.html#method-c-merge">::merge &mdash; Bio::DB::Sam</a>
107
-
108
- <li class="method"><a href="Bio/DB/Pileup.html#method-c-new">::new &mdash; Bio::DB::Pileup</a>
109
-
110
- <li class="method"><a href="Bio/DB/Sam.html#method-c-new">::new &mdash; Bio::DB::Sam</a>
111
-
112
- <li class="method"><a href="Bio/DB/Alignment.html#method-c-new">::new &mdash; Bio::DB::Alignment</a>
113
-
114
- <li class="method"><a href="Bio/DB/SAMException.html#method-c-new">::new &mdash; Bio::DB::SAMException</a>
115
-
116
- <li class="method"><a href="Bio/DB/Vcf.html#method-c-new">::new &mdash; Bio::DB::Vcf</a>
117
-
118
- <li class="method"><a href="Bio/DB/Sam.html#method-i-average_coverage">#average_coverage &mdash; Bio::DB::Sam</a>
119
-
120
- <li class="method"><a href="Bio/DB/Sam.html#method-i-chromosome_coverage">#chromosome_coverage &mdash; Bio::DB::Sam</a>
121
-
122
- <li class="method"><a href="Bio/DB/Sam.html#method-i-close">#close &mdash; Bio::DB::Sam</a>
123
-
124
- <li class="method"><a href="Bio/DB/Sam.html#method-i-deprecated_pileup">#deprecated_pileup &mdash; Bio::DB::Sam</a>
125
-
126
- <li class="method"><a href="Bio/DB/Sam.html#method-i-each_reference">#each_reference &mdash; Bio::DB::Sam</a>
127
-
128
- <li class="method"><a href="Bio/DB/Sam.html#method-i-fetch">#fetch &mdash; Bio::DB::Sam</a>
129
-
130
- <li class="method"><a href="Bio/DB/Sam.html#method-i-fetch_reference">#fetch_reference &mdash; Bio::DB::Sam</a>
131
-
132
- <li class="method"><a href="Bio/DB/Sam.html#method-i-fetch_with_function">#fetch_with_function &mdash; Bio::DB::Sam</a>
133
-
134
- <li class="method"><a href="Bio/DB/Pileup.html#method-i-genotype_list">#genotype_list &mdash; Bio::DB::Pileup</a>
135
-
136
- <li class="method"><a href="Bio/DB/Sam.html#method-i-index_stats">#index_stats &mdash; Bio::DB::Sam</a>
137
-
138
- <li class="method"><a href="Bio/DB/Vcf.html#method-i-int_or_raw">#int_or_raw &mdash; Bio::DB::Vcf</a>
139
-
140
- <li class="method"><a href="Bio/DB/Sam.html#method-i-load_index">#load_index &mdash; Bio::DB::Sam</a>
141
-
142
- <li class="method"><a href="Bio/DB/Sam.html#method-i-load_reference">#load_reference &mdash; Bio::DB::Sam</a>
143
-
144
- <li class="method"><a href="Bio/DB/Sam.html#method-i-mpileup">#mpileup &mdash; Bio::DB::Sam</a>
145
-
146
- <li class="method"><a href="Bio/DB/Sam.html#method-i-mpileup_plus">#mpileup_plus &mdash; Bio::DB::Sam</a>
147
-
148
- <li class="method"><a href="Bio/DB/Pileup.html#method-i-non_ref_count">#non_ref_count &mdash; Bio::DB::Pileup</a>
149
-
150
- <li class="method"><a href="Bio/DB/Pileup.html#method-i-non_refs">#non_refs &mdash; Bio::DB::Pileup</a>
151
-
152
- <li class="method"><a href="Bio/DB/Sam.html#method-i-open">#open &mdash; Bio::DB::Sam</a>
153
-
154
- <li class="method"><a href="Bio/DB/Vcf.html#method-i-parse_line">#parse_line &mdash; Bio::DB::Vcf</a>
155
-
156
- <li class="method"><a href="Bio/DB/SAM/Tools/Bam1T.html#method-i-qname">#qname &mdash; Bio::DB::SAM::Tools::Bam1T</a>
157
-
158
- <li class="method"><a href="Bio/DB/Sam.html#method-i-query_string">#query_string &mdash; Bio::DB::Sam</a>
159
-
160
- <li class="method"><a href="Bio/DB/Pileup.html#method-i-ref_count">#ref_count &mdash; Bio::DB::Pileup</a>
161
-
162
- <li class="method"><a href="Bio/DB/Alignment.html#method-i-sam-3D">#sam= &mdash; Bio::DB::Alignment</a>
163
-
164
- <li class="method"><a href="Bio/DB/Tag.html#method-i-set">#set &mdash; Bio::DB::Tag</a>
165
-
166
- <li class="method"><a href="Bio/DB/Alignment.html#method-i-set">#set &mdash; Bio::DB::Alignment</a>
167
-
168
- <li class="method"><a href="Bio/DB/SAM/Tools/BamHeaderT.html#method-i-text">#text &mdash; Bio::DB::SAM::Tools::BamHeaderT</a>
169
-
170
- <li class="method"><a href="Bio/DB/SAM/Tools/BamHeaderT.html#method-i-text-3D">#text= &mdash; Bio::DB::SAM::Tools::BamHeaderT</a>
171
-
172
- <li class="method"><a href="Bio/DB/Pileup.html#method-i-to_s">#to_s &mdash; Bio::DB::Pileup</a>
173
-
174
- <li class="method"><a href="Bio/DB/Sam.html#method-i-to_s">#to_s &mdash; Bio::DB::Sam</a>
175
-
176
- <li class="method"><a href="Bio/DB/Pileup.html#method-i-to_vcf">#to_vcf &mdash; Bio::DB::Pileup</a>
177
-
71
+
72
+ <li class="method">
73
+ <a href="Bio/DB/Sam.html#method-c-docs">::docs</a>
74
+ &mdash;
75
+ <span class="container">Bio::DB::Sam</span>
76
+
77
+ <li class="method">
78
+ <a href="Bio/DB/SAM/Library.html#method-c-filename">::filename</a>
79
+ &mdash;
80
+ <span class="container">Bio::DB::SAM::Library</span>
81
+
82
+ <li class="method">
83
+ <a href="Bio/DB/Pileup.html#method-c-iupac_to_base">::iupac_to_base</a>
84
+ &mdash;
85
+ <span class="container">Bio::DB::Pileup</span>
86
+
87
+ <li class="method">
88
+ <a href="Bio/DB/Pileup.html#method-c-new">::new</a>
89
+ &mdash;
90
+ <span class="container">Bio::DB::Pileup</span>
91
+
92
+ <li class="method">
93
+ <a href="Bio/DB/Alignment.html#method-c-new">::new</a>
94
+ &mdash;
95
+ <span class="container">Bio::DB::Alignment</span>
96
+
97
+ <li class="method">
98
+ <a href="Bio/DB/Vcf.html#method-c-new">::new</a>
99
+ &mdash;
100
+ <span class="container">Bio::DB::Vcf</span>
101
+
102
+ <li class="method">
103
+ <a href="Bio/DB/Sam.html#method-c-new">::new</a>
104
+ &mdash;
105
+ <span class="container">Bio::DB::Sam</span>
106
+
107
+ <li class="method">
108
+ <a href="Bio/DB/Sam.html#method-i-average_coverage">#average_coverage</a>
109
+ &mdash;
110
+ <span class="container">Bio::DB::Sam</span>
111
+
112
+ <li class="method">
113
+ <a href="Bio/DB/Sam.html#method-i-calmd">#calmd</a>
114
+ &mdash;
115
+ <span class="container">Bio::DB::Sam</span>
116
+
117
+ <li class="method">
118
+ <a href="Bio/DB/Sam.html#method-i-cat">#cat</a>
119
+ &mdash;
120
+ <span class="container">Bio::DB::Sam</span>
121
+
122
+ <li class="method">
123
+ <a href="Bio/DB/Sam.html#method-i-chromosome_coverage">#chromosome_coverage</a>
124
+ &mdash;
125
+ <span class="container">Bio::DB::Sam</span>
126
+
127
+ <li class="method">
128
+ <a href="Bio/DB/Sam.html#method-i-depth">#depth</a>
129
+ &mdash;
130
+ <span class="container">Bio::DB::Sam</span>
131
+
132
+ <li class="method">
133
+ <a href="Bio/DB/Sam.html#method-i-faidx">#faidx</a>
134
+ &mdash;
135
+ <span class="container">Bio::DB::Sam</span>
136
+
137
+ <li class="method">
138
+ <a href="Bio/DB/Sam.html#method-i-fetch">#fetch</a>
139
+ &mdash;
140
+ <span class="container">Bio::DB::Sam</span>
141
+
142
+ <li class="method">
143
+ <a href="Bio/DB/Sam.html#method-i-fetch_reference">#fetch_reference</a>
144
+ &mdash;
145
+ <span class="container">Bio::DB::Sam</span>
146
+
147
+ <li class="method">
148
+ <a href="Bio/DB/Sam.html#method-i-fetch_with_function">#fetch_with_function</a>
149
+ &mdash;
150
+ <span class="container">Bio::DB::Sam</span>
151
+
152
+ <li class="method">
153
+ <a href="Bio/DB/Sam.html#method-i-fix_mates">#fix_mates</a>
154
+ &mdash;
155
+ <span class="container">Bio::DB::Sam</span>
156
+
157
+ <li class="method">
158
+ <a href="Bio/DB/Sam.html#method-i-fixmate">#fixmate</a>
159
+ &mdash;
160
+ <span class="container">Bio::DB::Sam</span>
161
+
162
+ <li class="method">
163
+ <a href="Bio/DB/Sam.html#method-i-flag_stats">#flag_stats</a>
164
+ &mdash;
165
+ <span class="container">Bio::DB::Sam</span>
166
+
167
+ <li class="method">
168
+ <a href="Bio/DB/Sam.html#method-i-flagstat">#flagstat</a>
169
+ &mdash;
170
+ <span class="container">Bio::DB::Sam</span>
171
+
172
+ <li class="method">
173
+ <a href="Bio/DB/Pileup.html#method-i-genotype_list">#genotype_list</a>
174
+ &mdash;
175
+ <span class="container">Bio::DB::Pileup</span>
176
+
177
+ <li class="method">
178
+ <a href="Bio/DB/Sam.html#method-i-idxstats">#idxstats</a>
179
+ &mdash;
180
+ <span class="container">Bio::DB::Sam</span>
181
+
182
+ <li class="method">
183
+ <a href="Bio/DB/Sam.html#method-i-index">#index</a>
184
+ &mdash;
185
+ <span class="container">Bio::DB::Sam</span>
186
+
187
+ <li class="method">
188
+ <a href="Bio/DB/Sam.html#method-i-index_stats">#index_stats</a>
189
+ &mdash;
190
+ <span class="container">Bio::DB::Sam</span>
191
+
192
+ <li class="method">
193
+ <a href="Bio/DB/Vcf.html#method-i-int_or_raw">#int_or_raw</a>
194
+ &mdash;
195
+ <span class="container">Bio::DB::Vcf</span>
196
+
197
+ <li class="method">
198
+ <a href="Bio/DB/Sam.html#method-i-merge">#merge</a>
199
+ &mdash;
200
+ <span class="container">Bio::DB::Sam</span>
201
+
202
+ <li class="method">
203
+ <a href="Bio/DB/Sam.html#method-i-mpileup">#mpileup</a>
204
+ &mdash;
205
+ <span class="container">Bio::DB::Sam</span>
206
+
207
+ <li class="method">
208
+ <a href="Bio/DB/Pileup.html#method-i-non_ref_count">#non_ref_count</a>
209
+ &mdash;
210
+ <span class="container">Bio::DB::Pileup</span>
211
+
212
+ <li class="method">
213
+ <a href="Bio/DB/Pileup.html#method-i-non_refs">#non_refs</a>
214
+ &mdash;
215
+ <span class="container">Bio::DB::Pileup</span>
216
+
217
+ <li class="method">
218
+ <a href="Bio/DB/Sam.html#method-i-open">#open</a>
219
+ &mdash;
220
+ <span class="container">Bio::DB::Sam</span>
221
+
222
+ <li class="method">
223
+ <a href="Bio/DB/Pileup.html#method-i-parse_indel">#parse_indel</a>
224
+ &mdash;
225
+ <span class="container">Bio::DB::Pileup</span>
226
+
227
+ <li class="method">
228
+ <a href="Bio/DB/Vcf.html#method-i-parse_line">#parse_line</a>
229
+ &mdash;
230
+ <span class="container">Bio::DB::Vcf</span>
231
+
232
+ <li class="method">
233
+ <a href="Bio/DB/Sam.html#method-i-phase">#phase</a>
234
+ &mdash;
235
+ <span class="container">Bio::DB::Sam</span>
236
+
237
+ <li class="method">
238
+ <a href="Bio/DB/Sam.html#method-i-plot_chromosome_coverage">#plot_chromosome_coverage</a>
239
+ &mdash;
240
+ <span class="container">Bio::DB::Sam</span>
241
+
242
+ <li class="method">
243
+ <a href="Bio/DB/Pileup.html#method-i-ref_count">#ref_count</a>
244
+ &mdash;
245
+ <span class="container">Bio::DB::Pileup</span>
246
+
247
+ <li class="method">
248
+ <a href="Bio/DB/Sam.html#method-i-reheader">#reheader</a>
249
+ &mdash;
250
+ <span class="container">Bio::DB::Sam</span>
251
+
252
+ <li class="method">
253
+ <a href="Bio/DB/Sam.html#method-i-remove_duplicates">#remove_duplicates</a>
254
+ &mdash;
255
+ <span class="container">Bio::DB::Sam</span>
256
+
257
+ <li class="method">
258
+ <a href="Bio/DB/Sam.html#method-i-rmdup">#rmdup</a>
259
+ &mdash;
260
+ <span class="container">Bio::DB::Sam</span>
261
+
262
+ <li class="method">
263
+ <a href="Bio/DB/Tag.html#method-i-set">#set</a>
264
+ &mdash;
265
+ <span class="container">Bio::DB::Tag</span>
266
+
267
+ <li class="method">
268
+ <a href="Bio/DB/Sam.html#method-i-sort">#sort</a>
269
+ &mdash;
270
+ <span class="container">Bio::DB::Sam</span>
271
+
272
+ <li class="method">
273
+ <a href="Bio/DB/Sam.html#method-i-targetcut">#targetcut</a>
274
+ &mdash;
275
+ <span class="container">Bio::DB::Sam</span>
276
+
277
+ <li class="method">
278
+ <a href="Bio/DB/Pileup.html#method-i-to_s">#to_s</a>
279
+ &mdash;
280
+ <span class="container">Bio::DB::Pileup</span>
281
+
282
+ <li class="method">
283
+ <a href="Bio/DB/Pileup.html#method-i-to_vcf">#to_vcf</a>
284
+ &mdash;
285
+ <span class="container">Bio::DB::Pileup</span>
286
+
287
+ <li class="method">
288
+ <a href="Bio/DB/Sam.html#method-i-tview">#tview</a>
289
+ &mdash;
290
+ <span class="container">Bio::DB::Sam</span>
291
+
292
+ <li class="method">
293
+ <a href="Bio/DB/Sam.html#method-i-view">#view</a>
294
+ &mdash;
295
+ <span class="container">Bio::DB::Sam</span>
178
296
  </ul>
297
+ </main>
179
298
 
180
299
 
181
- <footer id="validator-badges">
182
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
183
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
184
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
300
+ <footer id="validator-badges" role="contentinfo">
301
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
302
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
303
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
185
304
  </footer>
186
305
 
@@ -0,0 +1,57 @@
1
+ require 'rbconfig'
2
+ require 'open-uri'
3
+ require 'fileutils'
4
+ include FileUtils::Verbose
5
+ require 'rake/clean'
6
+
7
+ URL = "http://sourceforge.net/projects/samtools/files/samtools/0.1.19/samtools-0.1.19.tar.bz2/download"
8
+
9
+ task :download do
10
+ open(URL) do |uri|
11
+ File.open("samtools-0.1.19.tar.bz2",'wb') do |fout|
12
+ fout.write(uri.read)
13
+ end #fout
14
+ end #uri
15
+ end
16
+
17
+ task :compile do
18
+ sh "tar xvfj samtools-0.1.19.tar.bz2"
19
+ cd("samtools-0.1.19") do
20
+ sh "patch < ../Makefile-bioruby.patch"
21
+ # This patch replace CURSES lib with NCURSES which it is the only one available in OpenSUSE
22
+ sh "patch < ../Makefile-suse.patch"
23
+ case Config::CONFIG['host_os']
24
+ when /linux/
25
+ #sh "CFLAGS='-g -Wall -O2 -fPIC' make -e"
26
+ sh "make"
27
+ cp("libbam.a","/Users/ramirezr/Documents/public_code/bioruby-samtools/ext/../lib/bio/db/sam/external")
28
+ #sh "CFLAGS='-g -Wall -O2 -fPIC' make -e libbam.so.1-local"
29
+ sh "make libbam.so.1-local"
30
+ cp("samtools", "/Users/ramirezr/Documents/public_code/bioruby-samtools/ext/../lib/bio/db/sam/external")
31
+ cp("libbam.so.1","/Users/ramirezr/Documents/public_code/bioruby-samtools/ext/../lib/bio/db/sam/external")
32
+ when /darwin/
33
+ sh "make"
34
+ cp("libbam.a","/Users/ramirezr/Documents/public_code/bioruby-samtools/ext/../lib/bio/db/sam/external")
35
+ sh "make libbam.1.dylib-local"
36
+ cp("libbam.1.dylib","/Users/ramirezr/Documents/public_code/bioruby-samtools/ext/../lib/bio/db/sam/external")
37
+ sh "make"
38
+ cp('samtools', "/Users/ramirezr/Documents/public_code/bioruby-samtools/ext/../lib/bio/db/sam/external")
39
+ when /mswin|mingw/ then raise NotImplementedError, "BWA library is not available for Windows platform"
40
+ end #case
41
+ end #cd
42
+ cd("samtools-0.1.19/bcftools") do
43
+ sh "make"
44
+ cp('bcftools', "/Users/ramirezr/Documents/public_code/bioruby-samtools/ext/../lib/bio/db/sam/external")
45
+ end
46
+ end
47
+
48
+ task :clean do
49
+ cd("samtools-0.1.19") do
50
+ sh "make clean"
51
+ end
52
+ rm("samtools-0.1.19.tar.bz2")
53
+ rm_rf("samtools-0.1.19")
54
+ end
55
+
56
+ task :default => [:download, :compile, :clean]
57
+