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.
- checksums.yaml +4 -4
- data/Gemfile +3 -2
- data/README.md +4 -7
- data/VERSION +1 -1
- data/bio-samtools.gemspec +47 -105
- data/doc/Bio.html +68 -131
- data/doc/Bio/DB.html +51 -111
- data/doc/Bio/DB/Alignment.html +135 -363
- data/doc/Bio/DB/Pileup.html +183 -170
- data/doc/Bio/DB/SAM.html +1396 -820
- data/doc/Bio/DB/SAM/Library.html +73 -123
- data/doc/Bio/DB/SAM/Tools.html +51 -273
- data/doc/Bio/DB/Tag.html +78 -124
- data/doc/Bio/DB/Vcf.html +111 -147
- data/doc/LICENSE_txt.html +113 -148
- data/doc/created.rid +9 -10
- data/doc/fonts.css +167 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/index.html +48 -54
- data/doc/js/darkfish.js +9 -22
- data/doc/js/search.js +20 -5
- data/doc/js/search_index.js +1 -1
- data/doc/rdoc.css +255 -218
- data/doc/table_of_contents.html +256 -137
- data/ext/Rakefile +57 -0
- data/lib/bio-samtools.rb +7 -2
- data/lib/bio/BIOExtensions.rb +89 -0
- data/lib/bio/db/alignment.rb +59 -0
- data/lib/bio/db/fastadb.rb +255 -0
- data/lib/bio/db/pileup.rb +221 -172
- data/lib/bio/db/sam.rb +639 -589
- data/lib/bio/db/sam/{faidx.rb → faidx_old.rb} +0 -0
- data/lib/bio/db/vcf.rb +69 -68
- data/test/.gitignore +1 -0
- data/test/{test_basic.rb → old_test_basic.rb} +33 -1
- data/test/samples/small/dupes.bam +0 -0
- data/test/samples/small/dupes.sam +274 -0
- data/test/samples/small/map_for_reheader.sam +8 -0
- data/test/samples/small/map_to_merge1.bam +0 -0
- data/test/samples/small/map_to_merge1.bam.bai +0 -0
- data/test/samples/small/map_to_merge1.sam +8 -0
- data/test/samples/small/map_to_merge2.bam +0 -0
- data/test/samples/small/map_to_merge2.bam.bai +0 -0
- data/test/samples/small/map_to_merge2.sam +8 -0
- data/test/samples/small/no_md.sam +8 -0
- data/test/samples/small/test_chr.fasta.1.bt2 +0 -0
- data/test/samples/small/test_chr.fasta.2.bt2 +0 -0
- data/test/samples/small/test_chr.fasta.3.bt2 +0 -0
- data/test/samples/small/test_chr.fasta.4.bt2 +0 -0
- data/test/samples/small/test_chr.fasta.rev.1.bt2 +0 -0
- data/test/samples/small/test_chr.fasta.rev.2.bt2 +0 -0
- data/test/samples/small/test_cov.svg +273 -0
- data/test/samples/small/testu.bam.bai +0 -0
- data/test/svg +133 -0
- data/test/test_pileup.rb +84 -0
- data/test/test_sam.rb +331 -0
- data/test/test_vcf.rb +11 -0
- data/{doc → tutorial}/tutorial.html +0 -0
- data/{doc → tutorial}/tutorial.pdf +0 -0
- metadata +56 -114
- data/doc/Bio/DB/SAM/Tools/Bam1CoreT.html +0 -159
- data/doc/Bio/DB/SAM/Tools/Bam1T.html +0 -220
- data/doc/Bio/DB/SAM/Tools/BamHeaderT.html +0 -249
- data/doc/Bio/DB/SAM/Tools/BamPileup1T.html +0 -159
- data/doc/Bio/DB/SAM/Tools/SamfileT.html +0 -171
- data/doc/Bio/DB/SAM/Tools/SamfileTX.html +0 -159
- data/doc/Bio/DB/SAMException.html +0 -205
- data/doc/LibC.html +0 -155
- data/doc/Pileup.html +0 -571
- data/doc/Vcf.html +0 -473
- data/doc/basic_styles.css +0 -31
- data/doc/classes/Bio.html +0 -139
- data/doc/classes/Bio/DB.html +0 -137
- data/doc/classes/Bio/DB/Alignment.html +0 -441
- data/doc/classes/Bio/DB/Alignment.src/M000012.html +0 -19
- data/doc/classes/Bio/DB/Alignment.src/M000013.html +0 -27
- data/doc/classes/Bio/DB/Alignment.src/M000014.html +0 -45
- data/doc/classes/Bio/DB/Alignment.src/M000015.html +0 -40
- data/doc/classes/Bio/DB/SAM.html +0 -510
- data/doc/classes/Bio/DB/SAM/Library.html +0 -135
- data/doc/classes/Bio/DB/SAM/Library.src/M000006.html +0 -28
- data/doc/classes/Bio/DB/SAM/Tools.html +0 -278
- data/doc/classes/Bio/DB/SAM/Tools.src/M000007.html +0 -20
- data/doc/classes/Bio/DB/SAM/Tools/Bam1CoreT.html +0 -111
- data/doc/classes/Bio/DB/SAM/Tools/Bam1T.html +0 -150
- data/doc/classes/Bio/DB/SAM/Tools/Bam1T.src/M000010.html +0 -20
- data/doc/classes/Bio/DB/SAM/Tools/BamHeaderT.html +0 -169
- data/doc/classes/Bio/DB/SAM/Tools/BamHeaderT.src/M000008.html +0 -19
- data/doc/classes/Bio/DB/SAM/Tools/BamHeaderT.src/M000009.html +0 -18
- data/doc/classes/Bio/DB/SAM/Tools/BamPileup1T.html +0 -111
- data/doc/classes/Bio/DB/SAM/Tools/SamfileT.html +0 -129
- data/doc/classes/Bio/DB/SAM/Tools/SamfileTX.html +0 -111
- data/doc/classes/Bio/DB/SAMException.html +0 -140
- data/doc/classes/Bio/DB/SAMException.src/M000016.html +0 -18
- data/doc/classes/Bio/DB/Sam.src/M000017.html +0 -43
- data/doc/classes/Bio/DB/Sam.src/M000018.html +0 -42
- data/doc/classes/Bio/DB/Sam.src/M000019.html +0 -18
- data/doc/classes/Bio/DB/Sam.src/M000020.html +0 -22
- data/doc/classes/Bio/DB/Sam.src/M000021.html +0 -19
- data/doc/classes/Bio/DB/Sam.src/M000022.html +0 -25
- data/doc/classes/Bio/DB/Sam.src/M000023.html +0 -28
- data/doc/classes/Bio/DB/Sam.src/M000024.html +0 -28
- data/doc/classes/Bio/DB/Sam.src/M000025.html +0 -46
- data/doc/classes/Bio/DB/Sam.src/M000026.html +0 -24
- data/doc/classes/Bio/DB/Sam.src/M000027.html +0 -19
- data/doc/classes/Bio/DB/Sam.src/M000028.html +0 -24
- data/doc/classes/Bio/DB/Sam.src/M000029.html +0 -41
- data/doc/classes/Bio/DB/Sam.src/M000030.html +0 -31
- data/doc/classes/Bio/DB/Sam.src/M000031.html +0 -86
- data/doc/classes/Bio/DB/Sam.src/M000032.html +0 -34
- data/doc/classes/Bio/DB/Tag.html +0 -160
- data/doc/classes/Bio/DB/Tag.src/M000011.html +0 -21
- data/doc/classes/LibC.html +0 -105
- data/doc/classes/Pileup.html +0 -374
- data/doc/classes/Pileup.src/M000001.html +0 -34
- data/doc/classes/Pileup.src/M000002.html +0 -21
- data/doc/classes/Pileup.src/M000003.html +0 -21
- data/doc/classes/Pileup.src/M000004.html +0 -21
- data/doc/classes/Pileup.src/M000005.html +0 -31
- data/doc/files/lib/bio-samtools_rb.html +0 -109
- data/doc/files/lib/bio/db/sam/bam_rb.html +0 -108
- data/doc/files/lib/bio/db/sam/faidx_rb.html +0 -108
- data/doc/files/lib/bio/db/sam/library_rb.html +0 -101
- data/doc/files/lib/bio/db/sam/pileup_rb.html +0 -178
- data/doc/files/lib/bio/db/sam/sam_rb.html +0 -113
- data/doc/files/lib/bio/db/sam_rb.html +0 -111
- data/doc/fr_class_index.html +0 -43
- data/doc/fr_file_index.html +0 -33
- data/doc/fr_method_index.html +0 -58
- data/doc/lib/bio-samtools_rb.html +0 -115
- data/doc/lib/bio/db/pileup_rb.html +0 -171
- data/doc/lib/bio/db/sam/bam_rb.html +0 -121
- data/doc/lib/bio/db/sam/faidx_rb.html +0 -117
- data/doc/lib/bio/db/sam/library_rb.html +0 -115
- data/doc/lib/bio/db/sam/pileup_rb.html +0 -171
- data/doc/lib/bio/db/sam/sam_rb.html +0 -121
- data/doc/lib/bio/db/sam/vcf_rb.html +0 -124
- data/doc/lib/bio/db/sam_rb.html +0 -115
- data/doc/lib/bio/db/vcf_rb.html +0 -124
- data/doc/rdoc-style.css +0 -208
- data/lib/bio/db/sam/bam.rb +0 -210
- data/lib/bio/db/sam/sam.rb +0 -86
- data/test/samples/pipe_char/test.bam +0 -0
- data/test/samples/pipe_char/test.bam.bai +0 -0
- data/test/samples/pipe_char/test.tam +0 -10
- data/test/samples/pipe_char/test_chr.fasta +0 -1000
- data/test/samples/pipe_char/test_chr.fasta.fai +0 -1
- data/test/samples/small/test +0 -0
- data/test/samples/small/test.bam +0 -0
- data/test/samples/small/test.fa +0 -20
- data/test/samples/small/test.fai +0 -0
data/doc/table_of_contents.html
CHANGED
@@ -2,28 +2,30 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>Table of Contents - Pileup</title>
|
8
8
|
|
9
|
-
<link
|
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
|
16
|
-
<script
|
17
|
-
<script
|
18
|
-
<script
|
19
|
-
<script
|
20
|
-
<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="
|
24
|
-
<
|
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
|
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
|
-
|
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
|
-
|
49
|
+
<li class="class">
|
46
50
|
<a href="Bio/DB/Pileup.html">Bio::DB::Pileup</a>
|
47
51
|
</li>
|
48
|
-
|
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
|
-
|
55
|
+
<li class="module">
|
55
56
|
<a href="Bio/DB/SAM/Tools.html">Bio::DB::SAM::Tools</a>
|
56
57
|
</li>
|
57
|
-
|
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
|
-
|
61
|
+
<li class="class">
|
82
62
|
<a href="Bio/DB/Tag.html">Bio::DB::Tag</a>
|
83
63
|
</li>
|
84
|
-
|
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
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
<
|
103
|
-
|
104
|
-
<
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<
|
113
|
-
|
114
|
-
<
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
<
|
123
|
-
|
124
|
-
<
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
<
|
133
|
-
|
134
|
-
<
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<
|
143
|
-
|
144
|
-
<
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
<
|
153
|
-
|
154
|
-
<
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
<
|
163
|
-
|
164
|
-
<
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
<
|
173
|
-
|
174
|
-
<
|
175
|
-
|
176
|
-
|
177
|
-
|
71
|
+
|
72
|
+
<li class="method">
|
73
|
+
<a href="Bio/DB/Sam.html#method-c-docs">::docs</a>
|
74
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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
|
+
—
|
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">
|
183
|
-
<p>Generated by <a href="
|
184
|
-
<p>
|
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
|
|
data/ext/Rakefile
ADDED
@@ -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
|
+
|