bio 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (303) hide show
  1. data/ChangeLog +2105 -3728
  2. data/KNOWN_ISSUES.rdoc +35 -3
  3. data/README.rdoc +8 -2
  4. data/RELEASE_NOTES.rdoc +166 -0
  5. data/bin/bioruby +4 -1
  6. data/bioruby.gemspec +146 -1
  7. data/bioruby.gemspec.erb +3 -1
  8. data/doc/ChangeLog-before-1.3.1 +3961 -0
  9. data/doc/Tutorial.rd +154 -22
  10. data/doc/Tutorial.rd.html +125 -68
  11. data/lib/bio.rb +21 -6
  12. data/lib/bio/appl/bl2seq/report.rb +11 -202
  13. data/lib/bio/appl/blast/format0.rb +0 -193
  14. data/lib/bio/appl/blast/report.rb +2 -147
  15. data/lib/bio/appl/blast/wublast.rb +0 -208
  16. data/lib/bio/appl/fasta.rb +4 -19
  17. data/lib/bio/appl/fasta/format10.rb +0 -14
  18. data/lib/bio/appl/genscan/report.rb +0 -176
  19. data/lib/bio/appl/hmmer.rb +1 -15
  20. data/lib/bio/appl/hmmer/report.rb +0 -100
  21. data/lib/bio/appl/meme/mast.rb +156 -0
  22. data/lib/bio/appl/meme/mast/report.rb +91 -0
  23. data/lib/bio/appl/meme/motif.rb +48 -0
  24. data/lib/bio/appl/psort.rb +0 -111
  25. data/lib/bio/appl/psort/report.rb +1 -45
  26. data/lib/bio/appl/pts1.rb +2 -4
  27. data/lib/bio/appl/sosui/report.rb +5 -54
  28. data/lib/bio/appl/targetp/report.rb +1 -104
  29. data/lib/bio/appl/tmhmm/report.rb +0 -36
  30. data/lib/bio/command.rb +94 -10
  31. data/lib/bio/data/aa.rb +1 -77
  32. data/lib/bio/data/codontable.rb +1 -95
  33. data/lib/bio/data/na.rb +1 -26
  34. data/lib/bio/db/aaindex.rb +1 -38
  35. data/lib/bio/db/fasta.rb +1 -134
  36. data/lib/bio/db/fasta/format_qual.rb +204 -0
  37. data/lib/bio/db/fasta/qual.rb +102 -0
  38. data/lib/bio/db/fastq.rb +645 -0
  39. data/lib/bio/db/fastq/fastq_to_biosequence.rb +40 -0
  40. data/lib/bio/db/fastq/format_fastq.rb +175 -0
  41. data/lib/bio/db/genbank/genbank.rb +1 -86
  42. data/lib/bio/db/gff.rb +0 -17
  43. data/lib/bio/db/go.rb +4 -72
  44. data/lib/bio/db/kegg/common.rb +112 -0
  45. data/lib/bio/db/kegg/compound.rb +29 -20
  46. data/lib/bio/db/kegg/drug.rb +74 -34
  47. data/lib/bio/db/kegg/enzyme.rb +26 -5
  48. data/lib/bio/db/kegg/genes.rb +128 -15
  49. data/lib/bio/db/kegg/genome.rb +3 -41
  50. data/lib/bio/db/kegg/glycan.rb +19 -24
  51. data/lib/bio/db/kegg/orthology.rb +16 -56
  52. data/lib/bio/db/kegg/reaction.rb +81 -28
  53. data/lib/bio/db/kegg/taxonomy.rb +1 -52
  54. data/lib/bio/db/litdb.rb +1 -16
  55. data/lib/bio/db/phyloxml/phyloxml.xsd +582 -0
  56. data/lib/bio/db/phyloxml/phyloxml_elements.rb +1174 -0
  57. data/lib/bio/db/phyloxml/phyloxml_parser.rb +954 -0
  58. data/lib/bio/db/phyloxml/phyloxml_writer.rb +228 -0
  59. data/lib/bio/db/prosite.rb +2 -95
  60. data/lib/bio/db/rebase.rb +5 -6
  61. data/lib/bio/db/sanger_chromatogram/abif.rb +120 -0
  62. data/lib/bio/db/sanger_chromatogram/chromatogram.rb +133 -0
  63. data/lib/bio/db/sanger_chromatogram/chromatogram_to_biosequence.rb +32 -0
  64. data/lib/bio/db/sanger_chromatogram/scf.rb +210 -0
  65. data/lib/bio/io/das.rb +0 -44
  66. data/lib/bio/io/ddbjxml.rb +1 -181
  67. data/lib/bio/io/flatfile.rb +1 -7
  68. data/lib/bio/io/flatfile/autodetection.rb +6 -0
  69. data/lib/bio/io/keggapi.rb +0 -442
  70. data/lib/bio/io/ncbirest.rb +130 -132
  71. data/lib/bio/io/ncbisoap.rb +2 -1
  72. data/lib/bio/io/pubmed.rb +0 -88
  73. data/lib/bio/location.rb +0 -73
  74. data/lib/bio/pathway.rb +0 -171
  75. data/lib/bio/sequence.rb +18 -1
  76. data/lib/bio/sequence/adapter.rb +3 -0
  77. data/lib/bio/sequence/format.rb +16 -0
  78. data/lib/bio/sequence/quality_score.rb +205 -0
  79. data/lib/bio/tree.rb +70 -5
  80. data/lib/bio/util/restriction_enzyme/single_strand.rb +3 -2
  81. data/lib/bio/util/sirna.rb +1 -23
  82. data/lib/bio/version.rb +1 -1
  83. data/sample/demo_aaindex.rb +67 -0
  84. data/sample/demo_aminoacid.rb +101 -0
  85. data/sample/demo_bl2seq_report.rb +220 -0
  86. data/sample/demo_blast_report.rb +285 -0
  87. data/sample/demo_codontable.rb +119 -0
  88. data/sample/demo_das.rb +105 -0
  89. data/sample/demo_ddbjxml.rb +212 -0
  90. data/sample/demo_fasta_remote.rb +51 -0
  91. data/sample/demo_fastaformat.rb +105 -0
  92. data/sample/demo_genbank.rb +132 -0
  93. data/sample/demo_genscan_report.rb +202 -0
  94. data/sample/demo_gff1.rb +49 -0
  95. data/sample/demo_go.rb +98 -0
  96. data/sample/demo_hmmer_report.rb +149 -0
  97. data/sample/demo_kegg_compound.rb +57 -0
  98. data/sample/demo_kegg_drug.rb +65 -0
  99. data/sample/demo_kegg_genome.rb +74 -0
  100. data/sample/demo_kegg_glycan.rb +72 -0
  101. data/sample/demo_kegg_orthology.rb +62 -0
  102. data/sample/demo_kegg_reaction.rb +66 -0
  103. data/sample/demo_kegg_taxonomy.rb +92 -0
  104. data/sample/demo_keggapi.rb +502 -0
  105. data/sample/demo_litdb.rb +42 -0
  106. data/sample/demo_locations.rb +99 -0
  107. data/sample/demo_ncbi_rest.rb +130 -0
  108. data/sample/demo_nucleicacid.rb +49 -0
  109. data/sample/demo_pathway.rb +196 -0
  110. data/sample/demo_prosite.rb +120 -0
  111. data/sample/demo_psort.rb +138 -0
  112. data/sample/demo_psort_report.rb +70 -0
  113. data/sample/demo_pubmed.rb +118 -0
  114. data/sample/demo_sirna.rb +63 -0
  115. data/sample/demo_sosui_report.rb +89 -0
  116. data/sample/demo_targetp_report.rb +135 -0
  117. data/sample/demo_tmhmm_report.rb +68 -0
  118. data/sample/pmfetch.rb +13 -4
  119. data/sample/pmsearch.rb +15 -4
  120. data/sample/test_phyloxml_big.rb +205 -0
  121. data/test/bioruby_test_helper.rb +61 -0
  122. data/test/data/KEGG/1.1.1.1.enzyme +935 -0
  123. data/test/data/KEGG/C00025.compound +102 -0
  124. data/test/data/KEGG/D00063.drug +104 -0
  125. data/test/data/KEGG/G00024.glycan +47 -0
  126. data/test/data/KEGG/G01366.glycan +18 -0
  127. data/test/data/KEGG/K02338.orthology +902 -0
  128. data/test/data/KEGG/R00006.reaction +14 -0
  129. data/test/data/fastq/README.txt +109 -0
  130. data/test/data/fastq/error_diff_ids.fastq +20 -0
  131. data/test/data/fastq/error_double_qual.fastq +22 -0
  132. data/test/data/fastq/error_double_seq.fastq +22 -0
  133. data/test/data/fastq/error_long_qual.fastq +20 -0
  134. data/test/data/fastq/error_no_qual.fastq +20 -0
  135. data/test/data/fastq/error_qual_del.fastq +20 -0
  136. data/test/data/fastq/error_qual_escape.fastq +20 -0
  137. data/test/data/fastq/error_qual_null.fastq +0 -0
  138. data/test/data/fastq/error_qual_space.fastq +21 -0
  139. data/test/data/fastq/error_qual_tab.fastq +21 -0
  140. data/test/data/fastq/error_qual_unit_sep.fastq +20 -0
  141. data/test/data/fastq/error_qual_vtab.fastq +20 -0
  142. data/test/data/fastq/error_short_qual.fastq +20 -0
  143. data/test/data/fastq/error_spaces.fastq +20 -0
  144. data/test/data/fastq/error_tabs.fastq +21 -0
  145. data/test/data/fastq/error_trunc_at_plus.fastq +19 -0
  146. data/test/data/fastq/error_trunc_at_qual.fastq +19 -0
  147. data/test/data/fastq/error_trunc_at_seq.fastq +18 -0
  148. data/test/data/fastq/error_trunc_in_plus.fastq +19 -0
  149. data/test/data/fastq/error_trunc_in_qual.fastq +20 -0
  150. data/test/data/fastq/error_trunc_in_seq.fastq +18 -0
  151. data/test/data/fastq/error_trunc_in_title.fastq +17 -0
  152. data/test/data/fastq/illumina_full_range_as_illumina.fastq +8 -0
  153. data/test/data/fastq/illumina_full_range_as_sanger.fastq +8 -0
  154. data/test/data/fastq/illumina_full_range_as_solexa.fastq +8 -0
  155. data/test/data/fastq/illumina_full_range_original_illumina.fastq +8 -0
  156. data/test/data/fastq/longreads_as_illumina.fastq +40 -0
  157. data/test/data/fastq/longreads_as_sanger.fastq +40 -0
  158. data/test/data/fastq/longreads_as_solexa.fastq +40 -0
  159. data/test/data/fastq/longreads_original_sanger.fastq +120 -0
  160. data/test/data/fastq/misc_dna_as_illumina.fastq +16 -0
  161. data/test/data/fastq/misc_dna_as_sanger.fastq +16 -0
  162. data/test/data/fastq/misc_dna_as_solexa.fastq +16 -0
  163. data/test/data/fastq/misc_dna_original_sanger.fastq +16 -0
  164. data/test/data/fastq/misc_rna_as_illumina.fastq +16 -0
  165. data/test/data/fastq/misc_rna_as_sanger.fastq +16 -0
  166. data/test/data/fastq/misc_rna_as_solexa.fastq +16 -0
  167. data/test/data/fastq/misc_rna_original_sanger.fastq +16 -0
  168. data/test/data/fastq/sanger_full_range_as_illumina.fastq +8 -0
  169. data/test/data/fastq/sanger_full_range_as_sanger.fastq +8 -0
  170. data/test/data/fastq/sanger_full_range_as_solexa.fastq +8 -0
  171. data/test/data/fastq/sanger_full_range_original_sanger.fastq +8 -0
  172. data/test/data/fastq/solexa_full_range_as_illumina.fastq +8 -0
  173. data/test/data/fastq/solexa_full_range_as_sanger.fastq +8 -0
  174. data/test/data/fastq/solexa_full_range_as_solexa.fastq +8 -0
  175. data/test/data/fastq/solexa_full_range_original_solexa.fastq +8 -0
  176. data/test/data/fastq/wrapping_as_illumina.fastq +12 -0
  177. data/test/data/fastq/wrapping_as_sanger.fastq +12 -0
  178. data/test/data/fastq/wrapping_as_solexa.fastq +12 -0
  179. data/test/data/fastq/wrapping_original_sanger.fastq +24 -0
  180. data/test/data/meme/db +0 -0
  181. data/test/data/meme/mast +0 -0
  182. data/test/data/meme/mast.out +13 -0
  183. data/test/data/meme/meme.out +3 -0
  184. data/test/data/phyloxml/apaf.xml +666 -0
  185. data/test/data/phyloxml/bcl_2.xml +2097 -0
  186. data/test/data/phyloxml/made_up.xml +144 -0
  187. data/test/data/phyloxml/ncbi_taxonomy_mollusca_short.xml +65 -0
  188. data/test/data/phyloxml/phyloxml_examples.xml +415 -0
  189. data/test/data/sanger_chromatogram/test_chromatogram_abif.ab1 +0 -0
  190. data/test/data/sanger_chromatogram/test_chromatogram_scf_v2.scf +0 -0
  191. data/test/data/sanger_chromatogram/test_chromatogram_scf_v3.scf +0 -0
  192. data/test/functional/bio/appl/test_pts1.rb +7 -5
  193. data/test/functional/bio/io/test_ensembl.rb +4 -3
  194. data/test/functional/bio/io/test_pubmed.rb +9 -3
  195. data/test/functional/bio/io/test_soapwsdl.rb +5 -4
  196. data/test/functional/bio/io/test_togows.rb +5 -4
  197. data/test/functional/bio/sequence/test_output_embl.rb +6 -4
  198. data/test/functional/bio/test_command.rb +54 -5
  199. data/test/runner.rb +5 -3
  200. data/test/unit/bio/appl/bl2seq/test_report.rb +5 -4
  201. data/test/unit/bio/appl/blast/test_ncbioptions.rb +4 -2
  202. data/test/unit/bio/appl/blast/test_report.rb +5 -4
  203. data/test/unit/bio/appl/blast/test_rpsblast.rb +5 -4
  204. data/test/unit/bio/appl/gcg/test_msf.rb +5 -5
  205. data/test/unit/bio/appl/genscan/test_report.rb +8 -9
  206. data/test/unit/bio/appl/hmmer/test_report.rb +5 -4
  207. data/test/unit/bio/appl/iprscan/test_report.rb +6 -5
  208. data/test/unit/bio/appl/mafft/test_report.rb +6 -5
  209. data/test/unit/bio/appl/meme/mast/test_report.rb +46 -0
  210. data/test/unit/bio/appl/meme/test_mast.rb +103 -0
  211. data/test/unit/bio/appl/meme/test_motif.rb +38 -0
  212. data/test/unit/bio/appl/paml/codeml/test_rates.rb +5 -4
  213. data/test/unit/bio/appl/paml/codeml/test_report.rb +5 -4
  214. data/test/unit/bio/appl/paml/test_codeml.rb +5 -4
  215. data/test/unit/bio/appl/sim4/test_report.rb +5 -4
  216. data/test/unit/bio/appl/sosui/test_report.rb +6 -5
  217. data/test/unit/bio/appl/targetp/test_report.rb +5 -3
  218. data/test/unit/bio/appl/test_blast.rb +5 -4
  219. data/test/unit/bio/appl/test_fasta.rb +4 -2
  220. data/test/unit/bio/appl/test_pts1.rb +4 -2
  221. data/test/unit/bio/appl/tmhmm/test_report.rb +6 -5
  222. data/test/unit/bio/data/test_aa.rb +5 -3
  223. data/test/unit/bio/data/test_codontable.rb +5 -4
  224. data/test/unit/bio/data/test_na.rb +5 -3
  225. data/test/unit/bio/db/biosql/tc_biosql.rb +5 -1
  226. data/test/unit/bio/db/embl/test_common.rb +4 -2
  227. data/test/unit/bio/db/embl/test_embl.rb +6 -6
  228. data/test/unit/bio/db/embl/test_embl_rel89.rb +6 -6
  229. data/test/unit/bio/db/embl/test_embl_to_bioseq.rb +7 -8
  230. data/test/unit/bio/db/embl/test_sptr.rb +6 -8
  231. data/test/unit/bio/db/embl/test_uniprot.rb +6 -5
  232. data/test/unit/bio/db/fasta/test_format_qual.rb +346 -0
  233. data/test/unit/bio/db/kegg/test_compound.rb +146 -0
  234. data/test/unit/bio/db/kegg/test_drug.rb +194 -0
  235. data/test/unit/bio/db/kegg/test_enzyme.rb +241 -0
  236. data/test/unit/bio/db/kegg/test_genes.rb +32 -4
  237. data/test/unit/bio/db/kegg/test_glycan.rb +260 -0
  238. data/test/unit/bio/db/kegg/test_orthology.rb +50 -0
  239. data/test/unit/bio/db/kegg/test_reaction.rb +96 -0
  240. data/test/unit/bio/db/pdb/test_pdb.rb +4 -2
  241. data/test/unit/bio/db/sanger_chromatogram/test_abif.rb +76 -0
  242. data/test/unit/bio/db/sanger_chromatogram/test_scf.rb +98 -0
  243. data/test/unit/bio/db/test_aaindex.rb +6 -6
  244. data/test/unit/bio/db/test_fasta.rb +5 -46
  245. data/test/unit/bio/db/test_fastq.rb +829 -0
  246. data/test/unit/bio/db/test_gff.rb +4 -2
  247. data/test/unit/bio/db/test_lasergene.rb +7 -5
  248. data/test/unit/bio/db/test_medline.rb +4 -2
  249. data/test/unit/bio/db/test_newick.rb +6 -6
  250. data/test/unit/bio/db/test_nexus.rb +4 -2
  251. data/test/unit/bio/db/test_phyloxml.rb +769 -0
  252. data/test/unit/bio/db/test_phyloxml_writer.rb +328 -0
  253. data/test/unit/bio/db/test_prosite.rb +6 -5
  254. data/test/unit/bio/db/test_qual.rb +63 -0
  255. data/test/unit/bio/db/test_rebase.rb +5 -3
  256. data/test/unit/bio/db/test_soft.rb +7 -6
  257. data/test/unit/bio/io/flatfile/test_autodetection.rb +6 -7
  258. data/test/unit/bio/io/flatfile/test_buffer.rb +6 -5
  259. data/test/unit/bio/io/flatfile/test_splitter.rb +4 -4
  260. data/test/unit/bio/io/test_ddbjxml.rb +4 -3
  261. data/test/unit/bio/io/test_ensembl.rb +5 -3
  262. data/test/unit/bio/io/test_fastacmd.rb +4 -3
  263. data/test/unit/bio/io/test_flatfile.rb +6 -5
  264. data/test/unit/bio/io/test_soapwsdl.rb +4 -3
  265. data/test/unit/bio/io/test_togows.rb +4 -2
  266. data/test/unit/bio/sequence/test_aa.rb +5 -3
  267. data/test/unit/bio/sequence/test_common.rb +4 -2
  268. data/test/unit/bio/sequence/test_compat.rb +4 -2
  269. data/test/unit/bio/sequence/test_dblink.rb +5 -3
  270. data/test/unit/bio/sequence/test_na.rb +4 -2
  271. data/test/unit/bio/sequence/test_quality_score.rb +330 -0
  272. data/test/unit/bio/shell/plugin/test_seq.rb +5 -3
  273. data/test/unit/bio/test_alignment.rb +5 -3
  274. data/test/unit/bio/test_command.rb +4 -3
  275. data/test/unit/bio/test_db.rb +5 -3
  276. data/test/unit/bio/test_feature.rb +4 -2
  277. data/test/unit/bio/test_location.rb +4 -2
  278. data/test/unit/bio/test_map.rb +5 -3
  279. data/test/unit/bio/test_pathway.rb +4 -2
  280. data/test/unit/bio/test_reference.rb +4 -2
  281. data/test/unit/bio/test_sequence.rb +5 -3
  282. data/test/unit/bio/test_shell.rb +5 -3
  283. data/test/unit/bio/test_tree.rb +6 -6
  284. data/test/unit/bio/util/restriction_enzyme/analysis/test_calculated_cuts.rb +4 -2
  285. data/test/unit/bio/util/restriction_enzyme/analysis/test_cut_ranges.rb +4 -2
  286. data/test/unit/bio/util/restriction_enzyme/analysis/test_sequence_range.rb +4 -2
  287. data/test/unit/bio/util/restriction_enzyme/double_stranded/test_aligned_strands.rb +4 -2
  288. data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_location_pair.rb +4 -2
  289. data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_location_pair_in_enzyme_notation.rb +4 -2
  290. data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_locations.rb +4 -2
  291. data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_locations_in_enzyme_notation.rb +4 -2
  292. data/test/unit/bio/util/restriction_enzyme/single_strand/test_cut_locations_in_enzyme_notation.rb +4 -2
  293. data/test/unit/bio/util/restriction_enzyme/test_analysis.rb +4 -2
  294. data/test/unit/bio/util/restriction_enzyme/test_cut_symbol.rb +4 -2
  295. data/test/unit/bio/util/restriction_enzyme/test_double_stranded.rb +4 -2
  296. data/test/unit/bio/util/restriction_enzyme/test_single_strand.rb +17 -13
  297. data/test/unit/bio/util/restriction_enzyme/test_single_strand_complement.rb +17 -13
  298. data/test/unit/bio/util/restriction_enzyme/test_string_formatting.rb +4 -2
  299. data/test/unit/bio/util/test_color_scheme.rb +5 -3
  300. data/test/unit/bio/util/test_contingency_table.rb +5 -3
  301. data/test/unit/bio/util/test_restriction_enzyme.rb +4 -2
  302. data/test/unit/bio/util/test_sirna.rb +6 -4
  303. metadata +147 -2
@@ -8,10 +8,12 @@
8
8
  # $Id:$
9
9
  #
10
10
 
11
+ # loading helper routine for testing bioruby
11
12
  require 'pathname'
12
- libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 5, 'lib')).cleanpath.to_s
13
- $:.unshift(libpath) unless $:.include?(libpath)
13
+ load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4,
14
+ 'bioruby_test_helper.rb')).cleanpath.to_s
14
15
 
16
+ # libraries needed for the tests
15
17
  require 'test/unit'
16
18
  require 'bio/util/restriction_enzyme/single_strand_complement'
17
19
 
@@ -128,17 +130,19 @@ class TestSingleStrandComplement < Test::Unit::TestCase #:nodoc:
128
130
  assert_raise(ArgumentError) { @t.new('a', [1,1,2]) }
129
131
  assert_raise(ArgumentError) { @t.new('a', 1,1,2,2) }
130
132
 
131
- assert_raise(ArgumentError) { @t.new(1, [1,2,3]) }
132
- assert_raise(ArgumentError) { @t.new('gaat^aca', [1,2,3]) }
133
- assert_raise(ArgumentError) { @t.new('gaat^^aca') }
134
- assert_raise(ArgumentError) { @t.new('z', [1,2,3]) }
135
-
136
- assert_raise(ArgumentError) { @t.new('g', [0,1,2]) }
137
- assert_raise(ArgumentError) { @t.new('g', 0,1,2,0) }
138
- assert_raise(ArgumentError) { @t.new('g', [0,1,1,2]) }
139
- assert_raise(ArgumentError) { @t.new('g', 0,1,1,2,2) }
140
- assert_raise(ArgumentError) { @t.new(1,2,3) }
141
- assert_raise(ArgumentError) { @t.new(1,2,'g') }
133
+ # NOTE t| 2009-09-19 commented out for library efficiency
134
+ # re: validate_args(sequence, c) in util/restriction_enzyme/single_strand/single_strand.rb
135
+ # assert_raise(ArgumentError) { @t.new(1, [1,2,3]) }
136
+ # assert_raise(ArgumentError) { @t.new('gaat^aca', [1,2,3]) }
137
+ # assert_raise(ArgumentError) { @t.new('gaat^^aca') }
138
+ # assert_raise(ArgumentError) { @t.new('z', [1,2,3]) }
139
+ #
140
+ # assert_raise(ArgumentError) { @t.new('g', [0,1,2]) }
141
+ # assert_raise(ArgumentError) { @t.new('g', 0,1,2,0) }
142
+ # assert_raise(ArgumentError) { @t.new('g', [0,1,1,2]) }
143
+ # assert_raise(ArgumentError) { @t.new('g', 0,1,1,2,2) }
144
+ # assert_raise(ArgumentError) { @t.new(1,2,3) }
145
+ # assert_raise(ArgumentError) { @t.new(1,2,'g') }
142
146
  end
143
147
 
144
148
 
@@ -8,10 +8,12 @@
8
8
  # $Id:$
9
9
  #
10
10
 
11
+ # loading helper routine for testing bioruby
11
12
  require 'pathname'
12
- libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 5, 'lib')).cleanpath.to_s
13
- $:.unshift(libpath) unless $:.include?(libpath)
13
+ load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4,
14
+ 'bioruby_test_helper.rb')).cleanpath.to_s
14
15
 
16
+ # libraries needed for the tests
15
17
  require 'test/unit'
16
18
  require 'bio/util/restriction_enzyme/string_formatting'
17
19
 
@@ -5,13 +5,15 @@
5
5
  # Copyright:: Copyright (c) 2005-2007 Midwinter Laboratories, LLC (http://midwinterlabs.com)
6
6
  # License:: The Ruby License
7
7
  #
8
- # $Id: test_color_scheme.rb,v 1.3 2007/04/05 23:35:44 trevor Exp $
8
+ # $Id:$
9
9
  #
10
10
 
11
+ # loading helper routine for testing bioruby
11
12
  require 'pathname'
12
- libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4 , 'lib')).cleanpath.to_s
13
- $:.unshift(libpath) unless $:.include?(libpath)
13
+ load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 3,
14
+ 'bioruby_test_helper.rb')).cleanpath.to_s
14
15
 
16
+ # libraries needed for the tests
15
17
  require 'test/unit'
16
18
  require 'bio/util/color_scheme'
17
19
 
@@ -5,13 +5,15 @@
5
5
  # Copyright:: Copyright (c) 2005-2007 Midwinter Laboratories, LLC (http://midwinterlabs.com)
6
6
  # License:: The Ruby License
7
7
  #
8
- # $Id: test_contingency_table.rb,v 1.4 2007/04/05 23:35:44 trevor Exp $
8
+ # $Id:$
9
9
  #
10
10
 
11
+ # loading helper routine for testing bioruby
11
12
  require 'pathname'
12
- libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4 , 'lib')).cleanpath.to_s
13
- $:.unshift(libpath) unless $:.include?(libpath)
13
+ load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 3,
14
+ 'bioruby_test_helper.rb')).cleanpath.to_s
14
15
 
16
+ # libraries needed for the tests
15
17
  require 'test/unit'
16
18
  require 'bio/util/contingency_table'
17
19
 
@@ -8,10 +8,12 @@
8
8
  # $Id:$
9
9
  #
10
10
 
11
+ # loading helper routine for testing bioruby
11
12
  require 'pathname'
12
- libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4, 'lib')).cleanpath.to_s
13
- $:.unshift(libpath) unless $:.include?(libpath)
13
+ load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 3,
14
+ 'bioruby_test_helper.rb')).cleanpath.to_s
14
15
 
16
+ # libraries needed for the tests
15
17
  require 'test/unit'
16
18
  require 'bio/util/restriction_enzyme.rb'
17
19
 
@@ -1,16 +1,18 @@
1
1
  #
2
2
  # test/unit/bio/util/test_sirna.rb - Unit test for Bio::SiRNA.
3
3
  #
4
- # Copyright:: Copyright (C) 2005 Mitsuteru C. Nakap <n@bioruby.org>
4
+ # Copyright:: Copyright (C) 2005 Mitsuteru C. Nakao <n@bioruby.org>
5
5
  # License:: The Ruby License
6
6
  #
7
- # $Id: test_sirna.rb,v 1.4 2007/04/05 23:35:44 trevor Exp $
7
+ # $Id:$
8
8
  #
9
9
 
10
+ # loading helper routine for testing bioruby
10
11
  require 'pathname'
11
- libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4 , 'lib')).cleanpath.to_s
12
- $:.unshift(libpath) unless $:.include?(libpath)
12
+ load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 3,
13
+ 'bioruby_test_helper.rb')).cleanpath.to_s
13
14
 
15
+ # libraries needed for the tests
14
16
  require 'test/unit'
15
17
  require 'bio/util/sirna'
16
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BioRuby project
@@ -9,7 +9,7 @@ autorequire: bio
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-02 00:00:00 +09:00
12
+ date: 2009-12-28 00:00:00 +09:00
13
13
  default_executable: bioruby
14
14
  dependencies: []
15
15
 
@@ -28,6 +28,7 @@ extra_rdoc_files:
28
28
  - KNOWN_ISSUES.rdoc
29
29
  - README.rdoc
30
30
  - README_DEV.rdoc
31
+ - RELEASE_NOTES.rdoc
31
32
  - doc/Changes-1.3.rdoc
32
33
  files:
33
34
  - COPYING
@@ -39,6 +40,7 @@ files:
39
40
  - LGPL
40
41
  - README.rdoc
41
42
  - README_DEV.rdoc
43
+ - RELEASE_NOTES.rdoc
42
44
  - Rakefile
43
45
  - bin/bioruby
44
46
  - bin/br_biofetch.rb
@@ -47,6 +49,7 @@ files:
47
49
  - bin/br_pmfetch.rb
48
50
  - bioruby.gemspec
49
51
  - bioruby.gemspec.erb
52
+ - doc/ChangeLog-before-1.3.1
50
53
  - doc/Changes-0.7.rd
51
54
  - doc/Changes-1.3.rdoc
52
55
  - doc/KEGG_API.rd
@@ -87,6 +90,9 @@ files:
87
90
  - lib/bio/appl/iprscan/report.rb
88
91
  - lib/bio/appl/mafft.rb
89
92
  - lib/bio/appl/mafft/report.rb
93
+ - lib/bio/appl/meme/mast.rb
94
+ - lib/bio/appl/meme/mast/report.rb
95
+ - lib/bio/appl/meme/motif.rb
90
96
  - lib/bio/appl/muscle.rb
91
97
  - lib/bio/appl/paml/baseml.rb
92
98
  - lib/bio/appl/paml/baseml/report.rb
@@ -133,6 +139,11 @@ files:
133
139
  - lib/bio/db/fasta/defline.rb
134
140
  - lib/bio/db/fasta/fasta_to_biosequence.rb
135
141
  - lib/bio/db/fasta/format_fasta.rb
142
+ - lib/bio/db/fasta/format_qual.rb
143
+ - lib/bio/db/fasta/qual.rb
144
+ - lib/bio/db/fastq.rb
145
+ - lib/bio/db/fastq/fastq_to_biosequence.rb
146
+ - lib/bio/db/fastq/format_fastq.rb
136
147
  - lib/bio/db/genbank/common.rb
137
148
  - lib/bio/db/genbank/ddbj.rb
138
149
  - lib/bio/db/genbank/format_genbank.rb
@@ -143,6 +154,7 @@ files:
143
154
  - lib/bio/db/gff.rb
144
155
  - lib/bio/db/go.rb
145
156
  - lib/bio/db/kegg/brite.rb
157
+ - lib/bio/db/kegg/common.rb
146
158
  - lib/bio/db/kegg/compound.rb
147
159
  - lib/bio/db/kegg/drug.rb
148
160
  - lib/bio/db/kegg/enzyme.rb
@@ -169,8 +181,16 @@ files:
169
181
  - lib/bio/db/pdb/pdb.rb
170
182
  - lib/bio/db/pdb/residue.rb
171
183
  - lib/bio/db/pdb/utils.rb
184
+ - lib/bio/db/phyloxml/phyloxml.xsd
185
+ - lib/bio/db/phyloxml/phyloxml_elements.rb
186
+ - lib/bio/db/phyloxml/phyloxml_parser.rb
187
+ - lib/bio/db/phyloxml/phyloxml_writer.rb
172
188
  - lib/bio/db/prosite.rb
173
189
  - lib/bio/db/rebase.rb
190
+ - lib/bio/db/sanger_chromatogram/abif.rb
191
+ - lib/bio/db/sanger_chromatogram/chromatogram.rb
192
+ - lib/bio/db/sanger_chromatogram/chromatogram_to_biosequence.rb
193
+ - lib/bio/db/sanger_chromatogram/scf.rb
174
194
  - lib/bio/db/soft.rb
175
195
  - lib/bio/db/transfac.rb
176
196
  - lib/bio/feature.rb
@@ -215,6 +235,7 @@ files:
215
235
  - lib/bio/sequence/format_raw.rb
216
236
  - lib/bio/sequence/generic.rb
217
237
  - lib/bio/sequence/na.rb
238
+ - lib/bio/sequence/quality_score.rb
218
239
  - lib/bio/shell.rb
219
240
  - lib/bio/shell/core.rb
220
241
  - lib/bio/shell/demo.rb
@@ -296,7 +317,42 @@ files:
296
317
  - sample/biofetch.rb
297
318
  - sample/color_scheme_na.rb
298
319
  - sample/dbget
320
+ - sample/demo_aaindex.rb
321
+ - sample/demo_aminoacid.rb
322
+ - sample/demo_bl2seq_report.rb
323
+ - sample/demo_blast_report.rb
324
+ - sample/demo_codontable.rb
325
+ - sample/demo_das.rb
326
+ - sample/demo_ddbjxml.rb
327
+ - sample/demo_fasta_remote.rb
328
+ - sample/demo_fastaformat.rb
329
+ - sample/demo_genbank.rb
330
+ - sample/demo_genscan_report.rb
331
+ - sample/demo_gff1.rb
332
+ - sample/demo_go.rb
333
+ - sample/demo_hmmer_report.rb
334
+ - sample/demo_kegg_compound.rb
335
+ - sample/demo_kegg_drug.rb
336
+ - sample/demo_kegg_genome.rb
337
+ - sample/demo_kegg_glycan.rb
338
+ - sample/demo_kegg_orthology.rb
339
+ - sample/demo_kegg_reaction.rb
340
+ - sample/demo_kegg_taxonomy.rb
341
+ - sample/demo_keggapi.rb
342
+ - sample/demo_litdb.rb
343
+ - sample/demo_locations.rb
344
+ - sample/demo_ncbi_rest.rb
345
+ - sample/demo_nucleicacid.rb
346
+ - sample/demo_pathway.rb
347
+ - sample/demo_prosite.rb
348
+ - sample/demo_psort.rb
349
+ - sample/demo_psort_report.rb
350
+ - sample/demo_pubmed.rb
299
351
  - sample/demo_sequence.rb
352
+ - sample/demo_sirna.rb
353
+ - sample/demo_sosui_report.rb
354
+ - sample/demo_targetp_report.rb
355
+ - sample/demo_tmhmm_report.rb
300
356
  - sample/enzymes.rb
301
357
  - sample/fasta2tab.rb
302
358
  - sample/fastagrep.rb
@@ -318,11 +374,20 @@ files:
318
374
  - sample/psortplot_html.rb
319
375
  - sample/ssearch2tab.rb
320
376
  - sample/tdiary.rb
377
+ - sample/test_phyloxml_big.rb
321
378
  - sample/tfastx2tab.rb
322
379
  - sample/vs-genes.rb
323
380
  - setup.rb
381
+ - test/bioruby_test_helper.rb
324
382
  - test/data/HMMER/hmmpfam.out
325
383
  - test/data/HMMER/hmmsearch.out
384
+ - test/data/KEGG/1.1.1.1.enzyme
385
+ - test/data/KEGG/C00025.compound
386
+ - test/data/KEGG/D00063.drug
387
+ - test/data/KEGG/G00024.glycan
388
+ - test/data/KEGG/G01366.glycan
389
+ - test/data/KEGG/K02338.orthology
390
+ - test/data/KEGG/R00006.reaction
326
391
  - test/data/SOSUI/sample.report
327
392
  - test/data/TMHMM/sample.report
328
393
  - test/data/aaindex/DAYM780301
@@ -340,16 +405,79 @@ files:
340
405
  - test/data/embl/AB090716.embl.rel89
341
406
  - test/data/fasta/example1.txt
342
407
  - test/data/fasta/example2.txt
408
+ - test/data/fastq/README.txt
409
+ - test/data/fastq/error_diff_ids.fastq
410
+ - test/data/fastq/error_double_qual.fastq
411
+ - test/data/fastq/error_double_seq.fastq
412
+ - test/data/fastq/error_long_qual.fastq
413
+ - test/data/fastq/error_no_qual.fastq
414
+ - test/data/fastq/error_qual_del.fastq
415
+ - test/data/fastq/error_qual_escape.fastq
416
+ - test/data/fastq/error_qual_null.fastq
417
+ - test/data/fastq/error_qual_space.fastq
418
+ - test/data/fastq/error_qual_tab.fastq
419
+ - test/data/fastq/error_qual_unit_sep.fastq
420
+ - test/data/fastq/error_qual_vtab.fastq
421
+ - test/data/fastq/error_short_qual.fastq
422
+ - test/data/fastq/error_spaces.fastq
423
+ - test/data/fastq/error_tabs.fastq
424
+ - test/data/fastq/error_trunc_at_plus.fastq
425
+ - test/data/fastq/error_trunc_at_qual.fastq
426
+ - test/data/fastq/error_trunc_at_seq.fastq
427
+ - test/data/fastq/error_trunc_in_plus.fastq
428
+ - test/data/fastq/error_trunc_in_qual.fastq
429
+ - test/data/fastq/error_trunc_in_seq.fastq
430
+ - test/data/fastq/error_trunc_in_title.fastq
431
+ - test/data/fastq/illumina_full_range_as_illumina.fastq
432
+ - test/data/fastq/illumina_full_range_as_sanger.fastq
433
+ - test/data/fastq/illumina_full_range_as_solexa.fastq
434
+ - test/data/fastq/illumina_full_range_original_illumina.fastq
435
+ - test/data/fastq/longreads_as_illumina.fastq
436
+ - test/data/fastq/longreads_as_sanger.fastq
437
+ - test/data/fastq/longreads_as_solexa.fastq
438
+ - test/data/fastq/longreads_original_sanger.fastq
439
+ - test/data/fastq/misc_dna_as_illumina.fastq
440
+ - test/data/fastq/misc_dna_as_sanger.fastq
441
+ - test/data/fastq/misc_dna_as_solexa.fastq
442
+ - test/data/fastq/misc_dna_original_sanger.fastq
443
+ - test/data/fastq/misc_rna_as_illumina.fastq
444
+ - test/data/fastq/misc_rna_as_sanger.fastq
445
+ - test/data/fastq/misc_rna_as_solexa.fastq
446
+ - test/data/fastq/misc_rna_original_sanger.fastq
447
+ - test/data/fastq/sanger_full_range_as_illumina.fastq
448
+ - test/data/fastq/sanger_full_range_as_sanger.fastq
449
+ - test/data/fastq/sanger_full_range_as_solexa.fastq
450
+ - test/data/fastq/sanger_full_range_original_sanger.fastq
451
+ - test/data/fastq/solexa_full_range_as_illumina.fastq
452
+ - test/data/fastq/solexa_full_range_as_sanger.fastq
453
+ - test/data/fastq/solexa_full_range_as_solexa.fastq
454
+ - test/data/fastq/solexa_full_range_original_solexa.fastq
455
+ - test/data/fastq/wrapping_as_illumina.fastq
456
+ - test/data/fastq/wrapping_as_sanger.fastq
457
+ - test/data/fastq/wrapping_as_solexa.fastq
458
+ - test/data/fastq/wrapping_original_sanger.fastq
343
459
  - test/data/gcg/pileup-aa.msf
344
460
  - test/data/genscan/sample.report
345
461
  - test/data/iprscan/merged.raw
346
462
  - test/data/iprscan/merged.txt
463
+ - test/data/meme/db
464
+ - test/data/meme/mast
465
+ - test/data/meme/mast.out
466
+ - test/data/meme/meme.out
347
467
  - test/data/paml/codeml/control_file.txt
348
468
  - test/data/paml/codeml/output.txt
349
469
  - test/data/paml/codeml/rates
470
+ - test/data/phyloxml/apaf.xml
471
+ - test/data/phyloxml/bcl_2.xml
472
+ - test/data/phyloxml/made_up.xml
473
+ - test/data/phyloxml/ncbi_taxonomy_mollusca_short.xml
474
+ - test/data/phyloxml/phyloxml_examples.xml
350
475
  - test/data/prosite/prosite.dat
351
476
  - test/data/refseq/nm_126355.entret
352
477
  - test/data/rpsblast/misc.rpsblast
478
+ - test/data/sanger_chromatogram/test_chromatogram_abif.ab1
479
+ - test/data/sanger_chromatogram/test_chromatogram_scf_v2.scf
480
+ - test/data/sanger_chromatogram/test_chromatogram_scf_v3.scf
353
481
  - test/data/sim4/complement-A4.sim4
354
482
  - test/data/sim4/simple-A4.sim4
355
483
  - test/data/sim4/simple2-A4.sim4
@@ -373,6 +501,9 @@ files:
373
501
  - test/unit/bio/appl/hmmer/test_report.rb
374
502
  - test/unit/bio/appl/iprscan/test_report.rb
375
503
  - test/unit/bio/appl/mafft/test_report.rb
504
+ - test/unit/bio/appl/meme/mast/test_report.rb
505
+ - test/unit/bio/appl/meme/test_mast.rb
506
+ - test/unit/bio/appl/meme/test_motif.rb
376
507
  - test/unit/bio/appl/paml/codeml/test_rates.rb
377
508
  - test/unit/bio/appl/paml/codeml/test_report.rb
378
509
  - test/unit/bio/appl/paml/test_codeml.rb
@@ -394,16 +525,29 @@ files:
394
525
  - test/unit/bio/db/embl/test_embl_to_bioseq.rb
395
526
  - test/unit/bio/db/embl/test_sptr.rb
396
527
  - test/unit/bio/db/embl/test_uniprot.rb
528
+ - test/unit/bio/db/fasta/test_format_qual.rb
529
+ - test/unit/bio/db/kegg/test_compound.rb
530
+ - test/unit/bio/db/kegg/test_drug.rb
531
+ - test/unit/bio/db/kegg/test_enzyme.rb
397
532
  - test/unit/bio/db/kegg/test_genes.rb
533
+ - test/unit/bio/db/kegg/test_glycan.rb
534
+ - test/unit/bio/db/kegg/test_orthology.rb
535
+ - test/unit/bio/db/kegg/test_reaction.rb
398
536
  - test/unit/bio/db/pdb/test_pdb.rb
537
+ - test/unit/bio/db/sanger_chromatogram/test_abif.rb
538
+ - test/unit/bio/db/sanger_chromatogram/test_scf.rb
399
539
  - test/unit/bio/db/test_aaindex.rb
400
540
  - test/unit/bio/db/test_fasta.rb
541
+ - test/unit/bio/db/test_fastq.rb
401
542
  - test/unit/bio/db/test_gff.rb
402
543
  - test/unit/bio/db/test_lasergene.rb
403
544
  - test/unit/bio/db/test_medline.rb
404
545
  - test/unit/bio/db/test_newick.rb
405
546
  - test/unit/bio/db/test_nexus.rb
547
+ - test/unit/bio/db/test_phyloxml.rb
548
+ - test/unit/bio/db/test_phyloxml_writer.rb
406
549
  - test/unit/bio/db/test_prosite.rb
550
+ - test/unit/bio/db/test_qual.rb
407
551
  - test/unit/bio/db/test_rebase.rb
408
552
  - test/unit/bio/db/test_soft.rb
409
553
  - test/unit/bio/io/flatfile/test_autodetection.rb
@@ -420,6 +564,7 @@ files:
420
564
  - test/unit/bio/sequence/test_compat.rb
421
565
  - test/unit/bio/sequence/test_dblink.rb
422
566
  - test/unit/bio/sequence/test_na.rb
567
+ - test/unit/bio/sequence/test_quality_score.rb
423
568
  - test/unit/bio/shell/plugin/test_seq.rb
424
569
  - test/unit/bio/test_alignment.rb
425
570
  - test/unit/bio/test_command.rb