bioroebe 0.10.80 → 0.12.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3946 -2817
- data/bin/bioroebe +13 -2
- data/bin/bioroebe_hash +7 -0
- data/bin/codon_to_aminoacid +6 -4
- data/bin/compacter +7 -0
- data/bin/plain_palindrome +7 -0
- data/bioroebe.gemspec +3 -3
- data/doc/README.gen +3918 -2793
- data/doc/quality_control/commandline_applications.md +3 -3
- data/doc/statistics/statistics.md +7 -7
- data/doc/todo/bioroebe_GUI_todo.md +19 -14
- data/doc/todo/bioroebe_java_todo.md +22 -0
- data/doc/todo/bioroebe_todo.md +2075 -2620
- data/lib/bioroebe/C++/DNA.cpp +69 -0
- data/lib/bioroebe/C++/RNA.cpp +58 -0
- data/lib/bioroebe/C++/sequence.cpp +35 -0
- data/lib/bioroebe/abstract/README.md +1 -0
- data/lib/bioroebe/abstract/features.rb +29 -0
- data/lib/bioroebe/aminoacids/aminoacid_substitution.rb +1 -9
- data/lib/bioroebe/aminoacids/codon_percentage.rb +1 -9
- data/lib/bioroebe/aminoacids/deduce_aminoacid_sequence.rb +1 -9
- data/lib/bioroebe/aminoacids/display_aminoacid_table.rb +1 -0
- data/lib/bioroebe/aminoacids/show_hydrophobicity.rb +1 -6
- data/lib/bioroebe/base/base_module/base_module.rb +36 -0
- data/lib/bioroebe/base/colours_for_base/colours_for_base.rb +18 -8
- data/lib/bioroebe/base/commandline_application/commandline_application.rb +13 -9
- data/lib/bioroebe/base/commandline_application/commandline_arguments.rb +24 -19
- data/lib/bioroebe/base/commandline_application/misc.rb +66 -49
- data/lib/bioroebe/base/commandline_application/opn.rb +8 -8
- data/lib/bioroebe/base/commandline_application/reset.rb +5 -3
- data/lib/bioroebe/base/internal_hash_module/internal_hash_module.rb +42 -0
- data/lib/bioroebe/base/misc.rb +35 -0
- data/lib/bioroebe/base/prototype/misc.rb +15 -9
- data/lib/bioroebe/base/prototype/reset.rb +10 -0
- data/lib/bioroebe/cleave_and_digest/digestion.rb +10 -2
- data/lib/bioroebe/cleave_and_digest/trypsin.rb +104 -50
- data/lib/bioroebe/codon_tables/frequencies/parse_frequency_table.rb +2 -10
- data/lib/bioroebe/codons/codons.rb +1 -1
- data/lib/bioroebe/codons/convert_this_codon_to_that_aminoacid.rb +208 -59
- data/lib/bioroebe/codons/possible_codons_for_this_aminoacid.rb +1 -9
- data/lib/bioroebe/codons/show_codon_tables.rb +8 -3
- data/lib/bioroebe/codons/show_codon_usage.rb +15 -4
- data/lib/bioroebe/colours/rev.rb +4 -1
- data/lib/bioroebe/constants/aminoacids_and_proteins.rb +1 -0
- data/lib/bioroebe/constants/database_constants.rb +1 -1
- data/lib/bioroebe/constants/files_and_directories.rb +31 -4
- data/lib/bioroebe/constants/misc.rb +20 -0
- data/lib/bioroebe/constants/nucleotides.rb +7 -0
- data/lib/bioroebe/conversions/dna_to_aminoacid_sequence.rb +109 -39
- data/lib/bioroebe/count/count_amount_of_aminoacids.rb +3 -2
- data/lib/bioroebe/count/count_amount_of_nucleotides.rb +3 -0
- data/lib/bioroebe/cpp +1 -0
- data/lib/bioroebe/crystal/README.md +2 -0
- data/lib/bioroebe/crystal/to_rna.cr +19 -0
- data/lib/bioroebe/data/README.md +11 -8
- data/lib/bioroebe/data/electron_microscopy/pos_example.pos +396 -0
- data/lib/bioroebe/data/electron_microscopy/test_particles.star +36 -0
- data/lib/bioroebe/data/fasta/human/Homo_sapiens_hemoglobin_subunit_alpha_HBB_mRNA.fasta +9 -0
- data/lib/bioroebe/data/fasta/human/Homo_sapiens_hemoglobin_subunit_beta_HBB_mRNA.fasta +8 -0
- data/lib/bioroebe/data/fasta/human/README.md +2 -0
- data/lib/bioroebe/dotplots/advanced_dotplot.rb +1 -1
- data/lib/bioroebe/electron_microscopy/coordinate_analyzer.rb +15 -18
- data/lib/bioroebe/{fasta_and_fastq/parse_fasta/run.rb → electron_microscopy/electron_microscopy_module.rb} +16 -8
- data/lib/bioroebe/electron_microscopy/fix_pos_file.rb +1 -9
- data/lib/bioroebe/electron_microscopy/flipy.rb +83 -0
- data/lib/bioroebe/electron_microscopy/parse_coordinates.rb +2 -10
- data/lib/bioroebe/electron_microscopy/read_file_xmd.rb +1 -9
- data/lib/bioroebe/electron_microscopy/simple_star_file_generator.rb +4 -9
- data/lib/bioroebe/enzymes/has_this_restriction_enzyme.rb +10 -3
- data/lib/bioroebe/enzymes/restriction_enzyme.rb +23 -1
- data/lib/bioroebe/enzymes/restriction_enzymes/statistics.rb +65 -0
- data/lib/bioroebe/fasta_and_fastq/autocorrect_the_name_of_this_fasta_file.rb +1 -9
- data/lib/bioroebe/fasta_and_fastq/compact_fasta_file/compact_fasta_file.rb +7 -9
- data/lib/bioroebe/fasta_and_fastq/fasta_defline/fasta_defline.rb +1 -5
- data/lib/bioroebe/fasta_and_fastq/fasta_to_yaml/fasta_to_yaml.rb +81 -0
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/parse_fasta.rb +1518 -7
- data/lib/bioroebe/fasta_and_fastq/return_fasta_subsection_of_this_file.rb +11 -2
- data/lib/bioroebe/fasta_and_fastq/show_fasta_headers.rb +27 -12
- data/lib/bioroebe/fasta_and_fastq/simplify_fasta_header/simplify_fasta_header.rb +1 -5
- data/lib/bioroebe/fasta_and_fastq/split_this_fasta_file_into_chromosomes/constants.rb +0 -5
- data/lib/bioroebe/genome/README.md +4 -0
- data/lib/bioroebe/genome/genome.rb +130 -0
- data/lib/bioroebe/genomes/genome_pattern.rb +3 -9
- data/lib/bioroebe/gui/gtk +1 -0
- data/lib/bioroebe/gui/gtk3/alignment/alignment.rb +106 -137
- data/lib/bioroebe/gui/gtk3/aminoacid_composition/aminoacid_composition.rb +27 -61
- data/lib/bioroebe/gui/gtk3/aminoacid_composition/customized_dialog.rb +1 -1
- data/lib/bioroebe/gui/gtk3/blosum_matrix_viewer/blosum_matrix_viewer.rb +1 -2
- data/lib/bioroebe/gui/gtk3/calculate_cell_numbers_of_bacteria/calculate_cell_numbers_of_bacteria.rb +1 -2
- data/lib/bioroebe/gui/gtk3/controller/controller.rb +46 -29
- data/lib/bioroebe/gui/gtk3/dna_to_aminoacid_widget/dna_to_aminoacid_widget.rb +77 -52
- data/lib/bioroebe/gui/gtk3/dna_to_reverse_complement_widget/dna_to_reverse_complement_widget.rb +1 -2
- data/lib/bioroebe/gui/gtk3/fasta_table_widget/fasta_table_widget.rb +100 -23
- data/lib/bioroebe/gui/gtk3/format_converter/format_converter.rb +1 -2
- data/lib/bioroebe/gui/gtk3/gene/gene.rb +1 -2
- data/lib/bioroebe/gui/gtk3/hamming_distance/hamming_distance.rb +43 -30
- data/lib/bioroebe/gui/gtk3/levensthein_distance/levensthein_distance.rb +1 -2
- data/lib/bioroebe/gui/gtk3/nucleotide_analyser/nucleotide_analyser.rb +120 -73
- data/lib/bioroebe/gui/gtk3/primer_design_widget/primer_design_widget.rb +1 -2
- data/lib/bioroebe/gui/gtk3/protein_to_DNA/protein_to_DNA.rb +19 -20
- data/lib/bioroebe/gui/gtk3/random_sequence/random_sequence.rb +20 -13
- data/lib/bioroebe/gui/gtk3/restriction_enzymes/restriction_enzymes.rb +1 -2
- data/lib/bioroebe/gui/gtk3/show_codon_table/misc.rb +97 -22
- data/lib/bioroebe/gui/gtk3/show_codon_table/show_codon_table.rb +3 -73
- data/lib/bioroebe/gui/gtk3/show_codon_usage/show_codon_usage.rb +1 -2
- data/lib/bioroebe/gui/gtk3/sizeseq/sizeseq.rb +1 -2
- data/lib/bioroebe/gui/gtk3/three_to_one/three_to_one.rb +1 -2
- data/lib/bioroebe/gui/gtk3/www_finder/www_finder.rb +1 -2
- data/lib/bioroebe/gui/javafx/bioroebe/Bioroebe.class +0 -0
- data/lib/bioroebe/gui/javafx/bioroebe/Bioroebe.java +104 -0
- data/lib/bioroebe/gui/javafx/bioroebe.jar +0 -0
- data/lib/bioroebe/gui/javafx/bioroebe.mf +1 -0
- data/lib/bioroebe/gui/javafx/module-info.class +0 -0
- data/lib/bioroebe/gui/javafx/module-info.java +5 -0
- data/lib/bioroebe/gui/jruby/alignment/alignment.rb +165 -0
- data/lib/bioroebe/gui/jruby/aminoacid_composition/aminoacid_composition.rb +166 -0
- data/lib/bioroebe/gui/libui/alignment/alignment.rb +3 -1
- data/lib/bioroebe/gui/libui/controller/controller.rb +116 -0
- data/lib/bioroebe/gui/libui/random_sequence/random_sequence.rb +18 -2
- data/lib/bioroebe/gui/libui/show_codon_table/show_codon_table.rb +2 -0
- data/lib/bioroebe/gui/libui/three_to_one/three_to_one.rb +8 -6
- data/lib/bioroebe/gui/shared_code/alignment/alignment_module.rb +102 -0
- data/lib/bioroebe/gui/shared_code/aminoacid_composition/aminoacid_composition_module.rb +94 -0
- data/lib/bioroebe/gui/shared_code/levensthein_distance/levensthein_distance_module.rb +18 -16
- data/lib/bioroebe/gui/shared_code/protein_to_DNA/protein_to_DNA_module.rb +14 -14
- data/lib/bioroebe/gui/swing/three_to_one/ThreeToOne$1.class +0 -0
- data/lib/bioroebe/gui/swing/three_to_one/ThreeToOne$CloseListener.class +0 -0
- data/lib/bioroebe/gui/swing/three_to_one/ThreeToOne.class +0 -0
- data/lib/bioroebe/gui/swing/three_to_one/ThreeToOne.java +141 -0
- data/lib/bioroebe/images/FORWARD_PRIMER.png +0 -0
- data/lib/bioroebe/images/REVERSE_PRIMER.png +0 -0
- data/lib/bioroebe/images/images.html +29845 -0
- data/lib/bioroebe/java/README.md +5 -0
- data/lib/bioroebe/java/bioroebe/AllInOne.java +1 -0
- data/lib/bioroebe/java/bioroebe/Base.class +0 -0
- data/lib/bioroebe/java/bioroebe/Base.java +39 -5
- data/lib/bioroebe/java/bioroebe/IsPalindrome.java +23 -5
- data/lib/bioroebe/java/bioroebe/SanitizeNucleotideSequence.java +0 -0
- data/lib/bioroebe/java/bioroebe/Sequence.java +28 -3
- data/lib/bioroebe/java/bioroebe/ToCamelcase.class +0 -0
- data/lib/bioroebe/java/bioroebe/ToCamelcase.java +16 -4
- data/lib/bioroebe/java/bioroebe/ToRNA.java +43 -0
- data/lib/bioroebe/java/bioroebe/ToplevelMethods.java +6 -0
- data/lib/bioroebe/java/bioroebe/{BisulfiteTreatment.class → src/BisulfiteTreatment.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{Codons.class → src/Codons.class} +0 -0
- data/lib/bioroebe/java/bioroebe/src/Codons.java +35 -0
- data/lib/bioroebe/java/bioroebe/src/Commandline.class +0 -0
- data/lib/bioroebe/java/bioroebe/src/Commandline.java +101 -0
- data/lib/bioroebe/java/bioroebe/{Esystem.class → src/Esystem.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{Esystem.java → src/Esystem.java} +6 -1
- data/lib/bioroebe/java/bioroebe/{GenerateRandomDnaSequence.class → src/GenerateRandomDnaSequence.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{GenerateRandomDnaSequence.java → src/GenerateRandomDnaSequence.java} +8 -2
- data/lib/bioroebe/java/bioroebe/src/PartnerNucleotide.class +0 -0
- data/lib/bioroebe/java/bioroebe/src/PartnerNucleotide.java +56 -0
- data/lib/bioroebe/java/bioroebe/{RemoveFile.java → src/RemoveFile.java} +10 -4
- data/lib/bioroebe/java/bioroebe/{RemoveNumbers.class → src/RemoveNumbers.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{RemoveNumbers.java → src/RemoveNumbers.java} +1 -0
- data/lib/bioroebe/java/bioroebe/src/toplevel_methods/BaseComposition.class +0 -0
- data/lib/bioroebe/java/bioroebe/src/toplevel_methods/BaseComposition.java +75 -0
- data/lib/bioroebe/misc/ruler.rb +11 -2
- data/lib/bioroebe/nucleotides/most_likely_nucleotide_sequence_for_this_aminoacid_sequence.rb +1 -9
- data/lib/bioroebe/nucleotides/sanitize_nucleotide_sequence.rb +59 -18
- data/lib/bioroebe/nucleotides/show_nucleotide_sequence.rb +7 -7
- data/lib/bioroebe/parsers/genbank_parser.rb +347 -26
- data/lib/bioroebe/parsers/gff.rb +1 -9
- data/lib/bioroebe/patterns/scan_for_repeat.rb +1 -5
- data/lib/bioroebe/pdb/fetch_fasta_sequence_from_pdb.rb +1 -9
- data/lib/bioroebe/pdb/parse_mmCIF_file.rb +1 -9
- data/lib/bioroebe/pdb/parse_pdb_file.rb +4 -10
- data/lib/bioroebe/project/project.rb +1 -1
- data/lib/bioroebe/python/README.md +1 -0
- data/lib/bioroebe/python/__pycache__/mymodule.cpython-39.pyc +0 -0
- data/lib/bioroebe/python/gui/gtk3/all_in_one.css +4 -0
- data/lib/bioroebe/python/gui/gtk3/all_in_one.py +59 -0
- data/lib/bioroebe/python/gui/gtk3/widget1.py +20 -0
- data/lib/bioroebe/python/gui/tkinter/all_in_one.py +91 -0
- data/lib/bioroebe/python/mymodule.py +8 -0
- data/lib/bioroebe/python/protein_to_dna.py +33 -0
- data/lib/bioroebe/python/shell/shell.py +19 -0
- data/lib/bioroebe/python/to_rna.py +14 -0
- data/lib/bioroebe/python/toplevel_methods/convert_dna_to_aminoacid_sequence.py +137 -0
- data/lib/bioroebe/python/toplevel_methods/esystem.py +12 -0
- data/lib/bioroebe/python/toplevel_methods/open_in_browser.py +20 -0
- data/lib/bioroebe/python/toplevel_methods/palindromes.py +52 -0
- data/lib/bioroebe/python/toplevel_methods/rds.py +13 -0
- data/lib/bioroebe/python/toplevel_methods/shuffleseq.py +23 -0
- data/lib/bioroebe/python/toplevel_methods/three_delimiter.py +37 -0
- data/lib/bioroebe/python/toplevel_methods/time_and_date.py +43 -0
- data/lib/bioroebe/python/toplevel_methods/to_camelcase.py +21 -0
- data/lib/bioroebe/requires/require_cleave_and_digest.rb +3 -1
- data/lib/bioroebe/requires/require_the_bioroebe_project.rb +3 -1
- data/lib/bioroebe/sequence/alignment.rb +14 -4
- data/lib/bioroebe/sequence/dna.rb +1 -0
- data/lib/bioroebe/sequence/nucleotide_module/nucleotide_module.rb +28 -25
- data/lib/bioroebe/sequence/protein.rb +105 -3
- data/lib/bioroebe/sequence/rna.rb +220 -0
- data/lib/bioroebe/sequence/sequence.rb +128 -40
- data/lib/bioroebe/shell/menu.rb +3815 -3696
- data/lib/bioroebe/shell/misc.rb +9019 -3133
- data/lib/bioroebe/shell/readline/readline.rb +1 -1
- data/lib/bioroebe/shell/shell.rb +1137 -28
- data/lib/bioroebe/siRNA/siRNA.rb +81 -1
- data/lib/bioroebe/string_matching/find_longest_substring.rb +3 -2
- data/lib/bioroebe/string_matching/hamming_distance.rb +1 -9
- data/lib/bioroebe/taxonomy/class_methods.rb +3 -8
- data/lib/bioroebe/taxonomy/constants.rb +4 -3
- data/lib/bioroebe/taxonomy/edit.rb +2 -1
- data/lib/bioroebe/taxonomy/help/help.rb +10 -10
- data/lib/bioroebe/taxonomy/help/helpline.rb +2 -2
- data/lib/bioroebe/taxonomy/info/check_available.rb +15 -9
- data/lib/bioroebe/taxonomy/info/info.rb +18 -11
- data/lib/bioroebe/taxonomy/info/is_dna.rb +46 -36
- data/lib/bioroebe/taxonomy/interactive.rb +140 -104
- data/lib/bioroebe/taxonomy/menu.rb +27 -18
- data/lib/bioroebe/taxonomy/parse_fasta.rb +3 -1
- data/lib/bioroebe/taxonomy/shared.rb +1 -0
- data/lib/bioroebe/taxonomy/taxonomy.rb +1 -0
- data/lib/bioroebe/toplevel_methods/aminoacids_and_proteins.rb +31 -24
- data/lib/bioroebe/toplevel_methods/colourize_related_methods.rb +164 -0
- data/lib/bioroebe/toplevel_methods/databases.rb +1 -1
- data/lib/bioroebe/toplevel_methods/digest.rb +18 -8
- data/lib/bioroebe/toplevel_methods/fasta_and_fastq.rb +107 -63
- data/lib/bioroebe/toplevel_methods/file_and_directory_related_actions.rb +14 -2
- data/lib/bioroebe/toplevel_methods/frequencies.rb +8 -1
- data/lib/bioroebe/toplevel_methods/misc.rb +175 -11
- data/lib/bioroebe/toplevel_methods/nucleotides.rb +118 -46
- data/lib/bioroebe/toplevel_methods/open_in_browser.rb +2 -0
- data/lib/bioroebe/toplevel_methods/palindromes.rb +75 -47
- data/lib/bioroebe/toplevel_methods/taxonomy.rb +3 -3
- data/lib/bioroebe/toplevel_methods/to_camelcase.rb +5 -0
- data/lib/bioroebe/utility_scripts/align_open_reading_frames.rb +1 -9
- data/lib/bioroebe/utility_scripts/check_for_mismatches/check_for_mismatches.rb +1 -9
- data/lib/bioroebe/utility_scripts/compacter/compacter.rb +251 -0
- data/lib/bioroebe/utility_scripts/compseq/compseq.rb +1 -9
- data/lib/bioroebe/utility_scripts/consensus_sequence.rb +6 -6
- data/lib/bioroebe/utility_scripts/create_batch_entrez_file.rb +1 -9
- data/lib/bioroebe/utility_scripts/dot_alignment.rb +1 -9
- data/lib/bioroebe/utility_scripts/move_file_to_its_correct_location.rb +1 -4
- data/lib/bioroebe/utility_scripts/parse_taxonomy.rb +2 -2
- data/lib/bioroebe/utility_scripts/permutations.rb +36 -9
- data/lib/bioroebe/utility_scripts/showorf/constants.rb +0 -5
- data/lib/bioroebe/utility_scripts/showorf/reset.rb +1 -4
- data/lib/bioroebe/version/version.rb +2 -2
- data/lib/bioroebe/www/embeddable_interface.rb +121 -58
- data/lib/bioroebe/www/sinatra/sinatra.rb +186 -71
- data/lib/bioroebe/yaml/aminoacids/amino_acids_long_name_to_one_letter.yml +2 -2
- data/lib/bioroebe/yaml/aminoacids/weight_of_common_proteins.yml +17 -17
- data/lib/bioroebe/yaml/configuration/browser.yml +1 -1
- data/lib/bioroebe/yaml/configuration/temp_dir.yml +1 -1
- data/lib/bioroebe/yaml/consensus_sequences/consensus_sequences.yml +1 -0
- data/lib/bioroebe/yaml/genomes/README.md +3 -4
- data/lib/bioroebe/yaml/nucleotides/nucleotides.yml +5 -0
- data/lib/bioroebe/yaml/restriction_enzymes/restriction_enzymes.yml +57 -57
- data/spec/README.md +6 -0
- data/spec/project_wide_specification/classes.md +5 -0
- metadata +107 -70
- data/doc/setup.rb +0 -1655
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/constants.rb +0 -50
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/initialize.rb +0 -86
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/menu.rb +0 -117
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/misc.rb +0 -981
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/report.rb +0 -156
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/reset.rb +0 -128
- data/lib/bioroebe/genbank/genbank_parser.rb +0 -291
- data/lib/bioroebe/java/bioroebe/AllInOne.class +0 -0
- data/lib/bioroebe/java/bioroebe/Cat.class +0 -0
- data/lib/bioroebe/java/bioroebe/Codons.java +0 -22
- data/lib/bioroebe/java/bioroebe/IsPalindrome.class +0 -0
- data/lib/bioroebe/java/bioroebe/PartnerNucleotide.class +0 -0
- data/lib/bioroebe/java/bioroebe/PartnerNucleotide.java +0 -19
- data/lib/bioroebe/java/bioroebe/SanitizeNucleotideSequence.class +0 -0
- data/lib/bioroebe/java/bioroebe/ToplevelMethods.class +0 -0
- data/lib/bioroebe/java/bioroebe.jar +0 -0
- data/lib/bioroebe/shell/add.rb +0 -108
- data/lib/bioroebe/shell/assign.rb +0 -360
- data/lib/bioroebe/shell/chop_and_cut.rb +0 -281
- data/lib/bioroebe/shell/constants.rb +0 -166
- data/lib/bioroebe/shell/download.rb +0 -335
- data/lib/bioroebe/shell/enable_and_disable.rb +0 -158
- data/lib/bioroebe/shell/enzymes.rb +0 -310
- data/lib/bioroebe/shell/fasta.rb +0 -345
- data/lib/bioroebe/shell/gtk.rb +0 -76
- data/lib/bioroebe/shell/history.rb +0 -132
- data/lib/bioroebe/shell/initialize.rb +0 -217
- data/lib/bioroebe/shell/loop.rb +0 -74
- data/lib/bioroebe/shell/prompt.rb +0 -107
- data/lib/bioroebe/shell/random.rb +0 -289
- data/lib/bioroebe/shell/reset.rb +0 -335
- data/lib/bioroebe/shell/scan_and_parse.rb +0 -135
- data/lib/bioroebe/shell/search.rb +0 -337
- data/lib/bioroebe/shell/sequences.rb +0 -200
- data/lib/bioroebe/shell/show_report_and_display.rb +0 -2901
- data/lib/bioroebe/shell/startup.rb +0 -127
- data/lib/bioroebe/shell/taxonomy.rb +0 -14
- data/lib/bioroebe/shell/tk.rb +0 -23
- data/lib/bioroebe/shell/user_input.rb +0 -88
- data/lib/bioroebe/shell/xorg.rb +0 -45
- data/lib/bioroebe/utility_scripts/compacter.rb +0 -131
- /data/lib/bioroebe/java/bioroebe/{BisulfiteTreatment.java → src/BisulfiteTreatment.java} +0 -0
- /data/lib/bioroebe/java/bioroebe/{RemoveFile.class → src/RemoveFile.class} +0 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
#include <algorithm>
|
2
|
+
#include <iostream>
|
3
|
+
#include <string>
|
4
|
+
#include "sequence.cpp"
|
5
|
+
|
6
|
+
using namespace std;
|
7
|
+
|
8
|
+
/*
|
9
|
+
* The idea behind this class is to represent a DNA sequence.
|
10
|
+
*
|
11
|
+
* Ideally it can be re-used across the bioroebe-suite.
|
12
|
+
*/
|
13
|
+
|
14
|
+
/*
|
15
|
+
* class DNA : public Sequence {}
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
|
19
|
+
class DNA : public Sequence
|
20
|
+
{
|
21
|
+
|
22
|
+
/*
|
23
|
+
* query_sequence()
|
24
|
+
*/
|
25
|
+
public: /* Public access members are accessible anywhere. */
|
26
|
+
|
27
|
+
DNA() /* Our default constructor */
|
28
|
+
{
|
29
|
+
/* cout << "Default constructor invoked." << endl; */
|
30
|
+
}
|
31
|
+
/*~DNA()
|
32
|
+
{
|
33
|
+
std::cout << "Object has been eliminated." << endl;
|
34
|
+
}*/ /* Our default destructor - presently not in use for this class. */
|
35
|
+
DNA(string i) /* If we want to use a String as sequence. */
|
36
|
+
{
|
37
|
+
set_sequence(i);
|
38
|
+
}
|
39
|
+
|
40
|
+
/*
|
41
|
+
* report_as_RNA()
|
42
|
+
*/
|
43
|
+
void report_as_RNA() {
|
44
|
+
string result = query_sequence(); /* Copy the sequence here. */
|
45
|
+
std::replace(
|
46
|
+
result.begin(),
|
47
|
+
result.end(),
|
48
|
+
'T',
|
49
|
+
'U'
|
50
|
+
); /* Replace all 'T' with 'U' */
|
51
|
+
cout << result << endl;
|
52
|
+
}
|
53
|
+
|
54
|
+
};
|
55
|
+
|
56
|
+
int main()
|
57
|
+
{
|
58
|
+
/* This is mostly for testing: */
|
59
|
+
DNA dna;
|
60
|
+
dna.set_sequence("ATGC");
|
61
|
+
dna.report();
|
62
|
+
dna.set_sequence("TTTT");
|
63
|
+
dna.report();
|
64
|
+
dna.report_as_RNA();
|
65
|
+
dna.report();
|
66
|
+
DNA dna2("GGCC");
|
67
|
+
dna2.report();
|
68
|
+
return EXIT_SUCCESS;
|
69
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
#include <algorithm>
|
2
|
+
#include <iostream>
|
3
|
+
#include <string>
|
4
|
+
#include "sequence.cpp"
|
5
|
+
|
6
|
+
using namespace std;
|
7
|
+
|
8
|
+
/*
|
9
|
+
* The idea behind this class is to represent a RNA sequence.
|
10
|
+
*
|
11
|
+
* Ideally it can be re-used across the bioroebe-suite.
|
12
|
+
*/
|
13
|
+
|
14
|
+
class RNA : public Sequence
|
15
|
+
{
|
16
|
+
|
17
|
+
/*
|
18
|
+
* query_sequence()
|
19
|
+
*/
|
20
|
+
public: /* Public access members are accessible anywhere. */
|
21
|
+
|
22
|
+
RNA() /* Our default constructor */
|
23
|
+
{
|
24
|
+
/* cout << "Default constructor invoked." << endl; */
|
25
|
+
}
|
26
|
+
/*~RNA()
|
27
|
+
{
|
28
|
+
std::cout << "Object has been eliminated." << endl;
|
29
|
+
}*/ /* Our default destructor - presently not in use for this class. */
|
30
|
+
RNA(string i) /* If we want to use a String as sequence. */
|
31
|
+
{
|
32
|
+
set_sequence(i);
|
33
|
+
}
|
34
|
+
|
35
|
+
/*
|
36
|
+
* report_as_RNA()
|
37
|
+
*/
|
38
|
+
void report_as_RNA() {
|
39
|
+
string result = query_sequence(); /* Copy the sequence here. */
|
40
|
+
std::replace(
|
41
|
+
result.begin(),
|
42
|
+
result.end(),
|
43
|
+
'T',
|
44
|
+
'U'
|
45
|
+
); /* Replace all 'T' with 'U' */
|
46
|
+
cout << result << endl;
|
47
|
+
}
|
48
|
+
|
49
|
+
};
|
50
|
+
|
51
|
+
int main()
|
52
|
+
{
|
53
|
+
/* This is mostly for testing: */
|
54
|
+
RNA rna;
|
55
|
+
rna.set_sequence("ATGC");
|
56
|
+
rna.report();
|
57
|
+
return EXIT_SUCCESS;
|
58
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#include <iostream>
|
2
|
+
#include <string>
|
3
|
+
|
4
|
+
using namespace std;
|
5
|
+
|
6
|
+
class Sequence {
|
7
|
+
|
8
|
+
private: /* Simply make it more specific here. */
|
9
|
+
|
10
|
+
string sequence = "";
|
11
|
+
|
12
|
+
public:
|
13
|
+
|
14
|
+
/*
|
15
|
+
* query_sequence()
|
16
|
+
*/
|
17
|
+
string query_sequence() {
|
18
|
+
return sequence;
|
19
|
+
}
|
20
|
+
|
21
|
+
/*
|
22
|
+
* report() (report tag)
|
23
|
+
*/
|
24
|
+
void report() {
|
25
|
+
cout << query_sequence() << endl;
|
26
|
+
}
|
27
|
+
/*
|
28
|
+
* set_sequence()
|
29
|
+
*
|
30
|
+
* Specify a new sequence here.
|
31
|
+
*/
|
32
|
+
void set_sequence(string i) {
|
33
|
+
sequence = i;
|
34
|
+
}
|
35
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
This is for testing various ideas. It won't be required normally.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# === Bioroebe::Features
|
6
|
+
# =========================================================================== #
|
7
|
+
module Bioroebe
|
8
|
+
|
9
|
+
module Features # === Bioroebe::Features
|
10
|
+
|
11
|
+
# ========================================================================= #
|
12
|
+
# === can_self_excise?
|
13
|
+
#
|
14
|
+
# RNA such as in etrahymena thermophila can cleave out 400
|
15
|
+
# nucleotides. For such a RNA the method must then return
|
16
|
+
# true.
|
17
|
+
# ========================================================================= #
|
18
|
+
def can_self_excise?
|
19
|
+
false
|
20
|
+
end
|
21
|
+
|
22
|
+
# ========================================================================= #
|
23
|
+
# === is_a_ribozyme?
|
24
|
+
# ========================================================================= #
|
25
|
+
def is_a_ribozyme?
|
26
|
+
false
|
27
|
+
end
|
28
|
+
|
29
|
+
end; end
|
@@ -21,11 +21,6 @@ module Bioroebe
|
|
21
21
|
|
22
22
|
class AminoacidSubstitution < ::Bioroebe::CommandlineApplication # === Bioroebe::AminoacidSubstitution
|
23
23
|
|
24
|
-
# ========================================================================= #
|
25
|
-
# === NAMESPACE
|
26
|
-
# ========================================================================= #
|
27
|
-
NAMESPACE = inspect
|
28
|
-
|
29
24
|
# ========================================================================= #
|
30
25
|
# === initialize
|
31
26
|
# ========================================================================= #
|
@@ -49,10 +44,7 @@ class AminoacidSubstitution < ::Bioroebe::CommandlineApplication # === Bioroebe:
|
|
49
44
|
# ========================================================================= #
|
50
45
|
def reset
|
51
46
|
super()
|
52
|
-
|
53
|
-
# === @namespace
|
54
|
-
# ======================================================================= #
|
55
|
-
@namespace = NAMESPACE
|
47
|
+
infer_the_namespace
|
56
48
|
end
|
57
49
|
|
58
50
|
# ========================================================================= #
|
@@ -21,11 +21,6 @@ module Bioroebe
|
|
21
21
|
|
22
22
|
class CodonPercentage < ::Bioroebe::CommandlineApplication # === Bioroebe::CodonPercentage
|
23
23
|
|
24
|
-
# ========================================================================= #
|
25
|
-
# === NAMESPACE
|
26
|
-
# ========================================================================= #
|
27
|
-
NAMESPACE = inspect
|
28
|
-
|
29
24
|
# ========================================================================= #
|
30
25
|
# === initialize
|
31
26
|
# ========================================================================= #
|
@@ -45,10 +40,7 @@ class CodonPercentage < ::Bioroebe::CommandlineApplication # === Bioroebe::Codon
|
|
45
40
|
# ========================================================================= #
|
46
41
|
def reset
|
47
42
|
super()
|
48
|
-
|
49
|
-
# === @namespace
|
50
|
-
# ======================================================================= #
|
51
|
-
@namespace = NAMESPACE
|
43
|
+
infer_the_namespace
|
52
44
|
# ======================================================================= #
|
53
45
|
# === @internal_hash
|
54
46
|
# ======================================================================= #
|
@@ -38,11 +38,6 @@ class DeduceAminoacidSequence < ::Bioroebe::CommandlineApplication # === Bioroeb
|
|
38
38
|
require 'bioroebe/codons/possible_codons_for_this_aminoacid.rb'
|
39
39
|
require 'bioroebe/misc/ruler.rb'
|
40
40
|
|
41
|
-
# ========================================================================= #
|
42
|
-
# === NAMESPACE
|
43
|
-
# ========================================================================= #
|
44
|
-
NAMESPACE = inspect
|
45
|
-
|
46
41
|
# ========================================================================= #
|
47
42
|
# === DEFAULT_SEQUENCE
|
48
43
|
#
|
@@ -73,10 +68,7 @@ class DeduceAminoacidSequence < ::Bioroebe::CommandlineApplication # === Bioroeb
|
|
73
68
|
# ========================================================================= #
|
74
69
|
def reset
|
75
70
|
super()
|
76
|
-
|
77
|
-
# === @namespace
|
78
|
-
# ======================================================================= #
|
79
|
-
@namespace = NAMESPACE
|
71
|
+
infer_the_namespace
|
80
72
|
# ======================================================================= #
|
81
73
|
# === @internal_hash
|
82
74
|
# ======================================================================= #
|
@@ -27,11 +27,6 @@ class ShowHydrophobicity < ::Bioroebe::CommandlineApplication # === Bioroebe::Sh
|
|
27
27
|
HYDROPATHY_TABLE = YAML.load_file(FILE_HYDROPATHY_TABLE)
|
28
28
|
end
|
29
29
|
|
30
|
-
# ========================================================================= #
|
31
|
-
# === NAMESPACE
|
32
|
-
# ========================================================================= #
|
33
|
-
NAMESPACE = inspect
|
34
|
-
|
35
30
|
# ========================================================================= #
|
36
31
|
# === initialize
|
37
32
|
# ========================================================================= #
|
@@ -142,7 +137,7 @@ class ShowHydrophobicity < ::Bioroebe::CommandlineApplication # === Bioroebe::Sh
|
|
142
137
|
# ========================================================================= #
|
143
138
|
def opnn(i = nil)
|
144
139
|
hash = {}
|
145
|
-
hash.merge!(namespace:
|
140
|
+
hash.merge!(namespace: namespace?)
|
146
141
|
hash.merge!(i) if i
|
147
142
|
super(hash)
|
148
143
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# This module will be included into both Bioroebe::Base as well as
|
6
|
+
# Bioroebe::CommandlineApplication.
|
7
|
+
# =========================================================================== #
|
8
|
+
# require 'bioroebe/base/base_module/base_module.rb'
|
9
|
+
# include Bioroebe::BaseModule
|
10
|
+
# =========================================================================== #
|
11
|
+
module Bioroebe
|
12
|
+
|
13
|
+
module BaseModule # === Bioroebe::BaseModule
|
14
|
+
|
15
|
+
# ========================================================================= #
|
16
|
+
# === file_readlines
|
17
|
+
#
|
18
|
+
# This method is merely a wrapper over File.readlines().
|
19
|
+
# ========================================================================= #
|
20
|
+
def file_readlines(
|
21
|
+
i, encoding_to_use = main_encoding?
|
22
|
+
)
|
23
|
+
File.readlines(i, encoding: encoding_to_use)
|
24
|
+
end; alias readlines file_readlines # === readlines
|
25
|
+
alias default_readlines file_readlines # === default_readlines
|
26
|
+
|
27
|
+
# ========================================================================= #
|
28
|
+
# === default_file_read
|
29
|
+
#
|
30
|
+
# This variant will use File.read().
|
31
|
+
# ========================================================================= #
|
32
|
+
def default_file_read(i)
|
33
|
+
File.read(i) if File.exist?(i)
|
34
|
+
end
|
35
|
+
|
36
|
+
end; end
|
@@ -209,14 +209,6 @@ module ColoursForBase # === Bioroebe::ColoursForBase
|
|
209
209
|
return i
|
210
210
|
end
|
211
211
|
|
212
|
-
# ========================================================================= #
|
213
|
-
# === sfancy
|
214
|
-
# ========================================================================= #
|
215
|
-
def sfancy(i = '')
|
216
|
-
return powderblue(i) if use_colours? and use_colours_within_the_bioroebe_namespace?
|
217
|
-
return i
|
218
|
-
end
|
219
|
-
|
220
212
|
# ========================================================================= #
|
221
213
|
# === simp
|
222
214
|
# ========================================================================= #
|
@@ -272,4 +264,22 @@ module ColoursForBase # === Bioroebe::ColoursForBase
|
|
272
264
|
@use_colours = true
|
273
265
|
end
|
274
266
|
|
267
|
+
# ========================================================================= #
|
268
|
+
# === efancy
|
269
|
+
# ========================================================================= #
|
270
|
+
def efancy(i)
|
271
|
+
e sfancy(i)
|
272
|
+
end
|
273
|
+
|
274
|
+
# ========================================================================= #
|
275
|
+
# === sfancy
|
276
|
+
# ========================================================================= #
|
277
|
+
def sfancy(
|
278
|
+
i = '',
|
279
|
+
use_colours = use_colours?
|
280
|
+
)
|
281
|
+
return powderblue(i) if use_colours and use_colours_within_the_bioroebe_namespace?
|
282
|
+
return i
|
283
|
+
end
|
284
|
+
|
275
285
|
end; end
|
@@ -8,20 +8,21 @@
|
|
8
8
|
require 'bioroebe/base/colours.rb'
|
9
9
|
require 'bioroebe/base/prototype/prototype.rb'
|
10
10
|
require 'bioroebe/base/misc.rb' # ← This file contains the is_palindrome? check.
|
11
|
-
require 'bioroebe/base/commandline_application/aminoacids.rb'
|
12
|
-
require 'bioroebe/base/commandline_application/commandline_arguments.rb'
|
13
|
-
require 'bioroebe/base/commandline_application/directory.rb'
|
14
|
-
require 'bioroebe/base/commandline_application/extract.rb'
|
15
|
-
require 'bioroebe/base/commandline_application/misc.rb'
|
16
|
-
require 'bioroebe/base/commandline_application/opn.rb'
|
17
|
-
require 'bioroebe/base/commandline_application/reset.rb'
|
18
|
-
require 'bioroebe/base/commandline_application/warnings.rb'
|
19
|
-
require 'bioroebe/base/commandline_application/write_what_into.rb'
|
20
11
|
|
21
12
|
module Bioroebe
|
22
13
|
|
23
14
|
class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
24
15
|
|
16
|
+
require 'bioroebe/base/commandline_application/aminoacids.rb'
|
17
|
+
require 'bioroebe/base/commandline_application/commandline_arguments.rb'
|
18
|
+
require 'bioroebe/base/commandline_application/directory.rb'
|
19
|
+
require 'bioroebe/base/commandline_application/extract.rb'
|
20
|
+
require 'bioroebe/base/commandline_application/misc.rb'
|
21
|
+
require 'bioroebe/base/commandline_application/opn.rb'
|
22
|
+
require 'bioroebe/base/commandline_application/reset.rb'
|
23
|
+
require 'bioroebe/base/commandline_application/warnings.rb'
|
24
|
+
require 'bioroebe/base/commandline_application/write_what_into.rb'
|
25
|
+
|
25
26
|
require 'bioroebe/constants/nucleotides.rb'
|
26
27
|
require 'bioroebe/constants/misc.rb'
|
27
28
|
require 'bioroebe/constants/urls.rb'
|
@@ -34,4 +35,7 @@ class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
|
34
35
|
include Bioroebe::ColoursForBase
|
35
36
|
include Bioroebe::CommandlineArguments
|
36
37
|
|
38
|
+
require 'bioroebe/base/base_module/base_module.rb'
|
39
|
+
include Bioroebe::BaseModule
|
40
|
+
|
37
41
|
end; end
|
@@ -68,17 +68,6 @@ module CommandlineArguments # === Bioroebe::CommandlineApplication
|
|
68
68
|
@commandline_arguments.reject {|entry| File.file?(entry.to_s) }
|
69
69
|
end
|
70
70
|
|
71
|
-
# ========================================================================= #
|
72
|
-
# === return_entries_without_two_leading_hyphens
|
73
|
-
#
|
74
|
-
# This variant will return all entries WITHOUT leading hyphens.
|
75
|
-
# ========================================================================= #
|
76
|
-
def return_entries_without_two_leading_hyphens(
|
77
|
-
i = @commandline_arguments
|
78
|
-
)
|
79
|
-
i.reject {|entry| entry.start_with? '--' }
|
80
|
-
end; alias return_commandline_arguments_without_hyphen return_entries_without_two_leading_hyphens # === return_commandline_arguments_without_hyphen
|
81
|
-
|
82
71
|
# ========================================================================= #
|
83
72
|
# === select_commandline_arguments
|
84
73
|
#
|
@@ -111,6 +100,13 @@ module CommandlineArguments # === Bioroebe::CommandlineApplication
|
|
111
100
|
@commandline_arguments.join(' ').strip
|
112
101
|
end
|
113
102
|
|
103
|
+
# ========================================================================= #
|
104
|
+
# === first_non_hyphen_argument?
|
105
|
+
# ========================================================================= #
|
106
|
+
def first_non_hyphen_argument?
|
107
|
+
return_entries_without_two_leading_hyphens.first
|
108
|
+
end; alias first_non_hyphened_argument? first_non_hyphen_argument? # === first_non_hyphened_argument?
|
109
|
+
|
114
110
|
# ========================================================================= #
|
115
111
|
# === select_entries_starting_with_two_hyphens
|
116
112
|
#
|
@@ -125,20 +121,29 @@ module CommandlineArguments # === Bioroebe::CommandlineApplication
|
|
125
121
|
else
|
126
122
|
[]
|
127
123
|
end
|
128
|
-
end; alias
|
129
|
-
alias commandline_arguments_containing_hyphens? select_entries_starting_with_two_hyphens # === commandline_arguments_containing_hyphens?
|
130
|
-
alias return_entries_with_two_leading_hyphens_from select_entries_starting_with_two_hyphens # === return_entries_with_two_leading_hyphens_from
|
124
|
+
end; alias return_entries_with_two_leading_hyphens_from select_entries_starting_with_two_hyphens # === return_entries_with_two_leading_hyphens_from
|
131
125
|
alias return_arguments_with_leading_hyphens select_entries_starting_with_two_hyphens # === return_arguments_with_leading_hyphens
|
132
126
|
alias return_commandline_arguments_starting_with_hyphens select_entries_starting_with_two_hyphens # === return_commandline_arguments_starting_with_hyphens
|
133
127
|
alias return_commandline_arguments_starting_with_two_hyphens select_entries_starting_with_two_hyphens # === return_commandline_arguments_starting_with_two_hyphens
|
134
|
-
alias
|
128
|
+
alias commandline_arguments_containing_hyphens? select_entries_starting_with_two_hyphens # === commandline_arguments_containing_hyphens?
|
129
|
+
alias commandline_arguments_containing_leading_hyphens? select_entries_starting_with_two_hyphens # === commandline_arguments_containing_leading_hyphens?
|
130
|
+
alias commandline_arguments_with_two_leading_hyphens select_entries_starting_with_two_hyphens # === commandline_arguments_with_two_leading_hyphens
|
135
131
|
alias commandline_arguments_starting_with_leading_hyphens? select_entries_starting_with_two_hyphens # === commandline_arguments_starting_with_leading_hyphens?
|
132
|
+
alias commandline_arguments_starting_with_a_hyphen? select_entries_starting_with_two_hyphens # === commandline_arguments_starting_with_a_hyphen?
|
133
|
+
alias commandline_arguments_starting_with_a_hyphen select_entries_starting_with_two_hyphens # === commandline_arguments_starting_with_a_hyphen
|
134
|
+
alias select_two_hyphens_from select_entries_starting_with_two_hyphens # === select_two_hyphens_from
|
136
135
|
|
137
136
|
# ========================================================================= #
|
138
|
-
# ===
|
137
|
+
# === return_entries_without_two_leading_hyphens
|
138
|
+
#
|
139
|
+
# This variant will return all entries WITHOUT leading hyphens.
|
139
140
|
# ========================================================================= #
|
140
|
-
def
|
141
|
-
|
142
|
-
|
141
|
+
def return_entries_without_two_leading_hyphens(
|
142
|
+
i = @commandline_arguments
|
143
|
+
)
|
144
|
+
i.reject {|entry| entry.start_with? '--' }
|
145
|
+
end; alias return_commandline_arguments_without_hyphen return_entries_without_two_leading_hyphens # === return_commandline_arguments_without_hyphen
|
146
|
+
alias reject_hyphens return_entries_without_two_leading_hyphens # === reject_hyphens
|
147
|
+
alias non_hyphened_commandline_arguments? return_entries_without_two_leading_hyphens # === non_hyphened_commandline_arguments?
|
143
148
|
|
144
149
|
end; end
|
@@ -163,17 +163,6 @@ class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
|
163
163
|
::Bioroebe.cat(i)
|
164
164
|
end
|
165
165
|
|
166
|
-
# ========================================================================= #
|
167
|
-
# === codon_to_aminoacid
|
168
|
-
# ========================================================================= #
|
169
|
-
def codon_to_aminoacid(i)
|
170
|
-
unless Bioroebe.respond_to? :codon_to_aminoacid
|
171
|
-
require 'bioroebe/conversions/dna_to_aminoacid_sequence.rb'
|
172
|
-
end
|
173
|
-
::Bioroebe.codon_to_aminoacid(i)
|
174
|
-
end; alias nucleotides_to_aminoacid codon_to_aminoacid # === nucleotides_to_aminoacid
|
175
|
-
alias codons_to_aminoacid codon_to_aminoacid # === codons_to_aminoacid
|
176
|
-
|
177
166
|
# ========================================================================= #
|
178
167
|
# === without_extname
|
179
168
|
#
|
@@ -329,23 +318,6 @@ class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
|
329
318
|
::Bioroebe.return_ubiquitin_sequence(i)
|
330
319
|
end
|
331
320
|
|
332
|
-
# ========================================================================= #
|
333
|
-
# === be_verbose?
|
334
|
-
# ========================================================================= #
|
335
|
-
def be_verbose?
|
336
|
-
@be_verbose
|
337
|
-
end; alias verbose? be_verbose? # === be_verbose?
|
338
|
-
|
339
|
-
# ========================================================================= #
|
340
|
-
# === be_silent
|
341
|
-
# ========================================================================= #
|
342
|
-
def be_silent
|
343
|
-
@be_verbose = false
|
344
|
-
end; alias be_quiet be_silent # === be_quiet
|
345
|
-
alias set_be_silent be_silent # === set_be_silent
|
346
|
-
alias set_be_quiet be_silent # === set_be_quiet
|
347
|
-
alias do_not_be_verbose be_silent # === do_not_be_verbose
|
348
|
-
|
349
321
|
# ========================================================================= #
|
350
322
|
# === leading_five_prime
|
351
323
|
#
|
@@ -392,19 +364,6 @@ class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
|
392
364
|
)
|
393
365
|
end
|
394
366
|
|
395
|
-
# ========================================================================= #
|
396
|
-
# === set_be_verbose
|
397
|
-
# ========================================================================= #
|
398
|
-
def set_be_verbose(i = true)
|
399
|
-
case i
|
400
|
-
when :be_verbose
|
401
|
-
i = true
|
402
|
-
when :be_quiet
|
403
|
-
i = false
|
404
|
-
end
|
405
|
-
@be_verbose = i
|
406
|
-
end
|
407
|
-
|
408
367
|
# ========================================================================= #
|
409
368
|
# === colourize_this_dna_sequence
|
410
369
|
#
|
@@ -435,14 +394,6 @@ class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
|
435
394
|
return i.delete('[0-9]')
|
436
395
|
end
|
437
396
|
|
438
|
-
require 'bioroebe/toplevel_methods/open_in_browser.rb'
|
439
|
-
# ========================================================================= #
|
440
|
-
# === open_in_browser
|
441
|
-
# ========================================================================= #
|
442
|
-
def open_in_browser(this_url)
|
443
|
-
::Bioroebe.open_in_browser(this_url)
|
444
|
-
end
|
445
|
-
|
446
397
|
# ========================================================================= #
|
447
398
|
# === load_bioroebe_yaml_file
|
448
399
|
#
|
@@ -482,4 +433,70 @@ class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
|
482
433
|
end; alias three_aminoacid_letter_code_to_one_aminoacid_letter_code three_to_one # === three_aminoacid_letter_code_to_one_aminoacid_letter_code
|
483
434
|
alias three_letters_to_one_letter three_to_one # === three_letters_to_one_letter
|
484
435
|
|
436
|
+
require 'bioroebe/toplevel_methods/open_in_browser.rb'
|
437
|
+
# ========================================================================= #
|
438
|
+
# === open_in_browser
|
439
|
+
# ========================================================================= #
|
440
|
+
def open_in_browser(this_url)
|
441
|
+
::Bioroebe.open_in_browser(this_url)
|
442
|
+
end; alias open_in_browser_tab open_in_browser # === open_in_browser_tab
|
443
|
+
|
444
|
+
require 'bioroebe/toplevel_methods/verbose.rb'
|
445
|
+
# ========================================================================= #
|
446
|
+
# === verbose_truth
|
447
|
+
#
|
448
|
+
# Delegate towards the module Bioroebe::VerboseTruth here.
|
449
|
+
# ========================================================================= #
|
450
|
+
def verbose_truth(i)
|
451
|
+
::Bioroebe::VerboseTruth[i]
|
452
|
+
end
|
453
|
+
|
454
|
+
# ========================================================================= #
|
455
|
+
# === codon_to_aminoacid
|
456
|
+
# ========================================================================= #
|
457
|
+
def codon_to_aminoacid(i)
|
458
|
+
unless Bioroebe.respond_to? :codon_to_aminoacid
|
459
|
+
require 'bioroebe/conversions/dna_to_aminoacid_sequence.rb'
|
460
|
+
end
|
461
|
+
::Bioroebe.codon_to_aminoacid(i).to_s
|
462
|
+
end; alias nucleotides_to_aminoacid codon_to_aminoacid # === nucleotides_to_aminoacid
|
463
|
+
alias codons_to_aminoacid codon_to_aminoacid # === codons_to_aminoacid
|
464
|
+
|
465
|
+
# ========================================================================= #
|
466
|
+
# === be_verbose?
|
467
|
+
# ========================================================================= #
|
468
|
+
def be_verbose?
|
469
|
+
@internal_hash[:be_verbose]
|
470
|
+
end; alias verbose? be_verbose? # === be_verbose?
|
471
|
+
|
472
|
+
# ========================================================================= #
|
473
|
+
# === be_silent
|
474
|
+
# ========================================================================= #
|
475
|
+
def be_silent
|
476
|
+
@internal_hash[:be_verbose] = false
|
477
|
+
end; alias be_quiet be_silent # === be_quiet
|
478
|
+
alias set_be_silent be_silent # === set_be_silent
|
479
|
+
alias set_be_quiet be_silent # === set_be_quiet
|
480
|
+
alias do_not_be_verbose be_silent # === do_not_be_verbose
|
481
|
+
|
482
|
+
# ========================================================================= #
|
483
|
+
# === set_be_verbose
|
484
|
+
# ========================================================================= #
|
485
|
+
def set_be_verbose(i = true)
|
486
|
+
case i
|
487
|
+
# ======================================================================= #
|
488
|
+
# === :be_verbose
|
489
|
+
# ======================================================================= #
|
490
|
+
when :be_verbose,
|
491
|
+
:default
|
492
|
+
i = true
|
493
|
+
# ======================================================================= #
|
494
|
+
# === :be_quiet
|
495
|
+
# ======================================================================= #
|
496
|
+
when :be_quiet
|
497
|
+
i = false
|
498
|
+
end
|
499
|
+
@internal_hash[:be_verbose] = i
|
500
|
+
end
|
501
|
+
|
485
502
|
end; end
|
@@ -22,18 +22,11 @@ class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
|
22
22
|
::Bioroebe.use_opn?
|
23
23
|
end
|
24
24
|
|
25
|
-
# ========================================================================= #
|
26
|
-
# === opne
|
27
|
-
# ========================================================================= #
|
28
|
-
def opne(i = '')
|
29
|
-
opnn; e i
|
30
|
-
end
|
31
|
-
|
32
25
|
# ========================================================================= #
|
33
26
|
# === opnn
|
34
27
|
# ========================================================================= #
|
35
28
|
def opnn(
|
36
|
-
i =
|
29
|
+
i = namespace?,
|
37
30
|
&block
|
38
31
|
)
|
39
32
|
if use_opn?
|
@@ -44,4 +37,11 @@ class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
|
44
37
|
end
|
45
38
|
end
|
46
39
|
|
40
|
+
# ========================================================================= #
|
41
|
+
# === opne
|
42
|
+
# ========================================================================= #
|
43
|
+
def opne(i = '')
|
44
|
+
opnn; erev i
|
45
|
+
end
|
46
|
+
|
47
47
|
end; end
|