bioroebe 0.10.80 → 0.11.12
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 +507 -310
- data/bioroebe.gemspec +3 -3
- data/doc/README.gen +506 -309
- data/doc/todo/bioroebe_todo.md +29 -40
- data/lib/bioroebe/aminoacids/display_aminoacid_table.rb +1 -0
- 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/prototype/misc.rb +1 -1
- data/lib/bioroebe/codons/show_codon_tables.rb +6 -2
- data/lib/bioroebe/constants/aminoacids_and_proteins.rb +1 -0
- data/lib/bioroebe/constants/files_and_directories.rb +8 -1
- data/lib/bioroebe/count/count_amount_of_nucleotides.rb +3 -0
- data/lib/bioroebe/gui/gtk3/protein_to_DNA/protein_to_DNA.rb +18 -18
- data/lib/bioroebe/gui/shared_code/protein_to_DNA/protein_to_DNA_module.rb +14 -14
- data/lib/bioroebe/parsers/genbank_parser.rb +353 -24
- 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/widget1.py +22 -0
- data/lib/bioroebe/python/mymodule.py +8 -0
- data/lib/bioroebe/python/protein_to_dna.py +30 -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/to_camelcase.py +11 -0
- data/lib/bioroebe/sequence/nucleotide_module/nucleotide_module.rb +28 -25
- data/lib/bioroebe/sequence/sequence.rb +54 -2
- data/lib/bioroebe/shell/menu.rb +3336 -3304
- data/lib/bioroebe/shell/readline/readline.rb +1 -1
- data/lib/bioroebe/shell/shell.rb +11233 -28
- data/lib/bioroebe/siRNA/siRNA.rb +81 -1
- data/lib/bioroebe/string_matching/find_longest_substring.rb +3 -2
- data/lib/bioroebe/toplevel_methods/aminoacids_and_proteins.rb +31 -24
- 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/to_camelcase.rb +5 -0
- data/lib/bioroebe/version/version.rb +2 -2
- data/lib/bioroebe/yaml/configuration/browser.yml +1 -1
- data/lib/bioroebe/yaml/restriction_enzymes/restriction_enzymes.yml +3 -3
- metadata +17 -36
- 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/misc.rb +0 -4341
- 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/doc/todo/bioroebe_todo.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
|
+
|
2
|
+
GenbankParser should handle multiple genbank files
|
3
|
+
^^^^^^^
|
4
|
+
|
5
|
+
-------------------------------------------------------------------------------
|
6
|
+
(1) → Show the frequency of codons in different tables
|
7
|
+
|
8
|
+
This works quite ok, but right now the approach is to store
|
9
|
+
this in a .yml file which is not ideal.
|
10
|
+
|
11
|
+
Thus, we have to add two things:
|
12
|
+
- The ability to store this into a SQL database
|
13
|
+
- The ability to batch-download all of these codons,
|
14
|
+
which first requires that we have a way to obtain all
|
15
|
+
taxonomic ids.
|
16
|
+
Add where this can be found.
|
1
17
|
-------------------------------------------------------------------------------
|
2
|
-
(
|
18
|
+
(2) improve docu + tests for melting temperature analysis again
|
19
|
+
+ usage example + GUI + web-use
|
20
|
+
-------------------------------------------------------------------------------
|
21
|
+
(3) → https://biopython.org/DIST/docs/tutorial/Tutorial.html#sec15
|
3
22
|
|
4
23
|
^^^ work through the above, also integrate it + write docs
|
5
24
|
|
@@ -74,7 +93,7 @@ Gibt es neue GUIs die wir kombinieren könnten? Hmmm.
|
|
74
93
|
|
75
94
|
https://www.tbi.univie.ac.at/RNA/tutorial/
|
76
95
|
-------------------------------------------------------------------------------
|
77
|
-
(
|
96
|
+
(10) → get insulin squence frmo NCBI
|
78
97
|
human
|
79
98
|
then apply trypsin onto it
|
80
99
|
and try it like this:
|
@@ -89,12 +108,12 @@ Also add:
|
|
89
108
|
Hmm. Perhaps also auto-download or something.
|
90
109
|
|
91
110
|
-------------------------------------------------------------------------------
|
92
|
-
(
|
111
|
+
(11) → in bioroebe: UAG?
|
93
112
|
^^^ show all stop codons with that in the bioshell
|
94
113
|
all UAG sequences... hmm. and TAG?
|
95
114
|
Finish that.
|
96
115
|
..........................................................................
|
97
|
-
(
|
116
|
+
(12) → The position of a symbol in a string is the total number of
|
98
117
|
symbols found to its left, including itself (e.g., the positions
|
99
118
|
of all occurrences of 'U' in "AUGCUUCAGAAAGGUCUUACG" are 2, 5,
|
100
119
|
6, 15, 17, and 18). The symbol at position i
|
@@ -103,10 +122,10 @@ Hmm. Perhaps also auto-download or something.
|
|
103
122
|
^^^ add a solution there, a toplevel API
|
104
123
|
!!!!!
|
105
124
|
-------------------------------------------------------------------------------
|
106
|
-
(
|
125
|
+
(13) → http://bioruby.org/rdoc/Bio/Blast.html
|
107
126
|
^^^ add support for BLAST
|
108
127
|
..........................................................................
|
109
|
-
(
|
128
|
+
(14) → add: parse_pdb()
|
110
129
|
With this we shall just show some info, about a given
|
111
130
|
.pdb file at hand.
|
112
131
|
Also make it commandline based too + bioshell variant
|
@@ -114,18 +133,18 @@ Hmm. Perhaps also auto-download or something.
|
|
114
133
|
Don't forget to document it!!!!!
|
115
134
|
^^^ and google a bit how others do that
|
116
135
|
..........................................................................
|
117
|
-
(
|
136
|
+
(15) → pdb 1a6m
|
118
137
|
^^^ download this when that is used in the bioshell; we also have
|
119
138
|
to use the download directory for this, so make sure that
|
120
139
|
we do.
|
121
140
|
^^^ And then, also document this clearly.
|
122
141
|
-------------------------------------------------------------------------------
|
123
|
-
(
|
142
|
+
(16) show_string
|
124
143
|
^^^ slowly port this ... find out differences
|
125
144
|
then unify into one method. right now we used
|
126
145
|
two or something.
|
127
146
|
-------------------------------------------------------------------------------
|
128
|
-
(
|
147
|
+
(17) → Try to see if we can integrate this into our GUI:
|
129
148
|
|
130
149
|
https://cdn.snapgene.com/assets/7.6.11/assets/images/snapgene/homepage/homepage-hero.png
|
131
150
|
-------------------------------------------------------------------------------
|
@@ -409,17 +428,6 @@ class: OptimizeCodons.new(of_this_sequence)
|
|
409
428
|
information for (in mm10). Is there some service online where I can
|
410
429
|
paste this list? ^^^ enable this
|
411
430
|
-------------------------------------------------------------------------------
|
412
|
-
(10) → Show the frequency of codons in different tables
|
413
|
-
|
414
|
-
This works quite ok, but right now the approach is to store
|
415
|
-
this in a .yml file which is not ideal.
|
416
|
-
|
417
|
-
Thus, we have to add two things:
|
418
|
-
- The ability to store this into a SQL database
|
419
|
-
- The ability to batch-download all of these codons,
|
420
|
-
which first requires that we have a way to obtain all
|
421
|
-
taxonomic ids.
|
422
|
-
-------------------------------------------------------------------------------
|
423
431
|
(11) → Add a way in bioroebe to store a gene into a yaml file
|
424
432
|
or so, and to also load it up again. Perhaps simplify
|
425
433
|
this automatically. Need some ways to describe that.
|
@@ -597,9 +605,7 @@ This now sorta works semi-ok.
|
|
597
605
|
-------------------------------------------------------------------------------
|
598
606
|
- Neue funktionälit rein
|
599
607
|
-------------------------------------------------------------------------------
|
600
|
-
- mehr doku
|
601
|
-
-------------------------------------------------------------------------------
|
602
|
-
- continue on bioroebe, and when it is done, write to the guy.
|
608
|
+
- mehr doku!!!
|
603
609
|
-------------------------------------------------------------------------------
|
604
610
|
- Rewrite bioroebe completely - add some tests, too or so, to
|
605
611
|
test this. ^^^
|
@@ -643,8 +649,6 @@ extend bioroebe sinatra interface
|
|
643
649
|
also add a footer to show which entries are available or so
|
644
650
|
→ in bioroebe, mach das die postgresql datenbank wieder funktioniert ...
|
645
651
|
|
646
|
-
|
647
|
-
|
648
652
|
..........................................................................
|
649
653
|
|
650
654
|
→ ^^^ improve this whole project a lot
|
@@ -687,16 +691,6 @@ also add a footer to show which entries are available or so
|
|
687
691
|
THEN UPLOAD!
|
688
692
|
^^^ this works now but is not documented
|
689
693
|
|
690
|
-
|
691
|
-
-------------------------------------------------------------------------------
|
692
|
-
|
693
|
-
- chop to first ATG
|
694
|
-
|
695
|
-
chop :ATG
|
696
|
-
|
697
|
-
^^^^ enable this, to chop towards the first ATG
|
698
|
-
sequence in the string
|
699
|
-
|
700
694
|
-------------------------------------------------------------------------------
|
701
695
|
→ http://www.biophp.org/stats/describe_data/demo.php?show=formula
|
702
696
|
|
@@ -720,11 +714,6 @@ also add a footer to show which entries are available or so
|
|
720
714
|
Also, add in the documentation where this
|
721
715
|
can be found.
|
722
716
|
..........................................................................
|
723
|
-
(3) → Add aaruler, similar to "ruler"; in the bioshell.
|
724
|
-
But we want to do this on the dna-sequence rather
|
725
|
-
than the aminoacid sequence.
|
726
|
-
This works but the display is not ideal.
|
727
|
-
..........................................................................
|
728
717
|
(4) → Add some codon-usage analyzer. What shall it show? It
|
729
718
|
should show how many codons are used, frequencies etc...
|
730
719
|
by an organism, and compare that to other data.
|
@@ -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
|
@@ -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
|
@@ -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
|
|
@@ -318,10 +318,17 @@ module Bioroebe
|
|
318
318
|
# ========================================================================= #
|
319
319
|
# === Bioroebe.file_restriction_enzymes
|
320
320
|
# ========================================================================= #
|
321
|
-
def file_restriction_enzymes
|
321
|
+
def self.file_restriction_enzymes
|
322
322
|
FILE_RESTRICTION_ENZYMES
|
323
323
|
end
|
324
324
|
|
325
|
+
# ========================================================================= #
|
326
|
+
# === file_restriction_enzymes
|
327
|
+
# ========================================================================= #
|
328
|
+
def file_restriction_enzymes
|
329
|
+
::Bioroebe.file_restriction_enzymes
|
330
|
+
end
|
331
|
+
|
325
332
|
# ========================================================================= #
|
326
333
|
# === Bioroebe.blosum_directory?
|
327
334
|
# ========================================================================= #
|
@@ -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
|
@@ -107,7 +107,7 @@ class ProteinToDNA < ::Gtk::Box # === Bioroebe::GUI::Gtk::ProteinToDNA
|
|
107
107
|
scrolled_window_right.clear_background
|
108
108
|
scrolled_window_right.width_height(300, 300)
|
109
109
|
scrolled_window_right.bblack1
|
110
|
-
scrolled_window_right.
|
110
|
+
scrolled_window_right.mar2px
|
111
111
|
# ======================================================================= #
|
112
112
|
# === scrolled_window_left
|
113
113
|
# ======================================================================= #
|
@@ -115,7 +115,7 @@ class ProteinToDNA < ::Gtk::Box # === Bioroebe::GUI::Gtk::ProteinToDNA
|
|
115
115
|
scrolled_window_left.clear_background
|
116
116
|
scrolled_window_left.width_height(300, 300)
|
117
117
|
scrolled_window_left.bblack1
|
118
|
-
scrolled_window_left.
|
118
|
+
scrolled_window_left.mar2px
|
119
119
|
top_hpaned = gtk_hpaned(
|
120
120
|
scrolled_window_left,
|
121
121
|
scrolled_window_right
|
@@ -126,22 +126,6 @@ class ProteinToDNA < ::Gtk::Box # === Bioroebe::GUI::Gtk::ProteinToDNA
|
|
126
126
|
@dataset[:top_hbox] = top_hpaned
|
127
127
|
end
|
128
128
|
|
129
|
-
# ========================================================================= #
|
130
|
-
# === connect_skeleton (connect tag)
|
131
|
-
# ========================================================================= #
|
132
|
-
def connect_skeleton
|
133
|
-
abort_on_exception
|
134
|
-
@main_vbox.maximal(@dataset[:top_hbox], 4)
|
135
|
-
@main_vbox.maximal(@middle_bar)
|
136
|
-
button_box = button_box(
|
137
|
-
@dataset[:backtrack_button],
|
138
|
-
@dataset[:quit_button]
|
139
|
-
)
|
140
|
-
button_box.vertical_layout
|
141
|
-
@main_vbox.minimal(button_box)
|
142
|
-
add(@main_vbox)
|
143
|
-
end
|
144
|
-
|
145
129
|
# ========================================================================= #
|
146
130
|
# === create_left_buffer
|
147
131
|
# ========================================================================= #
|
@@ -161,6 +145,22 @@ class ProteinToDNA < ::Gtk::Box # === Bioroebe::GUI::Gtk::ProteinToDNA
|
|
161
145
|
super()
|
162
146
|
end
|
163
147
|
|
148
|
+
# ========================================================================= #
|
149
|
+
# === connect_skeleton (connect tag)
|
150
|
+
# ========================================================================= #
|
151
|
+
def connect_skeleton
|
152
|
+
abort_on_exception
|
153
|
+
@main_vbox.maximal(@dataset[:top_hbox], 4)
|
154
|
+
@main_vbox.maximal(@middle_bar)
|
155
|
+
button_box = button_box(
|
156
|
+
@dataset[:backtrack_button],
|
157
|
+
@dataset[:quit_button]
|
158
|
+
)
|
159
|
+
button_box.vertical_layout
|
160
|
+
@main_vbox.minimal(button_box)
|
161
|
+
add(@main_vbox)
|
162
|
+
end
|
163
|
+
|
164
164
|
# ========================================================================= #
|
165
165
|
# === Bioroebe::GUI::Gtk::ProteinToDNA.run
|
166
166
|
# ========================================================================= #
|
@@ -143,13 +143,6 @@ module ProteinToDNAModule # === Bioroebe::GUI::ProteinToDNAModule
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
# ========================================================================= #
|
147
|
-
# === left_buffer?
|
148
|
-
# ========================================================================= #
|
149
|
-
def left_buffer?
|
150
|
-
@dataset[:left_buffer]
|
151
|
-
end; alias left? left_buffer? # === left?
|
152
|
-
|
153
146
|
# ========================================================================= #
|
154
147
|
# === right_buffer?
|
155
148
|
# ========================================================================= #
|
@@ -164,6 +157,20 @@ module ProteinToDNAModule # === Bioroebe::GUI::ProteinToDNAModule
|
|
164
157
|
@dataset[:left_buffer].set_text(i.to_s)
|
165
158
|
end
|
166
159
|
|
160
|
+
# ========================================================================= #
|
161
|
+
# === aminoacid_sequence?
|
162
|
+
# ========================================================================= #
|
163
|
+
def aminoacid_sequence?
|
164
|
+
left_buffer?.to_s
|
165
|
+
end
|
166
|
+
|
167
|
+
# ========================================================================= #
|
168
|
+
# === left_buffer?
|
169
|
+
# ========================================================================= #
|
170
|
+
def left_buffer?
|
171
|
+
@dataset[:left_buffer]
|
172
|
+
end; alias left? left_buffer? # === left?
|
173
|
+
|
167
174
|
# ========================================================================= #
|
168
175
|
# === do_determine_the_backtrack_sequence (click tag)
|
169
176
|
#
|
@@ -182,11 +189,4 @@ module ProteinToDNAModule # === Bioroebe::GUI::ProteinToDNAModule
|
|
182
189
|
right_buffer?.set_text(text_for_right_hand_side)
|
183
190
|
end; alias do_determine_the_DNA_sequence do_determine_the_backtrack_sequence # === do_determine_the_DNA_sequence
|
184
191
|
|
185
|
-
# ========================================================================= #
|
186
|
-
# === aminoacid_sequence?
|
187
|
-
# ========================================================================= #
|
188
|
-
def aminoacid_sequence?
|
189
|
-
left_buffer?.to_s
|
190
|
-
end
|
191
|
-
|
192
192
|
end; end; end
|