ngoto-bio 1.2.9.9001
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +2046 -0
- data/README.rdoc +223 -0
- data/README_DEV.rdoc +285 -0
- data/Rakefile +70 -0
- data/bin/bioruby +44 -0
- data/bin/br_biofetch.rb +47 -0
- data/bin/br_bioflat.rb +293 -0
- data/bin/br_biogetseq.rb +45 -0
- data/bin/br_pmfetch.rb +421 -0
- data/bioruby.gemspec +463 -0
- data/bioruby.gemspec.erb +79 -0
- data/doc/Changes-0.7.rd +369 -0
- data/doc/Changes-1.3.rdoc +195 -0
- data/doc/KEGG_API.rd +1843 -0
- data/doc/KEGG_API.rd.ja +1834 -0
- data/doc/Tutorial.rd +1296 -0
- data/doc/Tutorial.rd.ja +2640 -0
- data/etc/bioinformatics/seqdatabase.ini +210 -0
- data/extconf.rb +2 -0
- data/lib/bio/alignment.rb +2518 -0
- data/lib/bio/appl/bl2seq/report.rb +334 -0
- data/lib/bio/appl/blast/ddbj.rb +142 -0
- data/lib/bio/appl/blast/format0.rb +1438 -0
- data/lib/bio/appl/blast/format8.rb +83 -0
- data/lib/bio/appl/blast/genomenet.rb +263 -0
- data/lib/bio/appl/blast/ncbioptions.rb +220 -0
- data/lib/bio/appl/blast/remote.rb +105 -0
- data/lib/bio/appl/blast/report.rb +767 -0
- data/lib/bio/appl/blast/rexml.rb +144 -0
- data/lib/bio/appl/blast/rpsblast.rb +277 -0
- data/lib/bio/appl/blast/wublast.rb +671 -0
- data/lib/bio/appl/blast/xmlparser.rb +236 -0
- data/lib/bio/appl/blast.rb +505 -0
- data/lib/bio/appl/blat/report.rb +530 -0
- data/lib/bio/appl/clustalw/report.rb +152 -0
- data/lib/bio/appl/clustalw.rb +219 -0
- data/lib/bio/appl/emboss.rb +203 -0
- data/lib/bio/appl/fasta/format10.rb +325 -0
- data/lib/bio/appl/fasta.rb +235 -0
- data/lib/bio/appl/gcg/msf.rb +212 -0
- data/lib/bio/appl/gcg/seq.rb +195 -0
- data/lib/bio/appl/genscan/report.rb +552 -0
- data/lib/bio/appl/hmmer/report.rb +683 -0
- data/lib/bio/appl/hmmer.rb +126 -0
- data/lib/bio/appl/iprscan/report.rb +374 -0
- data/lib/bio/appl/mafft/report.rb +226 -0
- data/lib/bio/appl/mafft.rb +259 -0
- data/lib/bio/appl/muscle.rb +52 -0
- data/lib/bio/appl/paml/baseml/report.rb +32 -0
- data/lib/bio/appl/paml/baseml.rb +95 -0
- data/lib/bio/appl/paml/codeml/rates.rb +67 -0
- data/lib/bio/appl/paml/codeml/report.rb +67 -0
- data/lib/bio/appl/paml/codeml.rb +242 -0
- data/lib/bio/appl/paml/common.rb +348 -0
- data/lib/bio/appl/paml/common_report.rb +38 -0
- data/lib/bio/appl/paml/yn00/report.rb +32 -0
- data/lib/bio/appl/paml/yn00.rb +103 -0
- data/lib/bio/appl/phylip/alignment.rb +129 -0
- data/lib/bio/appl/phylip/distance_matrix.rb +96 -0
- data/lib/bio/appl/probcons.rb +41 -0
- data/lib/bio/appl/psort/report.rb +457 -0
- data/lib/bio/appl/psort.rb +548 -0
- data/lib/bio/appl/pts1.rb +263 -0
- data/lib/bio/appl/sim4/report.rb +485 -0
- data/lib/bio/appl/sim4.rb +124 -0
- data/lib/bio/appl/sosui/report.rb +151 -0
- data/lib/bio/appl/spidey/report.rb +593 -0
- data/lib/bio/appl/targetp/report.rb +267 -0
- data/lib/bio/appl/tcoffee.rb +55 -0
- data/lib/bio/appl/tmhmm/report.rb +231 -0
- data/lib/bio/command.rb +593 -0
- data/lib/bio/compat/features.rb +157 -0
- data/lib/bio/compat/references.rb +128 -0
- data/lib/bio/data/aa.rb +349 -0
- data/lib/bio/data/codontable.rb +722 -0
- data/lib/bio/data/na.rb +223 -0
- data/lib/bio/db/aaindex.rb +357 -0
- data/lib/bio/db/biosql/biosql_to_biosequence.rb +67 -0
- data/lib/bio/db/biosql/sequence.rb +508 -0
- data/lib/bio/db/embl/common.rb +352 -0
- data/lib/bio/db/embl/embl.rb +500 -0
- data/lib/bio/db/embl/embl_to_biosequence.rb +85 -0
- data/lib/bio/db/embl/format_embl.rb +190 -0
- data/lib/bio/db/embl/sptr.rb +1283 -0
- data/lib/bio/db/embl/swissprot.rb +42 -0
- data/lib/bio/db/embl/trembl.rb +41 -0
- data/lib/bio/db/embl/uniprot.rb +42 -0
- data/lib/bio/db/fantom.rb +597 -0
- data/lib/bio/db/fasta/defline.rb +532 -0
- data/lib/bio/db/fasta/fasta_to_biosequence.rb +63 -0
- data/lib/bio/db/fasta/format_fasta.rb +97 -0
- data/lib/bio/db/fasta.rb +410 -0
- data/lib/bio/db/genbank/common.rb +307 -0
- data/lib/bio/db/genbank/ddbj.rb +22 -0
- data/lib/bio/db/genbank/format_genbank.rb +187 -0
- data/lib/bio/db/genbank/genbank.rb +250 -0
- data/lib/bio/db/genbank/genbank_to_biosequence.rb +86 -0
- data/lib/bio/db/genbank/genpept.rb +60 -0
- data/lib/bio/db/genbank/refseq.rb +18 -0
- data/lib/bio/db/gff.rb +1846 -0
- data/lib/bio/db/go.rb +481 -0
- data/lib/bio/db/kegg/brite.rb +41 -0
- data/lib/bio/db/kegg/compound.rb +131 -0
- data/lib/bio/db/kegg/drug.rb +98 -0
- data/lib/bio/db/kegg/enzyme.rb +148 -0
- data/lib/bio/db/kegg/expression.rb +155 -0
- data/lib/bio/db/kegg/genes.rb +263 -0
- data/lib/bio/db/kegg/genome.rb +241 -0
- data/lib/bio/db/kegg/glycan.rb +166 -0
- data/lib/bio/db/kegg/keggtab.rb +357 -0
- data/lib/bio/db/kegg/kgml.rb +256 -0
- data/lib/bio/db/kegg/orthology.rb +136 -0
- data/lib/bio/db/kegg/reaction.rb +82 -0
- data/lib/bio/db/kegg/taxonomy.rb +331 -0
- data/lib/bio/db/lasergene.rb +209 -0
- data/lib/bio/db/litdb.rb +107 -0
- data/lib/bio/db/medline.rb +326 -0
- data/lib/bio/db/nbrf.rb +191 -0
- data/lib/bio/db/newick.rb +658 -0
- data/lib/bio/db/nexus.rb +1854 -0
- data/lib/bio/db/pdb/atom.rb +77 -0
- data/lib/bio/db/pdb/chain.rb +210 -0
- data/lib/bio/db/pdb/chemicalcomponent.rb +224 -0
- data/lib/bio/db/pdb/model.rb +148 -0
- data/lib/bio/db/pdb/pdb.rb +1911 -0
- data/lib/bio/db/pdb/residue.rb +176 -0
- data/lib/bio/db/pdb/utils.rb +399 -0
- data/lib/bio/db/pdb.rb +29 -0
- data/lib/bio/db/prosite.rb +597 -0
- data/lib/bio/db/rebase.rb +456 -0
- data/lib/bio/db/soft.rb +404 -0
- data/lib/bio/db/transfac.rb +375 -0
- data/lib/bio/db.rb +329 -0
- data/lib/bio/feature.rb +139 -0
- data/lib/bio/io/biosql/biodatabase.rb +64 -0
- data/lib/bio/io/biosql/bioentry.rb +29 -0
- data/lib/bio/io/biosql/bioentry_dbxref.rb +11 -0
- data/lib/bio/io/biosql/bioentry_path.rb +12 -0
- data/lib/bio/io/biosql/bioentry_qualifier_value.rb +10 -0
- data/lib/bio/io/biosql/bioentry_reference.rb +10 -0
- data/lib/bio/io/biosql/bioentry_relationship.rb +10 -0
- data/lib/bio/io/biosql/biosequence.rb +11 -0
- data/lib/bio/io/biosql/comment.rb +7 -0
- data/lib/bio/io/biosql/config/database.yml +20 -0
- data/lib/bio/io/biosql/dbxref.rb +13 -0
- data/lib/bio/io/biosql/dbxref_qualifier_value.rb +12 -0
- data/lib/bio/io/biosql/location.rb +32 -0
- data/lib/bio/io/biosql/location_qualifier_value.rb +11 -0
- data/lib/bio/io/biosql/ontology.rb +10 -0
- data/lib/bio/io/biosql/reference.rb +9 -0
- data/lib/bio/io/biosql/seqfeature.rb +32 -0
- data/lib/bio/io/biosql/seqfeature_dbxref.rb +11 -0
- data/lib/bio/io/biosql/seqfeature_path.rb +11 -0
- data/lib/bio/io/biosql/seqfeature_qualifier_value.rb +20 -0
- data/lib/bio/io/biosql/seqfeature_relationship.rb +11 -0
- data/lib/bio/io/biosql/taxon.rb +12 -0
- data/lib/bio/io/biosql/taxon_name.rb +9 -0
- data/lib/bio/io/biosql/term.rb +27 -0
- data/lib/bio/io/biosql/term_dbxref.rb +11 -0
- data/lib/bio/io/biosql/term_path.rb +12 -0
- data/lib/bio/io/biosql/term_relationship.rb +13 -0
- data/lib/bio/io/biosql/term_relationship_term.rb +11 -0
- data/lib/bio/io/biosql/term_synonym.rb +10 -0
- data/lib/bio/io/das.rb +461 -0
- data/lib/bio/io/dbget.rb +194 -0
- data/lib/bio/io/ddbjxml.rb +638 -0
- data/lib/bio/io/ebisoap.rb +158 -0
- data/lib/bio/io/ensembl.rb +229 -0
- data/lib/bio/io/fastacmd.rb +163 -0
- data/lib/bio/io/fetch.rb +195 -0
- data/lib/bio/io/flatfile/autodetection.rb +545 -0
- data/lib/bio/io/flatfile/bdb.rb +253 -0
- data/lib/bio/io/flatfile/buffer.rb +237 -0
- data/lib/bio/io/flatfile/index.rb +1381 -0
- data/lib/bio/io/flatfile/indexer.rb +805 -0
- data/lib/bio/io/flatfile/splitter.rb +297 -0
- data/lib/bio/io/flatfile.rb +473 -0
- data/lib/bio/io/higet.rb +73 -0
- data/lib/bio/io/hinv.rb +442 -0
- data/lib/bio/io/keggapi.rb +805 -0
- data/lib/bio/io/ncbirest.rb +733 -0
- data/lib/bio/io/ncbisoap.rb +155 -0
- data/lib/bio/io/pubmed.rb +307 -0
- data/lib/bio/io/registry.rb +292 -0
- data/lib/bio/io/soapwsdl.rb +119 -0
- data/lib/bio/io/sql.rb +186 -0
- data/lib/bio/location.rb +867 -0
- data/lib/bio/map.rb +410 -0
- data/lib/bio/pathway.rb +960 -0
- data/lib/bio/reference.rb +602 -0
- data/lib/bio/sequence/aa.rb +125 -0
- data/lib/bio/sequence/adapter.rb +108 -0
- data/lib/bio/sequence/common.rb +310 -0
- data/lib/bio/sequence/compat.rb +123 -0
- data/lib/bio/sequence/dblink.rb +54 -0
- data/lib/bio/sequence/format.rb +358 -0
- data/lib/bio/sequence/format_raw.rb +23 -0
- data/lib/bio/sequence/generic.rb +24 -0
- data/lib/bio/sequence/na.rb +491 -0
- data/lib/bio/sequence.rb +456 -0
- data/lib/bio/shell/core.rb +578 -0
- data/lib/bio/shell/demo.rb +146 -0
- data/lib/bio/shell/interface.rb +218 -0
- data/lib/bio/shell/irb.rb +95 -0
- data/lib/bio/shell/object.rb +71 -0
- data/lib/bio/shell/plugin/blast.rb +42 -0
- data/lib/bio/shell/plugin/codon.rb +218 -0
- data/lib/bio/shell/plugin/das.rb +58 -0
- data/lib/bio/shell/plugin/emboss.rb +23 -0
- data/lib/bio/shell/plugin/entry.rb +105 -0
- data/lib/bio/shell/plugin/flatfile.rb +101 -0
- data/lib/bio/shell/plugin/keggapi.rb +181 -0
- data/lib/bio/shell/plugin/midi.rb +430 -0
- data/lib/bio/shell/plugin/obda.rb +45 -0
- data/lib/bio/shell/plugin/psort.rb +56 -0
- data/lib/bio/shell/plugin/seq.rb +247 -0
- data/lib/bio/shell/plugin/soap.rb +87 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/bioruby_generator.rb +29 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_classes.rhtml +4 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_log.rhtml +27 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_methods.rhtml +11 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_modules.rhtml +4 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_variables.rhtml +7 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-bg.gif +0 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-gem.png +0 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-link.gif +0 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby.css +368 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby.rhtml +47 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_controller.rb +144 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_helper.rb +47 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/commands.rhtml +8 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/history.rhtml +10 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/index.rhtml +26 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/spinner.gif +0 -0
- data/lib/bio/shell/script.rb +25 -0
- data/lib/bio/shell/setup.rb +109 -0
- data/lib/bio/shell/web.rb +102 -0
- data/lib/bio/shell.rb +44 -0
- data/lib/bio/tree.rb +852 -0
- data/lib/bio/util/color_scheme/buried.rb +59 -0
- data/lib/bio/util/color_scheme/helix.rb +59 -0
- data/lib/bio/util/color_scheme/hydropathy.rb +64 -0
- data/lib/bio/util/color_scheme/nucleotide.rb +31 -0
- data/lib/bio/util/color_scheme/strand.rb +59 -0
- data/lib/bio/util/color_scheme/taylor.rb +50 -0
- data/lib/bio/util/color_scheme/turn.rb +59 -0
- data/lib/bio/util/color_scheme/zappo.rb +50 -0
- data/lib/bio/util/color_scheme.rb +191 -0
- data/lib/bio/util/contingency_table.rb +370 -0
- data/lib/bio/util/restriction_enzyme/analysis.rb +249 -0
- data/lib/bio/util/restriction_enzyme/analysis_basic.rb +217 -0
- data/lib/bio/util/restriction_enzyme/cut_symbol.rb +107 -0
- data/lib/bio/util/restriction_enzyme/double_stranded/aligned_strands.rb +130 -0
- data/lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair.rb +103 -0
- data/lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair_in_enzyme_notation.rb +38 -0
- data/lib/bio/util/restriction_enzyme/double_stranded/cut_locations.rb +76 -0
- data/lib/bio/util/restriction_enzyme/double_stranded/cut_locations_in_enzyme_notation.rb +107 -0
- data/lib/bio/util/restriction_enzyme/double_stranded.rb +321 -0
- data/lib/bio/util/restriction_enzyme/enzymes.yaml +7061 -0
- data/lib/bio/util/restriction_enzyme/range/cut_range.rb +24 -0
- data/lib/bio/util/restriction_enzyme/range/cut_ranges.rb +47 -0
- data/lib/bio/util/restriction_enzyme/range/horizontal_cut_range.rb +67 -0
- data/lib/bio/util/restriction_enzyme/range/sequence_range/calculated_cuts.rb +242 -0
- data/lib/bio/util/restriction_enzyme/range/sequence_range/fragment.rb +51 -0
- data/lib/bio/util/restriction_enzyme/range/sequence_range/fragments.rb +41 -0
- data/lib/bio/util/restriction_enzyme/range/sequence_range.rb +257 -0
- data/lib/bio/util/restriction_enzyme/range/vertical_cut_range.rb +77 -0
- data/lib/bio/util/restriction_enzyme/single_strand/cut_locations_in_enzyme_notation.rb +135 -0
- data/lib/bio/util/restriction_enzyme/single_strand.rb +200 -0
- data/lib/bio/util/restriction_enzyme/single_strand_complement.rb +23 -0
- data/lib/bio/util/restriction_enzyme/string_formatting.rb +111 -0
- data/lib/bio/util/restriction_enzyme.rb +228 -0
- data/lib/bio/util/sirna.rb +288 -0
- data/lib/bio.rb +300 -0
- data/rdoc.zsh +8 -0
- data/sample/any2fasta.rb +59 -0
- data/sample/biofetch.rb +475 -0
- data/sample/color_scheme_na.rb +91 -0
- data/sample/dbget +37 -0
- data/sample/demo_sequence.rb +158 -0
- data/sample/enzymes.rb +78 -0
- data/sample/fasta2tab.rb +99 -0
- data/sample/fastagrep.rb +72 -0
- data/sample/fastasort.rb +54 -0
- data/sample/fsplit.rb +51 -0
- data/sample/gb2fasta.rb +30 -0
- data/sample/gb2tab.rb +325 -0
- data/sample/gbtab2mysql.rb +161 -0
- data/sample/genes2nuc.rb +33 -0
- data/sample/genes2pep.rb +33 -0
- data/sample/genes2tab.rb +81 -0
- data/sample/genome2rb.rb +29 -0
- data/sample/genome2tab.rb +76 -0
- data/sample/goslim.rb +303 -0
- data/sample/gt2fasta.rb +47 -0
- data/sample/na2aa.rb +34 -0
- data/sample/pmfetch.rb +42 -0
- data/sample/pmsearch.rb +42 -0
- data/sample/psortplot_html.rb +214 -0
- data/sample/ssearch2tab.rb +96 -0
- data/sample/tdiary.rb +158 -0
- data/sample/tfastx2tab.rb +100 -0
- data/sample/vs-genes.rb +212 -0
- data/setup.rb +1596 -0
- data/test/data/HMMER/hmmpfam.out +64 -0
- data/test/data/HMMER/hmmsearch.out +88 -0
- data/test/data/SOSUI/sample.report +11 -0
- data/test/data/TMHMM/sample.report +21 -0
- data/test/data/aaindex/DAYM780301 +30 -0
- data/test/data/aaindex/PRAM900102 +20 -0
- data/test/data/bl2seq/cd8a_cd8b_blastp.bl2seq +53 -0
- data/test/data/bl2seq/cd8a_p53_e-5blastp.bl2seq +37 -0
- data/test/data/blast/2.2.15.blastp.m7 +876 -0
- data/test/data/blast/b0002.faa +15 -0
- data/test/data/blast/b0002.faa.m0 +128 -0
- data/test/data/blast/b0002.faa.m7 +65 -0
- data/test/data/blast/b0002.faa.m8 +1 -0
- data/test/data/blast/blastp-multi.m7 +188 -0
- data/test/data/command/echoarg2.bat +1 -0
- data/test/data/embl/AB090716.embl +65 -0
- data/test/data/embl/AB090716.embl.rel89 +63 -0
- data/test/data/fasta/example1.txt +75 -0
- data/test/data/fasta/example2.txt +21 -0
- data/test/data/genscan/sample.report +63 -0
- data/test/data/iprscan/merged.raw +32 -0
- data/test/data/iprscan/merged.txt +74 -0
- data/test/data/paml/codeml/control_file.txt +30 -0
- data/test/data/paml/codeml/output.txt +78 -0
- data/test/data/paml/codeml/rates +217 -0
- data/test/data/prosite/prosite.dat +2233 -0
- data/test/data/refseq/nm_126355.entret +64 -0
- data/test/data/rpsblast/misc.rpsblast +193 -0
- data/test/data/soft/GDS100_partial.soft +92 -0
- data/test/data/soft/GSE3457_family_partial.soft +874 -0
- data/test/data/uniprot/p53_human.uniprot +1456 -0
- data/test/functional/bio/appl/test_pts1.rb +115 -0
- data/test/functional/bio/io/test_ensembl.rb +229 -0
- data/test/functional/bio/io/test_soapwsdl.rb +52 -0
- data/test/functional/bio/sequence/test_output_embl.rb +51 -0
- data/test/functional/bio/test_command.rb +301 -0
- data/test/runner.rb +23 -0
- data/test/unit/bio/appl/bl2seq/test_report.rb +134 -0
- data/test/unit/bio/appl/blast/test_ncbioptions.rb +112 -0
- data/test/unit/bio/appl/blast/test_report.rb +1135 -0
- data/test/unit/bio/appl/blast/test_rpsblast.rb +398 -0
- data/test/unit/bio/appl/genscan/test_report.rb +182 -0
- data/test/unit/bio/appl/hmmer/test_report.rb +342 -0
- data/test/unit/bio/appl/iprscan/test_report.rb +338 -0
- data/test/unit/bio/appl/mafft/test_report.rb +63 -0
- data/test/unit/bio/appl/paml/codeml/test_rates.rb +45 -0
- data/test/unit/bio/appl/paml/codeml/test_report.rb +45 -0
- data/test/unit/bio/appl/paml/test_codeml.rb +174 -0
- data/test/unit/bio/appl/sosui/test_report.rb +81 -0
- data/test/unit/bio/appl/targetp/test_report.rb +146 -0
- data/test/unit/bio/appl/test_blast.rb +277 -0
- data/test/unit/bio/appl/test_fasta.rb +130 -0
- data/test/unit/bio/appl/test_pts1.rb +77 -0
- data/test/unit/bio/appl/tmhmm/test_report.rb +126 -0
- data/test/unit/bio/data/test_aa.rb +90 -0
- data/test/unit/bio/data/test_codontable.rb +107 -0
- data/test/unit/bio/data/test_na.rb +80 -0
- data/test/unit/bio/db/embl/test_common.rb +117 -0
- data/test/unit/bio/db/embl/test_embl.rb +214 -0
- data/test/unit/bio/db/embl/test_embl_rel89.rb +219 -0
- data/test/unit/bio/db/embl/test_embl_to_bioseq.rb +203 -0
- data/test/unit/bio/db/embl/test_sptr.rb +1812 -0
- data/test/unit/bio/db/embl/test_uniprot.rb +31 -0
- data/test/unit/bio/db/kegg/test_genes.rb +45 -0
- data/test/unit/bio/db/pdb/test_pdb.rb +152 -0
- data/test/unit/bio/db/test_aaindex.rb +197 -0
- data/test/unit/bio/db/test_fasta.rb +250 -0
- data/test/unit/bio/db/test_gff.rb +1190 -0
- data/test/unit/bio/db/test_lasergene.rb +95 -0
- data/test/unit/bio/db/test_medline.rb +127 -0
- data/test/unit/bio/db/test_newick.rb +293 -0
- data/test/unit/bio/db/test_nexus.rb +364 -0
- data/test/unit/bio/db/test_prosite.rb +1437 -0
- data/test/unit/bio/db/test_rebase.rb +101 -0
- data/test/unit/bio/db/test_soft.rb +138 -0
- data/test/unit/bio/io/flatfile/test_autodetection.rb +375 -0
- data/test/unit/bio/io/flatfile/test_buffer.rb +251 -0
- data/test/unit/bio/io/flatfile/test_splitter.rb +369 -0
- data/test/unit/bio/io/test_ddbjxml.rb +80 -0
- data/test/unit/bio/io/test_ensembl.rb +109 -0
- data/test/unit/bio/io/test_fastacmd.rb +42 -0
- data/test/unit/bio/io/test_flatfile.rb +488 -0
- data/test/unit/bio/io/test_soapwsdl.rb +32 -0
- data/test/unit/bio/sequence/test_aa.rb +103 -0
- data/test/unit/bio/sequence/test_common.rb +373 -0
- data/test/unit/bio/sequence/test_compat.rb +69 -0
- data/test/unit/bio/sequence/test_dblink.rb +58 -0
- data/test/unit/bio/sequence/test_na.rb +330 -0
- data/test/unit/bio/shell/plugin/test_seq.rb +185 -0
- data/test/unit/bio/test_alignment.rb +1025 -0
- data/test/unit/bio/test_command.rb +349 -0
- data/test/unit/bio/test_db.rb +96 -0
- data/test/unit/bio/test_feature.rb +144 -0
- data/test/unit/bio/test_location.rb +599 -0
- data/test/unit/bio/test_map.rb +230 -0
- data/test/unit/bio/test_pathway.rb +499 -0
- data/test/unit/bio/test_reference.rb +252 -0
- data/test/unit/bio/test_sequence.rb +329 -0
- data/test/unit/bio/test_shell.rb +18 -0
- data/test/unit/bio/test_tree.rb +593 -0
- data/test/unit/bio/util/restriction_enzyme/analysis/test_calculated_cuts.rb +299 -0
- data/test/unit/bio/util/restriction_enzyme/analysis/test_cut_ranges.rb +103 -0
- data/test/unit/bio/util/restriction_enzyme/analysis/test_sequence_range.rb +240 -0
- data/test/unit/bio/util/restriction_enzyme/double_stranded/test_aligned_strands.rb +101 -0
- data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_location_pair.rb +75 -0
- data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_location_pair_in_enzyme_notation.rb +73 -0
- data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_locations.rb +53 -0
- data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_locations_in_enzyme_notation.rb +104 -0
- data/test/unit/bio/util/restriction_enzyme/single_strand/test_cut_locations_in_enzyme_notation.rb +83 -0
- data/test/unit/bio/util/restriction_enzyme/test_analysis.rb +246 -0
- data/test/unit/bio/util/restriction_enzyme/test_cut_symbol.rb +44 -0
- data/test/unit/bio/util/restriction_enzyme/test_double_stranded.rb +115 -0
- data/test/unit/bio/util/restriction_enzyme/test_single_strand.rb +147 -0
- data/test/unit/bio/util/restriction_enzyme/test_single_strand_complement.rb +147 -0
- data/test/unit/bio/util/restriction_enzyme/test_string_formatting.rb +60 -0
- data/test/unit/bio/util/test_color_scheme.rb +33 -0
- data/test/unit/bio/util/test_contingency_table.rb +94 -0
- data/test/unit/bio/util/test_restriction_enzyme.rb +42 -0
- data/test/unit/bio/util/test_sirna.rb +245 -0
- metadata +484 -0
data/doc/Changes-0.7.rd
ADDED
@@ -0,0 +1,369 @@
|
|
1
|
+
= Incompatible and important changes since the BioRuby 0.6.4 release
|
2
|
+
|
3
|
+
A lot of changes have been made to the BioRuby after the version 0.6.4
|
4
|
+
is released.
|
5
|
+
|
6
|
+
--- Ruby 1.6 series are no longer supported.
|
7
|
+
|
8
|
+
We use autoload functionality and many standard (bundled) libraries
|
9
|
+
(such as SOAP, open-uri, pp etc.) only in Ruby >1.8.2.
|
10
|
+
|
11
|
+
--- BioRuby will be loaded about 30 times faster than before.
|
12
|
+
|
13
|
+
As we changed to use autoload instead of require, time required
|
14
|
+
to start up the BioRuby library made surprisingly faster.
|
15
|
+
|
16
|
+
Other changes (including newly introduced BioRuby shell etc.) made
|
17
|
+
in this series will be described in this file.
|
18
|
+
|
19
|
+
== New features
|
20
|
+
|
21
|
+
--- BioRuby shell
|
22
|
+
|
23
|
+
A new command line user interface for the BioRuby is now included.
|
24
|
+
You can invoke the shell by
|
25
|
+
|
26
|
+
% bioruby
|
27
|
+
|
28
|
+
--- UnitTest
|
29
|
+
|
30
|
+
Test::Unit now covers wide range of the BioRuby library.
|
31
|
+
You can run them by
|
32
|
+
|
33
|
+
% ruby test/runner.rb
|
34
|
+
|
35
|
+
or
|
36
|
+
|
37
|
+
% ruby install.rb config
|
38
|
+
% ruby install.rb setup
|
39
|
+
% ruby install.rb test
|
40
|
+
|
41
|
+
during the installation procedure.
|
42
|
+
|
43
|
+
--- Documents
|
44
|
+
|
45
|
+
README, README.DEV, doc/Tutorial.rd, doc/Tutorial.rd.ja etc. are updated
|
46
|
+
or newly added.
|
47
|
+
|
48
|
+
== Incompatible changes
|
49
|
+
|
50
|
+
--- Bio::Sequence
|
51
|
+
|
52
|
+
Bio::Sequence is completely refactored to be a container class for
|
53
|
+
any sequence annotations. Functionalities are separated into several
|
54
|
+
files under the lib/bio/sequence/ directory as
|
55
|
+
|
56
|
+
* common.rb : module provides common methods for NA and AA sequences
|
57
|
+
* compat.rb : methods for backward compatibility
|
58
|
+
* aa.rb : Bio::Sequence::AA class
|
59
|
+
* na.rb : Bio::Sequence::NA class
|
60
|
+
* format.rb : module for format conversion
|
61
|
+
|
62
|
+
Bio::Sequence is no longer a sub-class of String, instead,
|
63
|
+
Bio::Sequence::NA and AA inherits String directly.
|
64
|
+
|
65
|
+
* Bio::Sequence::NA#gc_percent returns integer instead of float
|
66
|
+
* Bio::Sequence::NA#gc (was aliased to gc_percent) is removed
|
67
|
+
|
68
|
+
Previously, GC% is rounded to one decimal place. However, how many digits
|
69
|
+
should be left when rounding the value is not clear and as the GC% is an
|
70
|
+
rough measure by its nature, we have changed to return integer part only.
|
71
|
+
If you need a precise value, you can calculate it by values from the
|
72
|
+
'composition' method by your own criteria.
|
73
|
+
|
74
|
+
Also, the 'gc' method is removed as the method name doesn't represent
|
75
|
+
its value is ambiguous.
|
76
|
+
|
77
|
+
* Bio::Sequence#blast
|
78
|
+
* Bio::Sequence#fasta
|
79
|
+
|
80
|
+
These two methods are removed. Use Bio::Blast and Bio::Fasta to execute
|
81
|
+
BLAST and FASTA search.
|
82
|
+
|
83
|
+
--- Bio::NucleicAcid
|
84
|
+
|
85
|
+
Bio::NucleicAcid::Names and Bio::NucleicAcid::Weight no longer exists.
|
86
|
+
|
87
|
+
Bio::NucleicAcid::Names is renamed to Bio::NucleicAcid::Data::NAMES and
|
88
|
+
can be accessed by Bio::NucleicAcid#names, Bio::NucleicAcid.names methods
|
89
|
+
and Bio::NucleicAcid::WEIGHT hash as the Data module is included.
|
90
|
+
|
91
|
+
Bio::NucleicAcid::Weight is renamed to Bio::NucleicAcid::Data::Weight and
|
92
|
+
can be accessed by Bio::NucleicAcid#weight, Bio::NucleicAcid.weight methods
|
93
|
+
and Bio::NucleicAcid::WEIGHT hash as the Data module is included.
|
94
|
+
|
95
|
+
--- Bio::AminoAcid
|
96
|
+
|
97
|
+
Bio::AminoAcid::Names and Bio::AminoAcid::Weight no longer exists.
|
98
|
+
|
99
|
+
Bio::AminoAcid::Names is renamed to Bio::AminoAcid::Data::NAMES and
|
100
|
+
can be accessed by Bio::AminoAcid#names, Bio::AminoAcid.names methods
|
101
|
+
and Bio::AminoAcid::WEIGHT hash as the Data module is included.
|
102
|
+
|
103
|
+
Bio::AminoAcid::Weight is renamed to Bio::AminoAcid::Data::Weight and
|
104
|
+
can be accessed by Bio::AminoAcid#weight, Bio::AminoAcid.weight methods
|
105
|
+
and Bio::AminoAcid::WEIGHT hash as the Data module is included.
|
106
|
+
|
107
|
+
--- Bio::CodonTable
|
108
|
+
|
109
|
+
Bio::CodonTable::Tables, Bio::CodonTable::Definitions,
|
110
|
+
Bio::CodonTable::Starts, and Bio::CodonTable::Stops
|
111
|
+
are renamed to
|
112
|
+
Bio::CodonTable::TABLES, Bio::CodonTable::DEFINITIONS,
|
113
|
+
Bio::CodonTable::STARTS, and Bio::CodonTable::STOPS
|
114
|
+
respectively.
|
115
|
+
|
116
|
+
--- Bio::KEGG::Microarrays, Bio::KEGG::Microarray
|
117
|
+
|
118
|
+
* lib/bio/db/kegg/microarray.rb is renamed to lib/bio/db/kegg/expression.rb
|
119
|
+
* Bio::KEGG::Microarray is renamed to Bio::KEGG::EXPRESSION
|
120
|
+
* Bio::KEGG::Microarrays is removed
|
121
|
+
|
122
|
+
Bio::KEGG::Microarrays was intended to store a series of microarray
|
123
|
+
expressions as a Hash of Array -like data structure,
|
124
|
+
|
125
|
+
gene1 => [exp1, exp2, exp3, ... ]
|
126
|
+
gene2 => [exp1, exp2, exp3, ... ]
|
127
|
+
|
128
|
+
however, it is not utilized well and more suitable container class
|
129
|
+
can be proposed. Until then, this class is removed.
|
130
|
+
|
131
|
+
#
|
132
|
+
# Following changes are suspended for a while (not yet introduced for now)
|
133
|
+
#
|
134
|
+
# --- Bio::Pathway
|
135
|
+
#
|
136
|
+
# * Bio::Pathway#nodes returns an Array of the node objects instead of
|
137
|
+
# the number of the node objects.
|
138
|
+
# * Bio::Pathway#edges returns an Array of the edge objects instead of
|
139
|
+
# the number of the edge objects.
|
140
|
+
#
|
141
|
+
|
142
|
+
--- Bio::GenBank
|
143
|
+
|
144
|
+
Bio::GenBank#gc is removed as the value can be calculated by the
|
145
|
+
Bio::Sequence::NA#gc method and the method is also changed to
|
146
|
+
return integer instead of float.
|
147
|
+
|
148
|
+
Bio::GenBank#varnacular_name is renamed to Bio::GenBank#vernacular_name
|
149
|
+
as it was a typo.
|
150
|
+
|
151
|
+
--- Bio::GenBank::Common
|
152
|
+
|
153
|
+
* lib/bio/db/genbank/common.rb is removed.
|
154
|
+
|
155
|
+
Renamed to Bio::NCBIDB::Common to make simplify the autoload dependency.
|
156
|
+
|
157
|
+
--- Bio::EMBL::Common
|
158
|
+
|
159
|
+
* lib/bio/db/embl/common.rb is removed.
|
160
|
+
|
161
|
+
Renamed to Bio::EMBLDB::Common to make simplify the autoload dependency.
|
162
|
+
|
163
|
+
--- Bio::KEGG::GENES
|
164
|
+
|
165
|
+
* lib/bio/db/kegg/genes.rb
|
166
|
+
|
167
|
+
linkdb method is changed to return a Hash of an Array of entry IDs
|
168
|
+
instead of a Hash of a entry ID string.
|
169
|
+
|
170
|
+
--- Bio::TRANSFAC
|
171
|
+
|
172
|
+
* Bio::TFMATRIX is renamed to Bio::TRANSFAC::MATRIX
|
173
|
+
* Bio::TFSITE is renamed to Bio::TRANSFAC::SITE
|
174
|
+
* Bio::TFFACTOR is renamed to Bio::TRANSFAC::FACTOR
|
175
|
+
* Bio::TFCELL is renamed to Bio::TRANSFAC::CELL
|
176
|
+
* Bio::TFCLASS is renamed to Bio::TRANSFAC::CLASS
|
177
|
+
* Bio::TFGENE is renamed to Bio::TRANSFAC::GENE
|
178
|
+
|
179
|
+
--- Bio::GFF
|
180
|
+
|
181
|
+
* Bio::GFF2 is renamed to Bio::GFF::GFF2
|
182
|
+
* Bio::GFF3 is renamed to Bio::GFF::GFF3
|
183
|
+
|
184
|
+
--- Bio::Alignment
|
185
|
+
|
186
|
+
In 0.7.0:
|
187
|
+
|
188
|
+
* Old Bio::Alignment class is renamed to Bio::Alignment::OriginalAlignment.
|
189
|
+
Now, new Bio::Alignment is a module. However, you don't mind so much
|
190
|
+
because most of the class methods previously existed are defined
|
191
|
+
to delegate to the new Bio::Alignment::OriginalAlignment class,
|
192
|
+
for keeping backward compatibility.
|
193
|
+
* New classes and modules are introduced. Please refer RDoc.
|
194
|
+
* each_site and some methods changed to return Bio::Alignment::Site,
|
195
|
+
which inherits Array (previously returned Array).
|
196
|
+
* consensus_iupac now returns only standard bases
|
197
|
+
'a', 'c', 'g', 't', 'm', 'r', 'w', 's', 'y', 'k', 'v',
|
198
|
+
'h', 'd', 'b', 'n', or nil (in SiteMethods#consensus_iupac) or
|
199
|
+
'?' (or missing_char, in EnumerableExtension#consensus_iupac).
|
200
|
+
Note that consensus_iupac now does not return u and invalid letters
|
201
|
+
not defined in IUPAC standard even if all bases are equal.
|
202
|
+
* There are more and more changes to be written...
|
203
|
+
|
204
|
+
In 1.1.0:
|
205
|
+
|
206
|
+
* Bio::Alignment::ClustalWFormatter is removed and methods in this module
|
207
|
+
are renemed and moved to Bio::Alignment::Output.
|
208
|
+
|
209
|
+
--- Bio::PDB
|
210
|
+
|
211
|
+
In 0.7.0:
|
212
|
+
|
213
|
+
* Bio::PDB::Atom is removed. Instead, please use Bio::PDB::Record::ATOM and
|
214
|
+
Bio::PDB::Record::HETATM.
|
215
|
+
* Bio::PDB::FieldDef is removed and Bio::PDB::Record is completely
|
216
|
+
changed. Now, records is changed from hash to Struct objects.
|
217
|
+
(Note that method_missing is no longer used.)
|
218
|
+
* In records, "do_parse" is now automatically called.
|
219
|
+
Users don't need to call do_parse explicitly.
|
220
|
+
(0.7.0 feature: "inspect" does not call do_parse.)
|
221
|
+
(0.7.1 feature: "inspect" calls do_parse.)
|
222
|
+
* In the "MODEL" record, model_serial is changed to serial.
|
223
|
+
* In records, record_type is changed to record_name.
|
224
|
+
* In most records contains real numbers, return values are changed
|
225
|
+
to float instead of string.
|
226
|
+
* Pdb_AChar, Pdb_Atom, Pdb_Character, Pdb_Continuation,
|
227
|
+
Pdb_Date, Pdb_IDcode, Pdb_Integer, Pdb_LString, Pdb_List,
|
228
|
+
Pdb_Real, Pdb_Residue_name, Pdb_SList, Pdb_Specification_list,
|
229
|
+
Pdb_String, Pdb_StringRJ and Pdb_SymOP are moved under
|
230
|
+
Bio::PDB::DataType.
|
231
|
+
* There are more and more changes to be written...
|
232
|
+
|
233
|
+
In 0.7.1:
|
234
|
+
|
235
|
+
* Heterogens and HETATMs are completely separeted from residues and ATOMs.
|
236
|
+
HETATMs (Bio::PDB::Record::HETATM objects) are stored in
|
237
|
+
Bio::PDB::Heterogen (which inherits Bio::PDB::Residue).
|
238
|
+
* Waters (resName=="HOH") are treated as normal heterogens.
|
239
|
+
Model#solvents is still available but it will be deprecated.
|
240
|
+
* In Bio::PDB::Chain, adding "LIGAND" to the heterogen id is no longer
|
241
|
+
available. Instead, please use Chain#get_heterogen_by_id method.
|
242
|
+
In addition, Bio::{PDB|PDB::Model::PDB::Chain}#heterogens, #each_heterogen,
|
243
|
+
#find_heterogen, Bio::{PDB|PDB::Model::PDB::Chain::PDB::Heterogen}#hetatms,
|
244
|
+
#each_hetatm, #find_hetatm methods are added.
|
245
|
+
* Bio::PDB#seqres returns Bio::Sequence::NA object if the chain seems to be
|
246
|
+
a nucleic acid sequence.
|
247
|
+
* There are more and more changes to be written...
|
248
|
+
|
249
|
+
In 1.1.0:
|
250
|
+
|
251
|
+
* In Bio::PDB::ATOM#name, #resName, #iCode, and #charge, whitespaces are
|
252
|
+
stripped during initializing.
|
253
|
+
* In Bio::PDB::ATOM#segID, whitespaces are right-stripped during initializing.
|
254
|
+
* In Bio::PDB::ATOM#element, whitespaces are left-stripped during initializing.
|
255
|
+
* Bio::PDB::HETATM#name, #resName, #iCode, #charge, #segID, and #element
|
256
|
+
are also subject to the above changes, because Bio::PDB::HETATM inherits
|
257
|
+
Bio::PDB::ATOM.
|
258
|
+
* Bio::PDB::Residue#[] and Bio::PDB::Heterogen#[] are changed to use the
|
259
|
+
name field for selecting atoms, because the element field is not useful
|
260
|
+
for selecting atoms and is not used in many pdb files.
|
261
|
+
* Bio::PDB#record is changed to return an empty array instead of nil
|
262
|
+
for a nonexistent record.
|
263
|
+
|
264
|
+
--- Bio::FlatFile
|
265
|
+
|
266
|
+
In 0.7.2:
|
267
|
+
|
268
|
+
* Bio::FlatFile.open, Bio::FlatFile.auto and Bio::FlatFile.new are changed
|
269
|
+
not to accept the last argument to specify raw mode, e.g. :raw => true,
|
270
|
+
:raw => false, true or false. Instead, please use Bio::FlatFile#raw=
|
271
|
+
method after creating a new object.
|
272
|
+
* Now, first argument of Bio::FlatFile.open, which shall be a database
|
273
|
+
class or nil, can be omitted, and you can do
|
274
|
+
Bio::FlatFile.open(filename, ...). Note that
|
275
|
+
Bio::FlatFile.open(dbclass, filaname, ...) is still available.
|
276
|
+
* Bio::FlatFile#io is obsoleted. Please use Bio::FlatFile#to_io instead.
|
277
|
+
* When reading GenBank or GenPept files, comments at the head of the file
|
278
|
+
before the first "LOCUS" lines are now skipped by default.
|
279
|
+
When reading other file formats, white space characters are skipped.
|
280
|
+
* File format autodetection routine is completely rewritten.
|
281
|
+
If it fails to determine data format which was previously determined,
|
282
|
+
please report us with the data.
|
283
|
+
* Internal structure is now completely changed. Codes depend on the internal
|
284
|
+
structure (which is not recommended) would not work.
|
285
|
+
|
286
|
+
In 1.1.0:
|
287
|
+
|
288
|
+
* Bio::FlatFile#entry_start_pos and #entry_ended_pos are enabled
|
289
|
+
only when Bio::FlatFile#entry_pos_flag is true.
|
290
|
+
|
291
|
+
--- Bio::ClustalW, Bio::MAFFT, Bio::Sim4
|
292
|
+
|
293
|
+
In 1.1.0:
|
294
|
+
|
295
|
+
* Bio::(ClustalW|MAFFT|Sim4)#option is changed to #options.
|
296
|
+
* Bio::ClustalW::errorlog and Bio::(MAFFT|Sim4)#log are removed.
|
297
|
+
No replacements/alternatives are available.
|
298
|
+
|
299
|
+
--- Bio::ClustalW, Bio::MAFFT
|
300
|
+
|
301
|
+
In 1.1.0:
|
302
|
+
|
303
|
+
* Bio::(ClustalW|MAFFT)#query_align, #query_string, #query_by_filename
|
304
|
+
are changed not to get second (and third, ...) arguments.
|
305
|
+
* Bio::(ClustalW|MAFFT)#query, #query_string, #query_by_filename
|
306
|
+
are changed not trying to guess whether given data is nucleotide or protein.
|
307
|
+
* Return value of Bio::(ClustalW|MAFFT)#query with no arguments is changed.
|
308
|
+
If the program exists normally (exit status is 0), returns true.
|
309
|
+
Otherwise, returns false.
|
310
|
+
|
311
|
+
--- Bio::MAFFT
|
312
|
+
|
313
|
+
In 1.1.0:
|
314
|
+
|
315
|
+
* Bio::MAFFT#output is changed to return a string of multi-fasta
|
316
|
+
formmatted text instead of Array of Bio::FastaFormat objects.
|
317
|
+
To get an array of Bio::FastaFormat objects, please use
|
318
|
+
report.data instead.
|
319
|
+
|
320
|
+
--- Bio::MAFFT::Report
|
321
|
+
|
322
|
+
In 1.1.0:
|
323
|
+
|
324
|
+
* Bio::MAFFT::Report#initialize is changed to get a string of multi-fasta
|
325
|
+
formmatted text instead of Array.
|
326
|
+
|
327
|
+
--- Bio::BLAST::Default::Report, Bio::BLAST::Default::Report::Hit,
|
328
|
+
Bio::BLAST::Default::Report::HSP, Bio::BLAST::WU::Report,
|
329
|
+
Bio::BLAST::WU::Report::Hit, Bio::BLAST::WU::Report::HSP
|
330
|
+
|
331
|
+
In 1.1.0:
|
332
|
+
|
333
|
+
* Hit#evalue, HSP#evalue, WU::Hit#pvalue, and WU::HSP#pvalue are
|
334
|
+
changed to return a Float object instead of a String object.
|
335
|
+
* Report#expect, Hit#bit_score, and HSP#bit_score are changed to return
|
336
|
+
a Float object or nil instead of a String object or nil.
|
337
|
+
* Following methods are changed to return an integer value or nil
|
338
|
+
instead of a string or nil: score, percent_identity, percent_positive,
|
339
|
+
percent_gaps.
|
340
|
+
|
341
|
+
=== Deleted files
|
342
|
+
|
343
|
+
: lib/bio/db/genbank.rb
|
344
|
+
: lib/bio/db/embl.rb
|
345
|
+
|
346
|
+
These files are removed as we changed to use autoload. You can safely
|
347
|
+
replace
|
348
|
+
|
349
|
+
require 'bio/db/genbank'
|
350
|
+
|
351
|
+
or
|
352
|
+
|
353
|
+
require 'bio/db/embl'
|
354
|
+
|
355
|
+
in your code to
|
356
|
+
|
357
|
+
require 'bio'
|
358
|
+
|
359
|
+
and this change will also speeds up loading time even if you only need
|
360
|
+
one of the sub classes under the genbank/ or embl/ directory.
|
361
|
+
|
362
|
+
: lib/bio/extend.rb
|
363
|
+
|
364
|
+
This file contained some additional methods to String and Array classes.
|
365
|
+
The methods added to Array are already included in Ruby itself since the
|
366
|
+
version 1.8, and the methods added to String are moved to the BioRuby shell
|
367
|
+
(lib/bio/shell/plugin/seq.rb).
|
368
|
+
|
369
|
+
|
@@ -0,0 +1,195 @@
|
|
1
|
+
= Incompatible and important changes since the BioRuby 1.2.1 release
|
2
|
+
|
3
|
+
A lot of changes have been made to the BioRuby after the version 1.2.1
|
4
|
+
is released.
|
5
|
+
|
6
|
+
== New features
|
7
|
+
|
8
|
+
=== Support for sequence output with improvements of Bio::Sequence
|
9
|
+
|
10
|
+
The outputting of EMBL and GenBank formatted text are now supported in the
|
11
|
+
Bio::Sequence class. See the document of Bio::Sequence#output for details.
|
12
|
+
You can also create Bio::Sequence objects from many kinds of data such as
|
13
|
+
Bio::GenBank, Bio::EMBL, and Bio::FastaFormat by using the to_biosequence
|
14
|
+
method.
|
15
|
+
|
16
|
+
=== BioSQL support
|
17
|
+
|
18
|
+
BioSQL support is completely rewritten by using ActiveRecord.
|
19
|
+
|
20
|
+
=== Bio::Blast
|
21
|
+
|
22
|
+
Bio::Blast#reports can parse NCBI default (-m 0) format and tabular (-m 8)
|
23
|
+
format, in addition to XML (-m 7) format.
|
24
|
+
|
25
|
+
Bio::Blast::Report now supports XML format with multiple query sequences
|
26
|
+
generated by blastall 2.2.14 or later.
|
27
|
+
|
28
|
+
Bio::Blast.remote supports DDBJ, in addition to GenomeNet.
|
29
|
+
In addition, a list of available blast databases on remote sites
|
30
|
+
can be obtained by using Bio::Blast::Remote::DDBJ.databases and
|
31
|
+
Bio::Blast::Remote::GenomeNet.databases methods. Note that the above
|
32
|
+
remote blast methods may be changed in the future to support NCBI.
|
33
|
+
|
34
|
+
Bio::Blast::RPSBlast::Report is newly added, a parser for NCBI RPS Blast
|
35
|
+
(Reversed Position Specific Blast) default (-m 0 option) results.
|
36
|
+
|
37
|
+
=== Bio::GFF::GFF2 and Bio::GFF::GFF3
|
38
|
+
|
39
|
+
The outputting of GFF2/GFF3-formatted text is now supported. However, many
|
40
|
+
incompatible changes have been made (See below for details).
|
41
|
+
|
42
|
+
=== Bio::Hinv
|
43
|
+
|
44
|
+
H-Invitational Database web service (REST) client class is newly added.
|
45
|
+
|
46
|
+
=== Bio::NCBI::REST
|
47
|
+
|
48
|
+
NCBI E-Utilities client class is newly added.
|
49
|
+
|
50
|
+
=== Bio::PAML::Codeml and Bio::PAML::Codeml::Report
|
51
|
+
|
52
|
+
Bio::PAML::Codeml, wrapper for PAML codeml program, and
|
53
|
+
Bio::PAML::Codeml::Report, parser for codeml result are newly added,
|
54
|
+
though some of them are still under construction and too specific to
|
55
|
+
particular use cases.
|
56
|
+
|
57
|
+
=== Bio::Locations
|
58
|
+
|
59
|
+
New method Bio::Locations#to_s is added to support output of features.
|
60
|
+
|
61
|
+
== Deprecated classes
|
62
|
+
|
63
|
+
=== Bio::Features
|
64
|
+
|
65
|
+
Bio::Features is obsoleted and changed to an array of Bio::Feature object
|
66
|
+
with some backward compatibility methods. The backward compatibility methods
|
67
|
+
will soon be removed in the future.
|
68
|
+
|
69
|
+
=== Bio::References
|
70
|
+
|
71
|
+
Bio::References is obsoleted and changed to an array of Bio::Reference object
|
72
|
+
with some backward compatibility methods. The backward compatibility methods
|
73
|
+
will soon be removed in the future.
|
74
|
+
|
75
|
+
== Incompatible changes
|
76
|
+
|
77
|
+
=== Bio::Sequence
|
78
|
+
|
79
|
+
Bio::Sequence#date is removed. Alternatively, date_created or date_modified
|
80
|
+
can be used.
|
81
|
+
|
82
|
+
Bio::Sequence#taxonomy is changed to be an alias of classification, and
|
83
|
+
the data type is changed to an array of string.
|
84
|
+
|
85
|
+
=== Bio::Locations and Bio::Location
|
86
|
+
|
87
|
+
A carat in a location (e.g. "123^124") is now parsed, instead of being
|
88
|
+
replaced by "..". To distinguish from normal "..", a new attribute
|
89
|
+
Bio::Location#carat is used.
|
90
|
+
|
91
|
+
"order(...)" or "group(...)" are also parsed, instead of being regarded
|
92
|
+
as "join(...)". To distinguish from "join(...)", a new attribute
|
93
|
+
Bio::Locations#operator is used. When "order(...)" or "group(...)",
|
94
|
+
the attribute is set to :order or :group, respectively. Note that
|
95
|
+
"group(...)" is already deprecated in EMBL/GenBank/DDBJ.
|
96
|
+
|
97
|
+
=== Bio::Blast::Default::Report and Bio::Blast::WU::Report
|
98
|
+
|
99
|
+
Iteration#lambda, #kappa, #entropy, #gapped_lambda, #gapped_kappa,
|
100
|
+
and #gapped_entropy, and the same methods in the Report class are
|
101
|
+
changed to return float or nil instead of string or nil.
|
102
|
+
|
103
|
+
=== Bio::Blat
|
104
|
+
|
105
|
+
When reading BLAT psl (or pslx) data by using Bio::FlatFile, it checks
|
106
|
+
each query name and returns a new entry object when the query name is
|
107
|
+
changed from previous queries. This is, data is stored to two or more
|
108
|
+
Bio::Blat::Report objects, instead of previous version's behavior
|
109
|
+
(always reads all data at once and stores to a Bio::Blat::Report object).
|
110
|
+
|
111
|
+
=== Bio::GFF, Bio::GFF::GFF2 and Bio::GFF::GFF3
|
112
|
+
|
113
|
+
Bio::GFF::Record#comments is renamed to #comment, and #comments= is
|
114
|
+
renamed to #comment=, because they only allow a single String (or nil)
|
115
|
+
and the plural form "comments" may be confusable. The "comments" and
|
116
|
+
"comments=" methods can still be used, but warning messages will be
|
117
|
+
shown when using in GFF2::Record and GFF3::Record objects.
|
118
|
+
|
119
|
+
See below about GFF2 and/or GFF3 specific changes.
|
120
|
+
|
121
|
+
=== Bio::GFF::GFF2 and Bio::GFF::GFF3
|
122
|
+
|
123
|
+
Bio::GFF::GFF2::Record.new and Bio::GFF::GFF3::Record.new can also
|
124
|
+
get 9 arguments corresponding to GFF columns, which helps to create
|
125
|
+
Record object directly without formatted text.
|
126
|
+
|
127
|
+
Bio::GFF::GFF2::Record#start, #end, and #frame return Integer or nil,
|
128
|
+
and #score returns Float or nil, instead of String or nil.
|
129
|
+
The same changes are also made to Bio::GFF::GFF3::Record.
|
130
|
+
|
131
|
+
Bio::GFF::GFF2::Record#attributes and Bio::GFF::GFF3::Record#attributes
|
132
|
+
are changed to return a nested Array, containing [ tag, value ] pairs,
|
133
|
+
because of supporting multiple tags in the same tag names. If you want
|
134
|
+
to get a Hash, use Record#attributes_to_hash method, though some
|
135
|
+
tag-value pairs in the same tag names may be lost. Note that
|
136
|
+
Bio::GFF::Record#attribute still returns a Hash for compatibility.
|
137
|
+
|
138
|
+
New methods for getting, setting and manipulating attributes are added
|
139
|
+
to Bio::GFF::GFF2::Record and Bio::GFF::GFF3::Record classes:
|
140
|
+
attribute, get_attribute, get_attributes, set_attribute, replace_attributes,
|
141
|
+
add_attribute, delete_attribute, delete_attributes, sort_attributes_by_tag!.
|
142
|
+
It is recommended to use these methods instead of directly manipulating
|
143
|
+
the array returned by Record#attributes.
|
144
|
+
|
145
|
+
Bio::GFF::GFF2#to_s, Bio::GFF::GFF3#to_s, Bio::GFF::GFF2::Record#to_s,
|
146
|
+
and Bio::GFF::GFF3::Record#to_s are added to support output of
|
147
|
+
GFF2/GFF3 data.
|
148
|
+
|
149
|
+
=== Bio::GFF::GFF2
|
150
|
+
|
151
|
+
GFF2 attribute values are now automatically unescaped. In addition,
|
152
|
+
if a value of an attribute is consisted of two or more tokens delimited
|
153
|
+
by spaces, an object of the new class Bio::GFF::GFF2::Record::Value is
|
154
|
+
returned instead of String. The new class Bio::GFF::GFF2::Record::Value
|
155
|
+
aims to store a parsed value of an attribute. If you really want to get
|
156
|
+
unparsed string, Bio::GFF::GFF2::Record::Value#to_s can be used.
|
157
|
+
|
158
|
+
The metadata (lines beginning with "##") are parsed to
|
159
|
+
Bio::GFF::GFF2::MetaData objects and are stored to Bio::GFF::GFF2#metadata
|
160
|
+
as an array, except the "##gff-version" line. The "##gff-version" version
|
161
|
+
string is stored to the Bio::GFF::GFF2#gff_version as a string.
|
162
|
+
|
163
|
+
=== Bio::GFF::GFF3
|
164
|
+
|
165
|
+
Aliases of columns which are renamed in the GFF3 specification are added
|
166
|
+
to the Bio::GFF::GFF3::Record class: seqid (column 1; alias of "seqname"),
|
167
|
+
feature_type (column 3; alias of "feature"; in the GFF3 spec, it is
|
168
|
+
called "type", but because "type" is already used by Ruby, we use
|
169
|
+
"feature_type"), phase (column 8; formerly "frame"). Original names can
|
170
|
+
still be used because they are only aliases.
|
171
|
+
|
172
|
+
Sequences bundled within GFF3 after "##FASTA" are now supported
|
173
|
+
(Bio::GFF::GFF3#sequences).
|
174
|
+
|
175
|
+
GFF3 attribute keys and values are automatically unescaped. Each attribute
|
176
|
+
value is stored as a string, except for special attributes listed below:
|
177
|
+
* Bio::GFF::GFF3::Record::Target to store a "Target" attribute.
|
178
|
+
* Bio::GFF::GFF3::Record::Gap to store a "Gap" attribute.
|
179
|
+
|
180
|
+
The metadata (lines beginning with "##") are parsed to
|
181
|
+
Bio::GFF::GFF3::MetaData objects and stored to Bio::GFF::GFF3#metadata
|
182
|
+
as an array, except "##gff-version", "##sequence-region", "###",
|
183
|
+
and "##FASTA" lines.
|
184
|
+
* "##gff-version" version string is stored to Bio::GFF::GFF3#gff_version.
|
185
|
+
* "##sequence-region" lines are parsed to Bio::GFF::GFF3::SequenceRegion
|
186
|
+
objects and stored to Bio::GFF::GFF3#sequence_regions as an array.
|
187
|
+
* "###" lines are parsed to Bio::GFF::GFF3::RecordBoundary objects.
|
188
|
+
* "##FASTA" is regarded as the beginning of bundled sequences.
|
189
|
+
|
190
|
+
=== Bio::SQL and BioSQL related classes
|
191
|
+
|
192
|
+
BioSQL support is completely rewritten by using ActiveRecord. See documents
|
193
|
+
in lib/bio/io/sql.rb, lib/bio/io/biosql, and lib/bio/db/biosql for details
|
194
|
+
of changes and usage of the classes/modules.
|
195
|
+
|