bioroebe 0.10.80 → 0.12.12
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.
Potentially problematic release.
This version of bioroebe might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +3612 -2781
- data/bin/bioroebe +7 -1
- data/bin/bioroebe_hash +7 -0
- data/bin/codon_to_aminoacid +1 -0
- data/bioroebe.gemspec +3 -3
- data/doc/README.gen +3612 -2742
- data/doc/quality_control/commandline_applications.md +3 -3
- data/doc/todo/bioroebe_java_todo.md +22 -0
- data/doc/todo/bioroebe_todo.md +2059 -2615
- 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/colours_for_base/colours_for_base.rb +18 -8
- data/lib/bioroebe/base/commandline_application/commandline_arguments.rb +15 -11
- 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 +3 -2
- data/lib/bioroebe/base/misc.rb +35 -0
- data/lib/bioroebe/base/prototype/misc.rb +11 -1
- 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 +192 -58
- data/lib/bioroebe/codons/possible_codons_for_this_aminoacid.rb +1 -9
- data/lib/bioroebe/codons/show_codon_tables.rb +6 -2
- 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/conversions/dna_to_aminoacid_sequence.rb +58 -24
- 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/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/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 +1465 -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 +67 -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 +73 -128
- data/lib/bioroebe/gui/gtk3/controller/controller.rb +45 -27
- data/lib/bioroebe/gui/gtk3/dna_to_aminoacid_widget/dna_to_aminoacid_widget.rb +76 -50
- data/lib/bioroebe/gui/gtk3/fasta_table_widget/fasta_table_widget.rb +99 -21
- data/lib/bioroebe/gui/gtk3/hamming_distance/hamming_distance.rb +42 -28
- data/lib/bioroebe/gui/gtk3/nucleotide_analyser/nucleotide_analyser.rb +119 -71
- data/lib/bioroebe/gui/gtk3/protein_to_DNA/protein_to_DNA.rb +18 -18
- data/lib/bioroebe/gui/gtk3/random_sequence/random_sequence.rb +19 -11
- data/lib/bioroebe/gui/jruby/alignment/alignment.rb +165 -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/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/java/README.md +4 -0
- data/lib/bioroebe/java/bioroebe/Sequence.java +25 -1
- data/lib/bioroebe/java/bioroebe/src/main/java/bioroebe/Base.class +0 -0
- data/lib/bioroebe/java/bioroebe/{Base.java → src/main/java/bioroebe/Base.java} +15 -2
- data/lib/bioroebe/java/bioroebe/{BisulfiteTreatment.class → src/main/java/bioroebe/BisulfiteTreatment.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{Codons.class → src/main/java/bioroebe/Codons.class} +0 -0
- data/lib/bioroebe/java/bioroebe/src/main/java/bioroebe/Codons.java +34 -0
- data/lib/bioroebe/java/bioroebe/src/main/java/bioroebe/Commandline.class +0 -0
- data/lib/bioroebe/java/bioroebe/src/main/java/bioroebe/Commandline.java +101 -0
- data/lib/bioroebe/java/bioroebe/{GenerateRandomDnaSequence.class → src/main/java/bioroebe/GenerateRandomDnaSequence.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{GenerateRandomDnaSequence.java → src/main/java/bioroebe/GenerateRandomDnaSequence.java} +8 -2
- data/lib/bioroebe/java/bioroebe/{IsPalindrome.class → src/main/java/bioroebe/IsPalindrome.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{IsPalindrome.java → src/main/java/bioroebe/IsPalindrome.java} +5 -1
- data/lib/bioroebe/java/bioroebe/src/main/java/bioroebe/PartnerNucleotide.class +0 -0
- data/lib/bioroebe/java/bioroebe/src/main/java/bioroebe/PartnerNucleotide.java +56 -0
- data/lib/bioroebe/java/bioroebe/{RemoveFile.java → src/main/java/bioroebe/RemoveFile.java} +10 -4
- data/lib/bioroebe/java/bioroebe/{RemoveNumbers.class → src/main/java/bioroebe/RemoveNumbers.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{RemoveNumbers.java → src/main/java/bioroebe/RemoveNumbers.java} +1 -0
- data/lib/bioroebe/java/bioroebe/{ToCamelcase.class → src/main/java/bioroebe/ToCamelcase.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{ToCamelcase.java → src/main/java/bioroebe/ToCamelcase.java} +3 -3
- data/lib/bioroebe/java/bioroebe/src/main/java/bioroebe/ToRNA.class +0 -0
- data/lib/bioroebe/java/bioroebe/src/main/java/bioroebe/ToRNA.java +42 -0
- data/lib/bioroebe/java/bioroebe/src/main/java/bioroebe/toplevel_methods/BaseComposition.class +0 -0
- data/lib/bioroebe/java/bioroebe/src/main/java/bioroebe/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/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/esystem.py +12 -0
- data/lib/bioroebe/python/toplevel_methods/open_in_browser.py +20 -0
- data/lib/bioroebe/python/toplevel_methods/palindromes.py +42 -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_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/sequence.rb +87 -21
- data/lib/bioroebe/shell/menu.rb +3829 -3714
- data/lib/bioroebe/shell/misc.rb +59 -4307
- data/lib/bioroebe/shell/readline/readline.rb +1 -1
- data/lib/bioroebe/shell/shell.rb +11255 -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 +142 -12
- 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 +1 -2
- data/lib/bioroebe/toplevel_methods/taxonomy.rb +2 -2
- 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.rb +1 -9
- 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/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 +103 -54
- data/lib/bioroebe/www/sinatra/sinatra.rb +186 -70
- data/lib/bioroebe/yaml/aminoacids/amino_acids_long_name_to_one_letter.yml +2 -2
- data/lib/bioroebe/yaml/configuration/browser.yml +1 -1
- data/lib/bioroebe/yaml/configuration/temp_dir.yml +1 -1
- data/lib/bioroebe/yaml/genomes/README.md +3 -4
- data/lib/bioroebe/yaml/restriction_enzymes/restriction_enzymes.yml +27 -27
- metadata +81 -64
- 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/Base.class +0 -0
- data/lib/bioroebe/java/bioroebe/Codons.java +0 -22
- data/lib/bioroebe/java/bioroebe/PartnerNucleotide.class +0 -0
- data/lib/bioroebe/java/bioroebe/PartnerNucleotide.java +0 -19
- 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/java/bioroebe/{BisulfiteTreatment.java → src/main/java/bioroebe/BisulfiteTreatment.java} +0 -0
- /data/lib/bioroebe/java/bioroebe/{Esystem.class → src/main/java/bioroebe/Esystem.class} +0 -0
- /data/lib/bioroebe/java/bioroebe/{Esystem.java → src/main/java/bioroebe/Esystem.java} +0 -0
- /data/lib/bioroebe/java/bioroebe/{RemoveFile.class → src/main/java/bioroebe/RemoveFile.class} +0 -0
@@ -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
|
@@ -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
|
@@ -78,6 +78,7 @@ module CommandlineArguments # === Bioroebe::CommandlineApplication
|
|
78
78
|
)
|
79
79
|
i.reject {|entry| entry.start_with? '--' }
|
80
80
|
end; alias return_commandline_arguments_without_hyphen return_entries_without_two_leading_hyphens # === return_commandline_arguments_without_hyphen
|
81
|
+
alias reject_hyphens return_entries_without_two_leading_hyphens # === reject_hyphens
|
81
82
|
|
82
83
|
# ========================================================================= #
|
83
84
|
# === select_commandline_arguments
|
@@ -111,6 +112,13 @@ module CommandlineArguments # === Bioroebe::CommandlineApplication
|
|
111
112
|
@commandline_arguments.join(' ').strip
|
112
113
|
end
|
113
114
|
|
115
|
+
# ========================================================================= #
|
116
|
+
# === first_non_hyphen_argument?
|
117
|
+
# ========================================================================= #
|
118
|
+
def first_non_hyphen_argument?
|
119
|
+
return_entries_without_two_leading_hyphens.first
|
120
|
+
end; alias first_non_hyphened_argument? first_non_hyphen_argument? # === first_non_hyphened_argument?
|
121
|
+
|
114
122
|
# ========================================================================= #
|
115
123
|
# === select_entries_starting_with_two_hyphens
|
116
124
|
#
|
@@ -125,20 +133,16 @@ module CommandlineArguments # === Bioroebe::CommandlineApplication
|
|
125
133
|
else
|
126
134
|
[]
|
127
135
|
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
|
136
|
+
end; alias return_entries_with_two_leading_hyphens_from select_entries_starting_with_two_hyphens # === return_entries_with_two_leading_hyphens_from
|
131
137
|
alias return_arguments_with_leading_hyphens select_entries_starting_with_two_hyphens # === return_arguments_with_leading_hyphens
|
132
138
|
alias return_commandline_arguments_starting_with_hyphens select_entries_starting_with_two_hyphens # === return_commandline_arguments_starting_with_hyphens
|
133
139
|
alias return_commandline_arguments_starting_with_two_hyphens select_entries_starting_with_two_hyphens # === return_commandline_arguments_starting_with_two_hyphens
|
134
|
-
alias
|
140
|
+
alias commandline_arguments_containing_hyphens? select_entries_starting_with_two_hyphens # === commandline_arguments_containing_hyphens?
|
141
|
+
alias commandline_arguments_containing_leading_hyphens? select_entries_starting_with_two_hyphens # === commandline_arguments_containing_leading_hyphens?
|
142
|
+
alias commandline_arguments_with_two_leading_hyphens select_entries_starting_with_two_hyphens # === commandline_arguments_with_two_leading_hyphens
|
135
143
|
alias commandline_arguments_starting_with_leading_hyphens? select_entries_starting_with_two_hyphens # === commandline_arguments_starting_with_leading_hyphens?
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
# ========================================================================= #
|
140
|
-
def first_non_hyphen_argument?
|
141
|
-
return_entries_without_two_leading_hyphens.first
|
142
|
-
end; alias first_non_hyphened_argument? first_non_hyphen_argument? # === first_non_hyphened_argument?
|
144
|
+
alias commandline_arguments_starting_with_a_hyphen? select_entries_starting_with_two_hyphens # === commandline_arguments_starting_with_a_hyphen?
|
145
|
+
alias commandline_arguments_starting_with_a_hyphen select_entries_starting_with_two_hyphens # === commandline_arguments_starting_with_a_hyphen
|
146
|
+
alias select_two_hyphens_from select_entries_starting_with_two_hyphens # === select_two_hyphens_from
|
143
147
|
|
144
148
|
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
|
+
@be_verbose
|
470
|
+
end; alias verbose? be_verbose? # === be_verbose?
|
471
|
+
|
472
|
+
# ========================================================================= #
|
473
|
+
# === be_silent
|
474
|
+
# ========================================================================= #
|
475
|
+
def be_silent
|
476
|
+
@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
|
+
@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
|
@@ -20,7 +20,8 @@ module CommandlineArguments # === Bioroebe::CommandlineApplication
|
|
20
20
|
# ======================================================================= #
|
21
21
|
# === @namespace
|
22
22
|
# ======================================================================= #
|
23
|
-
@namespace = Bioroebe::Base::NAMESPACE
|
23
|
+
# @namespace = Bioroebe::Base::NAMESPACE
|
24
|
+
infer_the_namespace
|
24
25
|
# ======================================================================= #
|
25
26
|
# === @commandline_arguments
|
26
27
|
# ======================================================================= #
|
@@ -30,7 +31,7 @@ module CommandlineArguments # === Bioroebe::CommandlineApplication
|
|
30
31
|
#
|
31
32
|
# By default, CommandlineApplication will report a lot of stuff.
|
32
33
|
# ======================================================================= #
|
33
|
-
|
34
|
+
set_be_verbose
|
34
35
|
# ======================================================================= #
|
35
36
|
# === @use_colours
|
36
37
|
# ======================================================================= #
|
data/lib/bioroebe/base/misc.rb
CHANGED
@@ -10,6 +10,13 @@ class Base
|
|
10
10
|
|
11
11
|
require 'bioroebe/toplevel_methods/file_and_directory_related_actions.rb'
|
12
12
|
|
13
|
+
# ========================================================================= #
|
14
|
+
# === namespace?
|
15
|
+
# ========================================================================= #
|
16
|
+
def namespace?
|
17
|
+
@namespace
|
18
|
+
end
|
19
|
+
|
13
20
|
# ========================================================================= #
|
14
21
|
# === is_palindrome?
|
15
22
|
# ========================================================================= #
|
@@ -91,4 +98,32 @@ class Base
|
|
91
98
|
::Bioroebe.project_yaml_directory?
|
92
99
|
end; alias yaml_directory? project_yaml_directory? # === yaml_directory?
|
93
100
|
|
101
|
+
# ========================================================================= #
|
102
|
+
# === infer_the_namespace
|
103
|
+
#
|
104
|
+
# This will assume the true namespace from the inspectable name.
|
105
|
+
# ========================================================================= #
|
106
|
+
def infer_the_namespace
|
107
|
+
_ = inspect.to_s.delete('<')
|
108
|
+
_ = _.split(':0').first if _.include?(':0')
|
109
|
+
if _.include? ' '
|
110
|
+
_ = _.split(' ').first.delete('#')
|
111
|
+
if _.include? ':'
|
112
|
+
_ = _.split(':')[0 .. -2].reject {|entry| entry.empty? }.join('::')
|
113
|
+
end
|
114
|
+
end
|
115
|
+
_.delete!('#') if _.include?('#')
|
116
|
+
@namespace = _ # And assign it here.
|
117
|
+
end
|
118
|
+
|
119
|
+
# ========================================================================= #
|
120
|
+
# === word_wrap
|
121
|
+
# ========================================================================= #
|
122
|
+
def word_wrap(
|
123
|
+
text,
|
124
|
+
line_width = 80
|
125
|
+
)
|
126
|
+
return text.scan(/\S.{0,#{line_width}}\S(?=\s|$)|\S+/).join(N)
|
127
|
+
end
|
128
|
+
|
94
129
|
end; end
|
@@ -12,13 +12,23 @@ class Base
|
|
12
12
|
require 'bioroebe/toplevel_methods/file_and_directory_related_actions.rb'
|
13
13
|
require 'bioroebe/toplevel_methods/rds.rb'
|
14
14
|
|
15
|
+
# ========================================================================= #
|
16
|
+
# === return_the_first_line_of_this_file
|
17
|
+
# ========================================================================= #
|
18
|
+
def return_the_first_line_of_this_file(i)
|
19
|
+
if File.exist? i
|
20
|
+
return File.open(i) {|this_file| this_file.readline.strip }
|
21
|
+
end
|
22
|
+
return i
|
23
|
+
end
|
24
|
+
|
15
25
|
require 'bioroebe/toplevel_methods/is_on_roebe.rb'
|
16
26
|
# ========================================================================= #
|
17
27
|
# === is_on_roebe?
|
18
28
|
# ========================================================================= #
|
19
29
|
def is_on_roebe?
|
20
30
|
::Bioroebe.is_on_roebe?
|
21
|
-
end
|
31
|
+
end; alias on_roebe? is_on_roebe? # === on_roebe?
|
22
32
|
|
23
33
|
# ========================================================================= #
|
24
34
|
# === main_encoding?
|
@@ -26,11 +26,6 @@ class ParseFrequencyTable < ::Bioroebe::CommandlineApplication # === Bioroebe::P
|
|
26
26
|
|
27
27
|
require 'open-uri'
|
28
28
|
|
29
|
-
# ========================================================================= #
|
30
|
-
# === NAMESPACE
|
31
|
-
# ========================================================================= #
|
32
|
-
NAMESPACE = inspect
|
33
|
-
|
34
29
|
# ========================================================================= #
|
35
30
|
# === AUTOMATICALLY_CREATE_A_LOCAL_YAML_FILE_IF_IT_DOES_NOT_YET_EXIST
|
36
31
|
#
|
@@ -100,10 +95,7 @@ GUG 30.5( 4267) GCG 8.6( 1207) GAG 35.8( 5005) GGG 15.6( 2181)'
|
|
100
95
|
# ========================================================================= #
|
101
96
|
def reset
|
102
97
|
super()
|
103
|
-
|
104
|
-
# === @namespace
|
105
|
-
# ======================================================================= #
|
106
|
-
@namespace = NAMESPACE
|
98
|
+
infer_the_namespace
|
107
99
|
# ======================================================================= #
|
108
100
|
# === @use_this_url
|
109
101
|
#
|
@@ -129,7 +121,7 @@ GUG 30.5( 4267) GCG 8.6( 1207) GAG 35.8( 5005) GGG 15.6( 2181)'
|
|
129
121
|
# === menu (menu tag)
|
130
122
|
# ========================================================================= #
|
131
123
|
def menu(
|
132
|
-
i =
|
124
|
+
i = commandline_arguments?
|
133
125
|
)
|
134
126
|
if i.is_a? Array
|
135
127
|
i.each {|entry| menu(entry) }
|
@@ -24,7 +24,7 @@ module Bioroebe
|
|
24
24
|
require 'bioroebe/constants/codon_tables.rb'
|
25
25
|
require 'bioroebe/regexes/regexes.rb'
|
26
26
|
require 'bioroebe/codons/codon_table.rb'
|
27
|
-
require 'bioroebe/codons/convert_this_codon_to_that_aminoacid.rb'
|
27
|
+
# require 'bioroebe/codons/convert_this_codon_to_that_aminoacid.rb'
|
28
28
|
|
29
29
|
# ========================================================================= #
|
30
30
|
# === @stop_codons
|