bioroebe 0.10.80 → 0.11.25
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bioroebe might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +3117 -2645
- data/bioroebe.gemspec +3 -3
- data/doc/README.gen +3116 -2644
- data/doc/todo/bioroebe_todo.md +418 -387
- 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 +13 -11
- data/lib/bioroebe/base/commandline_application/misc.rb +18 -8
- data/lib/bioroebe/base/misc.rb +16 -0
- data/lib/bioroebe/base/prototype/misc.rb +1 -1
- data/lib/bioroebe/codons/show_codon_tables.rb +6 -2
- data/lib/bioroebe/codons/show_codon_usage.rb +2 -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 +24 -4
- data/lib/bioroebe/constants/misc.rb +20 -0
- 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/{shell/tk.rb → electron_microscopy/electron_microscopy_module.rb} +15 -10
- data/lib/bioroebe/electron_microscopy/simple_star_file_generator.rb +4 -9
- data/lib/bioroebe/fasta_and_fastq/show_fasta_headers.rb +27 -12
- data/lib/bioroebe/genome/README.md +4 -0
- data/lib/bioroebe/genome/genome.rb +67 -0
- data/lib/bioroebe/gui/gtk +1 -0
- 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/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/shared_code/protein_to_DNA/protein_to_DNA_module.rb +14 -14
- data/lib/bioroebe/misc/ruler.rb +1 -0
- data/lib/bioroebe/parsers/genbank_parser.rb +353 -24
- data/lib/bioroebe/parsers/gff.rb +1 -9
- data/lib/bioroebe/pdb/parse_pdb_file.rb +1 -9
- 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/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/three_delimiter.py +34 -0
- data/lib/bioroebe/python/toplevel_methods/time_and_date.py +43 -0
- data/lib/bioroebe/python/toplevel_methods/to_camelcase.py +11 -0
- data/lib/bioroebe/requires/require_the_bioroebe_project.rb +3 -1
- 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 +61 -2
- data/lib/bioroebe/shell/menu.rb +3752 -3667
- data/lib/bioroebe/shell/misc.rb +51 -4311
- data/lib/bioroebe/shell/readline/readline.rb +1 -1
- data/lib/bioroebe/shell/shell.rb +11199 -28
- data/lib/bioroebe/siRNA/siRNA.rb +81 -1
- data/lib/bioroebe/string_matching/find_longest_substring.rb +3 -2
- 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/info/check_available.rb +15 -9
- data/lib/bioroebe/taxonomy/info/info.rb +17 -2
- data/lib/bioroebe/taxonomy/info/is_dna.rb +46 -36
- data/lib/bioroebe/taxonomy/interactive.rb +139 -95
- 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/databases.rb +1 -1
- data/lib/bioroebe/toplevel_methods/fasta_and_fastq.rb +101 -63
- data/lib/bioroebe/toplevel_methods/misc.rb +17 -16
- data/lib/bioroebe/toplevel_methods/nucleotides.rb +22 -5
- 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/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/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 +101 -52
- 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/genomes/README.md +3 -4
- data/lib/bioroebe/yaml/restriction_enzymes/restriction_enzymes.yml +3 -3
- metadata +33 -35
- data/doc/setup.rb +0 -1655
- data/lib/bioroebe/genbank/genbank_parser.rb +0 -291
- 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/user_input.rb +0 -88
- data/lib/bioroebe/shell/xorg.rb +0 -45
@@ -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
|
@@ -111,6 +111,14 @@ module CommandlineArguments # === Bioroebe::CommandlineApplication
|
|
111
111
|
@commandline_arguments.join(' ').strip
|
112
112
|
end
|
113
113
|
|
114
|
+
# ========================================================================= #
|
115
|
+
# === first_non_hyphen_argument?
|
116
|
+
# ========================================================================= #
|
117
|
+
def first_non_hyphen_argument?
|
118
|
+
return_entries_without_two_leading_hyphens.first
|
119
|
+
end; alias first_non_hyphened_argument? first_non_hyphen_argument? # === first_non_hyphened_argument?
|
120
|
+
|
121
|
+
|
114
122
|
# ========================================================================= #
|
115
123
|
# === select_entries_starting_with_two_hyphens
|
116
124
|
#
|
@@ -125,20 +133,14 @@ 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
|
-
# === first_non_hyphen_argument?
|
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 select_two_hyphens_from select_entries_starting_with_two_hyphens # === select_two_hyphens_from
|
143
145
|
|
144
146
|
end; end
|
@@ -435,14 +435,6 @@ class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
|
435
435
|
return i.delete('[0-9]')
|
436
436
|
end
|
437
437
|
|
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
438
|
# ========================================================================= #
|
447
439
|
# === load_bioroebe_yaml_file
|
448
440
|
#
|
@@ -482,4 +474,22 @@ class CommandlineApplication < Base # === Bioroebe::CommandlineApplication
|
|
482
474
|
end; alias three_aminoacid_letter_code_to_one_aminoacid_letter_code three_to_one # === three_aminoacid_letter_code_to_one_aminoacid_letter_code
|
483
475
|
alias three_letters_to_one_letter three_to_one # === three_letters_to_one_letter
|
484
476
|
|
477
|
+
require 'bioroebe/toplevel_methods/open_in_browser.rb'
|
478
|
+
# ========================================================================= #
|
479
|
+
# === open_in_browser
|
480
|
+
# ========================================================================= #
|
481
|
+
def open_in_browser(this_url)
|
482
|
+
::Bioroebe.open_in_browser(this_url)
|
483
|
+
end; alias open_in_browser_tab open_in_browser # === open_in_browser_tab
|
484
|
+
|
485
|
+
require 'bioroebe/toplevel_methods/verbose.rb'
|
486
|
+
# ========================================================================= #
|
487
|
+
# === verbose_truth
|
488
|
+
#
|
489
|
+
# Delegate towards the module Bioroebe::VerboseTruth here.
|
490
|
+
# ========================================================================= #
|
491
|
+
def verbose_truth(i)
|
492
|
+
::Bioroebe::VerboseTruth[i]
|
493
|
+
end
|
494
|
+
|
485
495
|
end; end
|
data/lib/bioroebe/base/misc.rb
CHANGED
@@ -91,4 +91,20 @@ class Base
|
|
91
91
|
::Bioroebe.project_yaml_directory?
|
92
92
|
end; alias yaml_directory? project_yaml_directory? # === yaml_directory?
|
93
93
|
|
94
|
+
# ========================================================================= #
|
95
|
+
# === infer_the_namespace
|
96
|
+
#
|
97
|
+
# This will assume the true namespace from the inspectable name.
|
98
|
+
# ========================================================================= #
|
99
|
+
def infer_the_namespace
|
100
|
+
_ = inspect.to_s.delete('<')
|
101
|
+
if _.include? ' '
|
102
|
+
_ = _.split(' ').first.delete('#')
|
103
|
+
if _.include? ':'
|
104
|
+
_ = _.split(':')[0 .. -2].reject {|entry| entry.empty? }.join('::')
|
105
|
+
end
|
106
|
+
end
|
107
|
+
@namespace = _ # And assign it here.
|
108
|
+
end
|
109
|
+
|
94
110
|
end; end
|
@@ -18,7 +18,7 @@ class Base
|
|
18
18
|
# ========================================================================= #
|
19
19
|
def is_on_roebe?
|
20
20
|
::Bioroebe.is_on_roebe?
|
21
|
-
end
|
21
|
+
end; alias on_roebe? is_on_roebe? # === on_roebe?
|
22
22
|
|
23
23
|
# ========================================================================= #
|
24
24
|
# === main_encoding?
|
@@ -37,6 +37,7 @@ class ShowCodonTables < ::Bioroebe::CommandlineApplication # === Bioroebe::ShowC
|
|
37
37
|
else
|
38
38
|
first = show_what
|
39
39
|
end
|
40
|
+
first = first.to_s.delete('-')
|
40
41
|
case first.to_sym
|
41
42
|
# ======================================================================= #
|
42
43
|
# === :human
|
@@ -56,7 +57,9 @@ class ShowCodonTables < ::Bioroebe::CommandlineApplication # === Bioroebe::ShowC
|
|
56
57
|
:headers,
|
57
58
|
'--headers'
|
58
59
|
::Bioroebe::CodonTables.definitions?.each_pair {|number, long_name|
|
59
|
-
e number.to_s.rjust(3)
|
60
|
+
e turquoise(number.to_s.rjust(3))
|
61
|
+
+') '+
|
62
|
+
long_name.ljust(70)
|
60
63
|
}
|
61
64
|
end
|
62
65
|
end
|
@@ -127,4 +130,5 @@ end
|
|
127
130
|
if __FILE__ == $PROGRAM_NAME
|
128
131
|
Bioroebe::ShowCodonTables.new(ARGV)
|
129
132
|
end # showcodontables
|
130
|
-
# showcodontables human
|
133
|
+
# showcodontables human
|
134
|
+
# showcodontables everything
|
@@ -133,7 +133,8 @@ class ShowCodonUsage < ::Bioroebe::CommandlineApplication # === Bioroebe::ShowCo
|
|
133
133
|
# ========================================================================= #
|
134
134
|
def report_the_top_five_codons(from_this_dataset)
|
135
135
|
e
|
136
|
-
|
136
|
+
erev 'The '+mediumpurple('top five codons')+
|
137
|
+
rev+' in use, sorted by frequency, are:'
|
137
138
|
e
|
138
139
|
top_five = from_this_dataset.sort_by {|key, values| values }.reverse[0..4]
|
139
140
|
top_five.each {|name_of_codon, how_many_of_them|
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# frozen_string_literal: true
|
4
4
|
# =========================================================================== #
|
5
5
|
# require 'bioroebe/constants/aminoacids_and_proteins.rb'
|
6
|
+
# Bioroebe.filter_away_invalid_aminoacids
|
6
7
|
# =========================================================================== #
|
7
8
|
module Bioroebe
|
8
9
|
|
@@ -89,7 +89,7 @@ module Postgresql # === Bioroebe::Postgresql
|
|
89
89
|
DROP_TABLE_FASTA = 'DROP TABLE fasta;'
|
90
90
|
|
91
91
|
# ========================================================================= #
|
92
|
-
# === POSTGRE_DROP_FASTA_COMMAND
|
92
|
+
# === Bioroebe::Postgresql::POSTGRE_DROP_FASTA_COMMAND
|
93
93
|
# ========================================================================= #
|
94
94
|
POSTGRE_DROP_FASTA_COMMAND = DROP_FASTA_TABLE = DROP_TABLE_FASTA
|
95
95
|
|
@@ -165,15 +165,16 @@ module Bioroebe
|
|
165
165
|
end
|
166
166
|
|
167
167
|
# ========================================================================= #
|
168
|
-
# ===
|
168
|
+
# === Bioroebe.file_fastq_quality_schemes
|
169
169
|
#
|
170
170
|
# This constant will point to a location such as this one here:
|
171
171
|
#
|
172
172
|
# /Programs/Ruby/2.6.4/lib/ruby/site_ruby/2.6.0/bioroebe/yaml/fastq_quality_schemes.yml
|
173
173
|
#
|
174
174
|
# ========================================================================= #
|
175
|
-
|
176
|
-
"#{project_yaml_directory?}fastq_quality_schemes.yml"
|
175
|
+
def self.file_fastq_quality_schemes
|
176
|
+
"#{project_yaml_directory?}fasta_and_fastq/fastq_quality_schemes.yml"
|
177
|
+
end
|
177
178
|
|
178
179
|
# ========================================================================= #
|
179
180
|
# === Bioroebe.file_talens
|
@@ -318,10 +319,17 @@ module Bioroebe
|
|
318
319
|
# ========================================================================= #
|
319
320
|
# === Bioroebe.file_restriction_enzymes
|
320
321
|
# ========================================================================= #
|
321
|
-
def file_restriction_enzymes
|
322
|
+
def self.file_restriction_enzymes
|
322
323
|
FILE_RESTRICTION_ENZYMES
|
323
324
|
end
|
324
325
|
|
326
|
+
# ========================================================================= #
|
327
|
+
# === file_restriction_enzymes
|
328
|
+
# ========================================================================= #
|
329
|
+
def file_restriction_enzymes
|
330
|
+
::Bioroebe.file_restriction_enzymes
|
331
|
+
end
|
332
|
+
|
325
333
|
# ========================================================================= #
|
326
334
|
# === Bioroebe.blosum_directory?
|
327
335
|
# ========================================================================= #
|
@@ -553,6 +561,18 @@ module Bioroebe
|
|
553
561
|
"#{project_yaml_directory?}aminoacids/molecular_weight.yml"
|
554
562
|
end
|
555
563
|
|
564
|
+
# ========================================================================= #
|
565
|
+
# === Bioroebe.file_amino_acids_long_name_to_one_letter
|
566
|
+
#
|
567
|
+
# This method will return a String such as:
|
568
|
+
#
|
569
|
+
# "/home/Programs/Ruby/3.1.2/lib/ruby/site_ruby/3.1.0/bioroebe/yaml/aminoacids/amino_acids_long_name_to_one_letter.yml"
|
570
|
+
#
|
571
|
+
# ========================================================================= #
|
572
|
+
def self.file_amino_acids_long_name_to_one_letter
|
573
|
+
"#{project_yaml_directory?}aminoacids/amino_acids_long_name_to_one_letter.yml"
|
574
|
+
end
|
575
|
+
|
556
576
|
end
|
557
577
|
|
558
578
|
if __FILE__ == $PROGRAM_NAME
|
@@ -43,6 +43,26 @@ module Bioroebe
|
|
43
43
|
# ========================================================================= #
|
44
44
|
TOKEN = '|'
|
45
45
|
|
46
|
+
# ========================================================================= #
|
47
|
+
# === VALID_WAYS_TO_EXIT
|
48
|
+
#
|
49
|
+
# All ways to exit will be recorded here.
|
50
|
+
#
|
51
|
+
# If you need to use more ways, simply append to this Array.
|
52
|
+
#
|
53
|
+
# This constant may have to be moved into the bio-shell part eventually.
|
54
|
+
# ========================================================================= #
|
55
|
+
VALID_WAYS_TO_EXIT = %w(
|
56
|
+
quit q exit qq :q qt
|
57
|
+
bye
|
58
|
+
rda
|
59
|
+
r2
|
60
|
+
tq
|
61
|
+
sq
|
62
|
+
exit_program
|
63
|
+
exitprogram
|
64
|
+
)
|
65
|
+
|
46
66
|
# ========================================================================= #
|
47
67
|
# === NAMES_ENTRIES
|
48
68
|
#
|
@@ -425,6 +425,9 @@ class CountAmountOfNucleotides < ::Bioroebe::CommandlineApplication # === Bioroe
|
|
425
425
|
if File.exist? i.to_s
|
426
426
|
i = File.read(i.to_s).strip.delete(N)
|
427
427
|
end
|
428
|
+
if i.is_a? Array
|
429
|
+
i = i.join(' ').strip
|
430
|
+
end
|
428
431
|
i = i.to_s.dup if i.frozen?
|
429
432
|
i.upcase! # Want to keep it upcased.
|
430
433
|
@dna_string = i
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Bioroebe
|
2
|
+
|
3
|
+
# ========================================================================= #
|
4
|
+
# === Bioroebe.to_rna
|
5
|
+
# ========================================================================= #
|
6
|
+
def self.to_rna(i = ARGV)
|
7
|
+
if i.is_a? Array
|
8
|
+
i = i.first?
|
9
|
+
end
|
10
|
+
if i.nil? || i.empty?
|
11
|
+
return i
|
12
|
+
else
|
13
|
+
return i.gsub("T","U")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
puts Bioroebe.to_rna(ARGV)
|
data/lib/bioroebe/data/README.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1
|
-
This directory may contain some FASTA files or .pdb files, as
|
2
|
-
|
3
|
-
|
1
|
+
This directory may contain some FASTA files or .pdb files, as that may
|
2
|
+
be of help of people who end up using the BioRoebe project.
|
3
|
+
|
4
|
+
That dataset can be quickly tested and used to demonstrate how the
|
5
|
+
BioRoebe project works.
|
6
|
+
|
7
|
+
In the pdb/ directory there is presently only one .pdb file. This
|
8
|
+
file is used mostly for a test .rb file in the test/ directory.
|
9
|
+
|
10
|
+
The directory electron_microscopy/ is used primarily for cryo-electron
|
11
|
+
microscopy and what not, using software such as relion.
|
4
12
|
|
5
|
-
That dataset can be quickly tested and used to demonstrate how
|
6
|
-
the BioRoebe project works.
|
7
13
|
|
8
|
-
In the pdb/ directory there is presently only one .pdb file.
|
9
|
-
This file is used mostly for a test .rb file in the test/
|
10
|
-
directory.
|