bioroebe 0.12.24 → 0.13.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +7 -8
- data/README.md +566 -354
- data/bin/all_positions_of_this_nucleotide +1 -1
- data/bin/aminoacid_frequencies +1 -1
- data/bin/automatically_rename_this_fasta_file +1 -1
- data/bin/base_composition +1 -1
- data/bin/batch_create_windows_executables +1 -1
- data/bin/bioroebe +12 -1
- data/bin/bioroebe_cat +7 -0
- data/bin/calculate_exponential_growth +7 -0
- data/bin/calculate_n50_value +1 -1
- data/bin/calculate_the_frequencies_of_this_species +7 -0
- data/bin/chunked_display +1 -1
- data/bin/codon_frequency +1 -1
- data/bin/codon_to_aminoacid +1 -1
- data/bin/colourize_this_fasta_sequence +1 -1
- data/bin/complementary_dna_strand +1 -1
- data/bin/complementary_rna_strand +1 -1
- data/bin/consensus_sequence +1 -1
- data/bin/dna_to_rna +1 -1
- data/bin/downcase_chunked_display +1 -1
- data/bin/download_this_pdb +1 -1
- data/bin/fasta_index +1 -1
- data/bin/fetch_data_from_uniprot +1 -1
- data/bin/filter_away_invalid_nucleotides +1 -1
- data/bin/find_substring +1 -1
- data/bin/input_as_dna +1 -1
- data/bin/is_palindrome +1 -1
- data/bin/leading_five_prime +1 -1
- data/bin/longest_ORF +1 -1
- data/bin/longest_substring +1 -1
- data/bin/open_reading_frames +1 -1
- data/bin/partner_nucleotide +1 -1
- data/bin/plain_palindrome +1 -1
- data/bin/random_dna_sequence +1 -1
- data/bin/random_sequence +1 -1
- data/bin/raw_hamming_distance +1 -1
- data/bin/return_longest_substring_via_LCS_algorithm +1 -1
- data/bin/reverse_sequence +1 -1
- data/bin/short_aminoacid_letter_from_long_aminoacid_name +1 -1
- data/bin/show_atomic_composition +1 -1
- data/bin/show_fasta_header +1 -1
- data/bin/show_nucleotide_sequence +1 -1
- data/bin/show_this_dna_sequence +1 -1
- data/bin/show_time_now +7 -0
- data/bin/sort_aminoacid_based_on_its_hydrophobicity +1 -1
- data/bin/strict_filter_away_invalid_aminoacids +1 -1
- data/{lib/bioroebe/base/reset.rb → bin/three_delimiter} +9 -6
- data/bin/three_to_one +1 -1
- data/bin/to_rna +1 -1
- data/bin/trailing_three_prime +1 -1
- data/bin/upcase_this_aminoacid_sequence_and_remove_numbers +1 -1
- data/bioroebe.gemspec +6 -7
- data/doc/README.gen +534 -322
- data/doc/blosum/blosum.md +4 -0
- data/doc/compatibility/BIO_PHP.md +20 -18
- data/doc/compatibility/README.md +2 -3
- data/doc/compatibility/emboss.md +5 -3
- data/doc/{extensive_usage_example.md → extensive_usage_example/extensive_usage_example.md} +4 -2
- data/doc/{instructions_for_the_taxonomy_subproject.md → instructions_for_the_taxonomy_subproject/instructions_for_the_taxonomy_subproject.md} +36 -33
- data/doc/{legacy_paths.md → legacy_paths/legacy_paths.md} +3 -3
- data/doc/statistics/statistics.md +12 -10
- data/doc/todo/bioroebe_GUI_todo.md +6 -1
- data/doc/todo/bioroebe_java_todo.md +3 -2
- data/doc/todo/bioroebe_todo.md +328 -310
- data/doc/{using_biomart.md → using_biomart/using_biomart.md} +7 -3
- data/lib/bioroebe/abstract/features.rb +0 -0
- data/lib/bioroebe/aminoacids/aminoacid_substitution.rb +1 -1
- data/lib/bioroebe/aminoacids/aminoacids_mass_table.rb +3 -1
- data/lib/bioroebe/aminoacids/codon_percentage.rb +18 -10
- data/lib/bioroebe/aminoacids/create_random_aminoacids.rb +5 -2
- data/lib/bioroebe/aminoacids/deduce_aminoacid_sequence.rb +90 -64
- data/lib/bioroebe/aminoacids/display_aminoacid_table.rb +1 -3
- data/lib/bioroebe/aminoacids/show_hydrophobicity.rb +2 -2
- data/lib/bioroebe/annotations/create_annotation_format.rb +2 -2
- data/lib/bioroebe/base/base.rb +101 -6
- data/lib/bioroebe/base/base_module/base_module.rb +9 -1
- data/lib/bioroebe/base/colours.rb +3 -0
- data/lib/bioroebe/base/colours_for_base/colours_for_base.rb +80 -44
- data/lib/bioroebe/base/commandline_application/README.md +1 -1
- data/lib/bioroebe/base/commandline_application/commandline_application.rb +661 -22
- data/lib/bioroebe/base/commandline_application/commandline_arguments.rb +2 -1
- data/lib/bioroebe/base/infer_the_namespace_module/infer_the_namespace_module.rb +37 -0
- data/lib/bioroebe/base/internal_hash_module/internal_hash_module.rb +1 -6
- data/lib/bioroebe/base/prototype/prototype.rb +155 -14
- data/lib/bioroebe/biomart/attribute.rb +1 -1
- data/lib/bioroebe/biomart/biomart.rb +8 -9
- data/lib/bioroebe/biomart/server.rb +1 -1
- data/lib/bioroebe/blosum/blosum.rb +2 -2
- data/lib/bioroebe/calculate/calculate_blosum_score.rb +5 -3
- data/lib/bioroebe/calculate/calculate_gc_content.rb +1 -1
- data/lib/bioroebe/calculate/calculate_levensthein_distance.rb +5 -3
- data/lib/bioroebe/calculate/calculate_melting_temperature.rb +2 -10
- data/lib/bioroebe/calculate/calculate_melting_temperature_for_more_than_thirteen_nucleotides.rb +6 -15
- data/lib/bioroebe/calculate/calculate_the_position_specific_scoring_matrix.rb +4 -2
- data/lib/bioroebe/cell/cell.rb +3 -2
- data/lib/bioroebe/cell/specialized_cells/B_cell.rb +60 -0
- data/lib/bioroebe/cell/specialized_cells/Macrophage.rb +60 -0
- data/lib/bioroebe/cell/specialized_cells/README.md +5 -0
- data/lib/bioroebe/cell/specialized_cells/T_cell.rb +60 -0
- data/lib/bioroebe/cleave_and_digest/cleave.rb +3 -1
- data/lib/bioroebe/cleave_and_digest/digestion.rb +1 -1
- data/lib/bioroebe/codon_tables/frequencies/10090_Mus_musculus.yml +93 -0
- data/lib/bioroebe/codon_tables/frequencies/107243_Thlaspi_caerulescens.yml +72 -0
- data/lib/bioroebe/codon_tables/frequencies/parse_frequency_table.rb +2 -2
- data/lib/bioroebe/codons/codon_table.rb +10 -2
- data/lib/bioroebe/codons/codons.rb +3 -3
- data/lib/bioroebe/codons/convert_this_codon_to_that_aminoacid.rb +18 -15
- data/lib/bioroebe/codons/determine_optimal_codons.rb +1 -1
- data/lib/bioroebe/codons/possible_codons_for_this_aminoacid.rb +4 -2
- data/lib/bioroebe/codons/show_codon_tables.rb +1 -1
- data/lib/bioroebe/codons/show_codon_usage.rb +1 -2
- data/lib/bioroebe/codons/show_this_codon_table.rb +2 -2
- data/lib/bioroebe/codons/start_codons.rb +7 -3
- data/lib/bioroebe/colours/colour_schemes/README.md +1 -1
- data/lib/bioroebe/colours/colour_schemes/array_available_colour_schemes.rb +3 -3
- data/lib/bioroebe/colours/colour_schemes/colour_scheme.rb +3 -3
- data/lib/bioroebe/colours/colour_schemes/colour_scheme_demo.rb +4 -3
- data/lib/bioroebe/colours/colour_schemes/helix.rb +3 -1
- data/lib/bioroebe/colours/colour_schemes/hydropathy.rb +3 -1
- data/lib/bioroebe/colours/colour_schemes/score.rb +13 -2
- data/lib/bioroebe/colours/colour_schemes/strand.rb +3 -1
- data/lib/bioroebe/colours/colour_schemes/turn.rb +3 -1
- data/lib/bioroebe/colours/colour_schemes/zappo.rb +1 -1
- data/lib/bioroebe/{toplevel_methods/colourize_related_methods.rb → colours/colourize_related_code.rb} +1 -3
- data/lib/bioroebe/colours/colourize_sequence.rb +3 -1
- data/lib/bioroebe/colours/colours.rb +172 -15
- data/lib/bioroebe/configuration/configuration.rb +1 -1
- data/lib/bioroebe/constants/GUIs.rb +2 -2
- data/lib/bioroebe/constants/constants.rb +1349 -0
- data/lib/bioroebe/conversions/convert_aminoacid_to_dna.rb +8 -13
- data/lib/bioroebe/conversions/dna_to_aminoacid_sequence.rb +9 -3
- data/lib/bioroebe/count/count_amount_of_aminoacids.rb +11 -10
- data/lib/bioroebe/count/count_amount_of_nucleotides.rb +1 -1
- data/lib/bioroebe/count/count_at.rb +2 -1
- data/lib/bioroebe/databases/download_taxonomy_database.rb +1 -1
- data/lib/bioroebe/dotplots/advanced_dotplot.rb +2 -2
- data/lib/bioroebe/electron_microscopy/coordinate_analyzer.rb +2 -2
- data/lib/bioroebe/electron_microscopy/fix_pos_file.rb +2 -2
- data/lib/bioroebe/electron_microscopy/flipy.rb +2 -2
- data/lib/bioroebe/electron_microscopy/generate_em2em_file.rb +3 -11
- data/lib/bioroebe/electron_microscopy/parse_coordinates.rb +6 -6
- data/lib/bioroebe/electron_microscopy/read_file_xmd.rb +6 -6
- data/lib/bioroebe/electron_microscopy/simple_star_file_generator.rb +2 -2
- data/lib/bioroebe/enzymes/has_this_restriction_enzyme.rb +1 -1
- data/lib/bioroebe/enzymes/restriction_enzyme.rb +1 -1
- data/lib/bioroebe/enzymes/restriction_enzymes/statistics.rb +4 -3
- data/lib/bioroebe/enzymes/restriction_enzymes_file.rb +1 -1
- data/lib/bioroebe/enzymes/return_sequence_that_is_cut_via_restriction_enzyme.rb +4 -3
- data/lib/bioroebe/enzymes/show_restriction_enzymes.rb +3 -3
- data/lib/bioroebe/ext/main.cpp +0 -1
- data/lib/bioroebe/fasta_and_fastq/autocorrect_the_name_of_this_fasta_file.rb +3 -3
- data/lib/bioroebe/fasta_and_fastq/compact_fasta_file/compact_fasta_file.rb +1 -1
- data/lib/bioroebe/fasta_and_fastq/display_how_many_fasta_entries_are_in_this_directory.rb +1 -1
- data/lib/bioroebe/fasta_and_fastq/download_fasta.rb +8 -14
- data/lib/bioroebe/fasta_and_fastq/fasta_defline/fasta_defline.rb +1 -1
- data/lib/bioroebe/fasta_and_fastq/fasta_to_yaml/fasta_to_yaml.rb +1 -1
- data/lib/bioroebe/fasta_and_fastq/fastq_format_explainer.rb +1 -1
- data/lib/bioroebe/fasta_and_fastq/length_modifier/length_modifier.rb +1 -1
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/parse_fasta.rb +37 -11
- data/lib/bioroebe/fasta_and_fastq/parse_fastq/parse_fastq.rb +2 -2
- data/lib/bioroebe/fasta_and_fastq/return_fasta_subsection_of_this_file.rb +1 -1
- data/lib/bioroebe/fasta_and_fastq/show_fasta_headers.rb +5 -13
- data/lib/bioroebe/fasta_and_fastq/show_fasta_statistics.rb +1 -1
- data/lib/bioroebe/fasta_and_fastq/simplify_fasta_header/simplify_fasta_header.rb +1 -1
- data/lib/bioroebe/fasta_and_fastq/split_this_fasta_file_into_chromosomes/reset.rb +3 -6
- data/lib/bioroebe/fasta_and_fastq/split_this_fasta_file_into_chromosomes/split_this_fasta_file_into_chromosomes.rb +3 -3
- data/lib/bioroebe/genbank/genbank_flat_file_format_generator.rb +20 -11
- data/lib/bioroebe/genome/genome.rb +1 -1
- data/lib/bioroebe/genomes/genome_pattern.rb +17 -16
- data/lib/bioroebe/genomes/genome_retriever.rb +4 -2
- data/lib/bioroebe/gui/experimental/snapgene/snapgene.rb +10 -13
- data/lib/bioroebe/gui/universal_widgets/alignment/alignment.rb +557 -0
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/aminoacid_composition/aminoacid_composition.rb +498 -198
- data/lib/bioroebe/gui/universal_widgets/anti_sense_strand/anti_sense_strand.rb +665 -0
- data/lib/bioroebe/gui/universal_widgets/blosum_matrix_viewer/blosum_matrix_viewer.rb +329 -0
- data/lib/bioroebe/gui/universal_widgets/calculate_cell_numbers_of_bacteria/calculate_cell_numbers_of_bacteria.rb +423 -0
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/controller/controller.rb +170 -118
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/dna_to_aminoacid_widget/dna_to_aminoacid_widget.rb +277 -215
- data/lib/bioroebe/gui/{shared_code/dna_to_reverse_complement_widget/dna_to_reverse_complement_widget_module.rb → universal_widgets/dna_to_reverse_complement_widget/dna_to_reverse_complement_widget.rb} +297 -107
- data/lib/bioroebe/gui/universal_widgets/fasta_table_widget/fasta_table_widget.rb +643 -0
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/format_converter/format_converter.rb +236 -164
- data/lib/bioroebe/gui/universal_widgets/gene/gene.rb +278 -0
- data/lib/bioroebe/gui/universal_widgets/hamming_distance/hamming_distance.rb +646 -0
- data/lib/bioroebe/gui/{shared_code/levensthein_distance/levensthein_distance_module.rb → universal_widgets/levensthein_distance/levensthein_distance.rb} +313 -88
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/nucleotide_analyser/nucleotide_analyser.rb +281 -189
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/parse_pdb_file/parse_pdb_file.rb +265 -149
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/primer_design_widget/primer_design_widget.rb +337 -263
- data/lib/bioroebe/gui/universal_widgets/protein_to_DNA/protein_to_DNA.rb +408 -0
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/random_sequence/random_sequence.rb +245 -187
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/restriction_enzymes/restriction_enzymes.rb +207 -137
- data/lib/bioroebe/gui/universal_widgets/shell/shell.rb +288 -0
- data/lib/bioroebe/gui/{gtk3/show_codon_table/misc.rb → universal_widgets/show_codon_table/show_codon_table.rb} +290 -110
- data/lib/bioroebe/gui/{shared_code/show_codon_usage/show_codon_usage_module.rb → universal_widgets/show_codon_usage/show_codon_usage.rb} +228 -47
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/sizeseq/sizeseq.rb +151 -69
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/three_to_one/three_to_one.rb +190 -127
- data/lib/bioroebe/gui/{gtk3 → universal_widgets}/www_finder/www_finder.rb +211 -152
- data/lib/bioroebe/images/images.html +953 -1170
- data/lib/bioroebe/images/misc/README.md +6 -0
- data/lib/bioroebe/images/misc/activation.avif +0 -0
- data/lib/bioroebe/images/misc/inhibition.avif +0 -0
- data/lib/bioroebe/images/misc/small_virus_logo.avif +0 -0
- data/lib/bioroebe/{constants/base_directory.rb → log_directory/log_directory.rb} +79 -59
- data/lib/bioroebe/matplotlib/matplotlib_generator.rb +1 -1
- data/lib/bioroebe/misc/quiz/three_letter_to_aminoacid.rb +1 -1
- data/lib/bioroebe/misc/ruler.rb +5 -5
- data/lib/bioroebe/misc/useful_formulas.rb +3 -3
- data/lib/bioroebe/ncbi/efetch.rb +1 -2
- data/lib/bioroebe/ngs/phred_quality_score_table.rb +3 -3
- data/lib/bioroebe/nucleotides/complementary_dna_strand.rb +3 -6
- data/lib/bioroebe/nucleotides/molecular_weight_of_nucleotides.rb +3 -3
- data/lib/bioroebe/nucleotides/most_likely_nucleotide_sequence_for_this_aminoacid_sequence.rb +6 -10
- data/lib/bioroebe/nucleotides/{show_nucleotide_sequence.rb → show_nucleotide_sequence/show_nucleotide_sequence.rb} +377 -255
- data/lib/bioroebe/palindromes/palindrome_2D_structure.rb +1 -1
- data/lib/bioroebe/palindromes/palindrome_finder.rb +1 -1
- data/lib/bioroebe/palindromes/palindrome_generator.rb +2 -10
- data/lib/bioroebe/parsers/biolang_parser.rb +1 -1
- data/lib/bioroebe/parsers/blosum_parser.rb +14 -19
- data/lib/bioroebe/parsers/genbank_parser.rb +2 -6
- data/lib/bioroebe/parsers/gff.rb +9 -9
- data/lib/bioroebe/parsers/parse_embl.rb +2 -6
- data/lib/bioroebe/parsers/stride_parser.rb +4 -12
- data/lib/bioroebe/patterns/analyse_glycosylation_pattern.rb +2 -2
- data/lib/bioroebe/patterns/is_this_sequence_a_EGF2_pattern.rb +6 -3
- data/lib/bioroebe/patterns/profile_pattern.rb +2 -2
- data/lib/bioroebe/patterns/rgg_scanner.rb +4 -2
- data/lib/bioroebe/{protein_structure → pdb_and_protein_structure}/alpha_helix.rb +2 -2
- data/lib/bioroebe/{pdb → pdb_and_protein_structure}/download_this_pdb.rb +2 -3
- data/lib/bioroebe/{pdb → pdb_and_protein_structure}/fetch_fasta_sequence_from_pdb.rb +4 -4
- data/lib/bioroebe/{protein_structure → pdb_and_protein_structure}/helical_wheel.rb +2 -2
- data/lib/bioroebe/{pdb → pdb_and_protein_structure}/parse_mmCIF_file.rb +1 -1
- data/lib/bioroebe/{pdb → pdb_and_protein_structure}/parse_pdb_file.rb +3 -3
- data/lib/bioroebe/{pdb → pdb_and_protein_structure}/report_secondary_structures_from_this_pdb_file.rb +3 -3
- data/lib/bioroebe/project/project.rb +3 -1
- data/lib/bioroebe/raw_sequence/README.md +8 -8
- data/lib/bioroebe/raw_sequence/raw_sequence.rb +11 -2
- data/lib/bioroebe/regexes/regexes.rb +1 -2
- data/lib/bioroebe/requires/commandline_application.rb +3 -1
- data/lib/bioroebe/requires/require_all_pdb_files.rb +1 -1
- data/lib/bioroebe/requires/require_all_taxonomy_files.rb +1 -1
- data/lib/bioroebe/requires/require_all_utility_scripts_files.rb +10 -0
- data/lib/bioroebe/requires/require_colours.rb +1 -1
- data/lib/bioroebe/requires/require_the_bioroebe_project.rb +5 -7
- data/lib/bioroebe/requires/require_the_bioroebe_sinatra_components.rb +1 -1
- data/lib/bioroebe/requires/require_the_constants.rb +2 -14
- data/lib/bioroebe/requires/require_yaml.rb +7 -5
- data/lib/bioroebe/sequence/alignment.rb +1 -1
- data/lib/bioroebe/sequence/dna.rb +4 -2
- data/lib/bioroebe/sequence/nucleotide_module/nucleotide_module.rb +22 -8
- data/lib/bioroebe/sequence/protein.rb +2 -2
- data/lib/bioroebe/sequence/reverse_complement.rb +3 -3
- data/lib/bioroebe/sequence/rna.rb +9 -8
- data/lib/bioroebe/sequence/sequence.rb +3 -3
- data/lib/bioroebe/shell/configuration/additionally_set_xorg_buffer.yml +0 -0
- data/lib/bioroebe/shell/configuration/may_we_show_the_startup_information.yml +0 -0
- data/lib/bioroebe/shell/configuration/upcase_nucleotides.yml +0 -0
- data/lib/bioroebe/shell/configuration/use_silent_startup.yml +1 -1
- data/lib/bioroebe/shell/help/class.rb +68 -19
- data/lib/bioroebe/shell/menu.rb +5244 -5322
- data/lib/bioroebe/shell/{readline/readline.rb → readline.rb} +1 -3
- data/lib/bioroebe/shell/shell.rb +11240 -453
- data/lib/bioroebe/siRNA/siRNA.rb +3 -3
- data/lib/bioroebe/{gui/shared_code/blosum_matrix_viewer/blosum_matrix_viewer_module.rb → sinatra/sinatra_interface.rb} +28 -19
- data/lib/bioroebe/{www/sinatra/sinatra.rb → sinatra/sinatra_wrapper.rb} +731 -754
- data/lib/bioroebe/string_matching/find_longest_substring.rb +2 -10
- data/lib/bioroebe/string_matching/find_longest_substring_via_LCS_algorithm.rb +4 -14
- data/lib/bioroebe/string_matching/hamming_distance.rb +11 -10
- data/lib/bioroebe/string_matching/levensthein.rb +5 -17
- data/lib/bioroebe/string_matching/simple_string_comparer.rb +48 -4
- data/lib/bioroebe/string_matching/smith_waterman.rb +11 -6
- data/lib/bioroebe/svg/glyph.rb +4 -1
- data/lib/bioroebe/svg/mini_feature.rb +1 -1
- data/lib/bioroebe/svg/page.rb +18 -7
- data/lib/bioroebe/svg/svgee.rb +22 -13
- data/lib/bioroebe/svg/track.rb +20 -4
- data/lib/bioroebe/taxonomy/chart.rb +2 -2
- data/lib/bioroebe/taxonomy/class_methods.rb +5 -6
- data/lib/bioroebe/taxonomy/constants.rb +1 -1
- data/lib/bioroebe/taxonomy/info/info.rb +1 -1
- data/lib/bioroebe/taxonomy/info/is_dna.rb +1 -1
- data/lib/bioroebe/taxonomy/interactive.rb +1 -2
- data/lib/bioroebe/taxonomy/menu.rb +1 -1
- data/lib/bioroebe/taxonomy/node.rb +1 -1
- data/lib/bioroebe/taxonomy/parse_fasta.rb +4 -2
- data/lib/bioroebe/taxonomy/shared.rb +5 -4
- data/lib/bioroebe/taxonomy/taxonomy.rb +2 -4
- data/lib/bioroebe/toplevel_methods/fasta_and_fastq.rb +3 -45
- data/lib/bioroebe/toplevel_methods/{is_on_roebe.rb → roebe.rb} +1 -11
- data/lib/bioroebe/toplevel_methods/taxonomy.rb +6 -12
- data/lib/bioroebe/toplevel_methods/toplevel_methods.rb +5568 -0
- data/lib/bioroebe/utility_scripts/align_open_reading_frames.rb +4 -3
- data/lib/bioroebe/utility_scripts/analyse_local_dataset.rb +2 -2
- data/lib/bioroebe/utility_scripts/check_for_mismatches/check_for_mismatches.rb +16 -9
- data/lib/bioroebe/utility_scripts/compacter/compacter.rb +4 -2
- data/lib/bioroebe/utility_scripts/compare_these_two_sequences_via_blosum.rb +119 -0
- data/lib/bioroebe/utility_scripts/compseq/compseq.rb +11 -9
- data/lib/bioroebe/utility_scripts/{consensus_sequence.rb → consensus_sequence/consensus_sequence.rb} +13 -4
- data/lib/bioroebe/utility_scripts/{create_batch_entrez_file.rb → create_batch_entrez_file/create_batch_entrez_file.rb} +5 -5
- data/lib/bioroebe/utility_scripts/{determine_antigenic_areas.rb → determine_antigenic_areas/determine_antigenic_areas.rb} +5 -5
- data/lib/bioroebe/utility_scripts/{determine_missing_nucleotides_percentage.rb → determine_missing_nucleotides_percentage/determine_missing_nucleotides_percentage.rb} +16 -15
- data/lib/bioroebe/utility_scripts/display_open_reading_frames/display_open_reading_frames.rb +7 -7
- data/lib/bioroebe/utility_scripts/display_open_reading_frames/misc.rb +1 -1
- data/lib/bioroebe/utility_scripts/display_open_reading_frames/report.rb +2 -0
- data/lib/bioroebe/utility_scripts/{dot_alignment.rb → dot_alignment/dot_alignment.rb} +3 -3
- data/lib/bioroebe/utility_scripts/{download_files_from_rebase.rb → download_files_from_rebase/download_files_from_rebase.rb} +5 -5
- data/lib/bioroebe/utility_scripts/fetch_data_from_uniprot/fetch_data_from_uniprot.rb +269 -0
- data/lib/bioroebe/utility_scripts/find_gene.rb +4 -2
- data/lib/bioroebe/utility_scripts/{mirror_repeat.rb → mirror_repeat/mirror_repeat.rb} +5 -5
- data/lib/bioroebe/utility_scripts/move_file_to_its_correct_location.rb +3 -3
- data/lib/bioroebe/utility_scripts/{parse_taxonomy.rb → parse_taxonomy/parse_taxonomy.rb} +15 -6
- data/lib/bioroebe/utility_scripts/{pathways.rb → pathways/pathways.rb} +4 -3
- data/lib/bioroebe/utility_scripts/{permutations.rb → permutations/permutations.rb} +3 -3
- data/lib/bioroebe/utility_scripts/punnet/punnet.rb +4 -2
- data/lib/bioroebe/utility_scripts/{show_this_dna_sequence.rb → show_this_dna_sequence/show_this_dna_sequence.rb} +1 -1
- data/lib/bioroebe/utility_scripts/showorf/showorf.rb +406 -10
- data/lib/bioroebe/version/version.rb +2 -2
- data/lib/bioroebe/viennarna/rnafold_wrapper.rb +5 -13
- data/lib/bioroebe/virus/individual_viruses/README.md +15 -0
- data/lib/bioroebe/virus/individual_viruses/tobacco_mosaic_virus.rb +40 -0
- data/lib/bioroebe/virus/virus.rb +76 -0
- data/lib/bioroebe/www/bioroebe.cgi +4 -3
- data/lib/bioroebe/www/embeddable_interface.rb +85 -49
- data/lib/bioroebe/yaml/agarose/agarose_concentrations.yml +6 -6
- data/lib/bioroebe/yaml/antisense/antisense.yml +2 -0
- data/lib/bioroebe/yaml/blosum/blosum50.yml +6 -0
- data/lib/bioroebe/yaml/blosum/blosum90.yml +2 -1
- data/lib/bioroebe/yaml/chromosomes/chromosome_numbers.yml +2 -2
- data/lib/bioroebe/yaml/configuration/temp_dir.yml +1 -1
- data/lib/bioroebe/yaml/consensus_sequences/consensus_sequences.yml +1 -0
- data/lib/bioroebe/yaml/enzymes/enzyme_classes.yml +7 -6
- data/lib/bioroebe/yaml/humans/human_chromosomes.yml +3 -3
- data/lib/bioroebe/yaml/mRNA/mRNA.yml +1 -5
- data/lib/bioroebe/yaml/nucleotides/abbreviations_for_nucleotides.yml +1 -0
- data/lib/bioroebe/yaml/nucleotides/nucleotide_density.yml +2 -1
- data/lib/bioroebe/yaml/promoters/35S.yml +3 -1
- data/lib/bioroebe/yaml/proteases/proteases.yml +3 -1
- data/lib/bioroebe/yaml/proteins/ubiquitin.yml +4 -1
- data/lib/bioroebe/yaml/restriction_enzymes/restriction_enzymes.yml +7 -7
- data/spec/testing_toplevel_method_editor.rb +1 -1
- data/spec/testing_toplevel_method_verbose.rb +1 -1
- data/test/testing_dna_to_rna_conversion.rb +1 -1
- metadata +127 -235
- data/doc/blosum.md +0 -5
- data/lib/bioroebe/base/commandline_application/aminoacids.rb +0 -33
- data/lib/bioroebe/base/commandline_application/directory.rb +0 -33
- data/lib/bioroebe/base/commandline_application/extract.rb +0 -22
- data/lib/bioroebe/base/commandline_application/misc.rb +0 -502
- data/lib/bioroebe/base/commandline_application/opn.rb +0 -47
- data/lib/bioroebe/base/commandline_application/reset.rb +0 -42
- data/lib/bioroebe/base/commandline_application/warnings.rb +0 -36
- data/lib/bioroebe/base/commandline_application/write_what_into.rb +0 -29
- data/lib/bioroebe/base/initialize.rb +0 -18
- data/lib/bioroebe/base/misc.rb +0 -129
- data/lib/bioroebe/base/namespace.rb +0 -16
- data/lib/bioroebe/base/prototype/e_and_ee.rb +0 -24
- data/lib/bioroebe/base/prototype/misc.rb +0 -114
- data/lib/bioroebe/base/prototype/mkdir.rb +0 -20
- data/lib/bioroebe/base/prototype/reset.rb +0 -36
- data/lib/bioroebe/colours/misc_colours.rb +0 -80
- data/lib/bioroebe/colours/rev.rb +0 -44
- data/lib/bioroebe/colours/sdir.rb +0 -21
- data/lib/bioroebe/colours/sfancy.rb +0 -21
- data/lib/bioroebe/colours/sfile.rb +0 -21
- data/lib/bioroebe/colours/simp.rb +0 -21
- data/lib/bioroebe/colours/swarn.rb +0 -29
- data/lib/bioroebe/constants/aminoacids_and_proteins.rb +0 -147
- data/lib/bioroebe/constants/carriage_return.rb +0 -14
- data/lib/bioroebe/constants/codon_tables.rb +0 -77
- data/lib/bioroebe/constants/database_constants.rb +0 -107
- data/lib/bioroebe/constants/files_and_directories.rb +0 -606
- data/lib/bioroebe/constants/misc.rb +0 -209
- data/lib/bioroebe/constants/newline.rb +0 -14
- data/lib/bioroebe/constants/nucleotides.rb +0 -121
- data/lib/bioroebe/constants/regex.rb +0 -28
- data/lib/bioroebe/constants/roebe.rb +0 -38
- data/lib/bioroebe/constants/row_terminator.rb +0 -16
- data/lib/bioroebe/constants/tabulator.rb +0 -14
- data/lib/bioroebe/constants/unicode.rb +0 -12
- data/lib/bioroebe/constants/urls.rb +0 -50
- data/lib/bioroebe/gui/gtk +0 -1
- data/lib/bioroebe/gui/gtk3/README.md +0 -2
- data/lib/bioroebe/gui/gtk3/alignment/alignment.rb +0 -306
- data/lib/bioroebe/gui/gtk3/anti_sense_strand/anti_sense_strand.rb +0 -29
- data/lib/bioroebe/gui/gtk3/blosum_matrix_viewer/blosum_matrix_viewer.rb +0 -195
- data/lib/bioroebe/gui/gtk3/calculate_cell_numbers_of_bacteria/calculate_cell_numbers_of_bacteria.rb +0 -105
- data/lib/bioroebe/gui/gtk3/dna_to_reverse_complement_widget/dna_to_reverse_complement_widget.rb +0 -188
- data/lib/bioroebe/gui/gtk3/fasta_table_widget/fasta_table_widget.rb +0 -322
- data/lib/bioroebe/gui/gtk3/gene/gene.rb +0 -181
- data/lib/bioroebe/gui/gtk3/hamming_distance/hamming_distance.rb +0 -383
- data/lib/bioroebe/gui/gtk3/levensthein_distance/levensthein_distance.rb +0 -174
- data/lib/bioroebe/gui/gtk3/protein_to_DNA/protein_to_DNA.rb +0 -181
- data/lib/bioroebe/gui/gtk3/show_codon_table/show_codon_table.rb +0 -101
- data/lib/bioroebe/gui/gtk3/show_codon_usage/show_codon_usage.rb +0 -145
- data/lib/bioroebe/gui/gtk3/three_to_one/title.rb +0 -23
- data/lib/bioroebe/gui/jruby/alignment/alignment.rb +0 -165
- data/lib/bioroebe/gui/jruby/aminoacid_composition/aminoacid_composition.rb +0 -166
- data/lib/bioroebe/gui/jruby/blosum_matrix_viewer/blosum_matrix_viewer.rb +0 -82
- data/lib/bioroebe/gui/libui/README.md +0 -4
- data/lib/bioroebe/gui/libui/alignment/alignment.rb +0 -116
- data/lib/bioroebe/gui/libui/blosum_matrix_viewer/blosum_matrix_viewer.rb +0 -112
- data/lib/bioroebe/gui/libui/calculate_cell_numbers_of_bacteria/calculate_cell_numbers_of_bacteria.rb +0 -60
- data/lib/bioroebe/gui/libui/controller/controller.rb +0 -116
- data/lib/bioroebe/gui/libui/dna_to_aminoacid_widget/dna_to_aminoacid_widget.rb +0 -161
- data/lib/bioroebe/gui/libui/dna_to_reverse_complement_widget/dna_to_reverse_complement_widget.rb +0 -76
- data/lib/bioroebe/gui/libui/hamming_distance/hamming_distance.rb +0 -135
- data/lib/bioroebe/gui/libui/levensthein_distance/levensthein_distance.rb +0 -118
- data/lib/bioroebe/gui/libui/protein_to_DNA/protein_to_DNA.rb +0 -115
- data/lib/bioroebe/gui/libui/random_sequence/random_sequence.rb +0 -190
- data/lib/bioroebe/gui/libui/show_codon_table/show_codon_table.rb +0 -134
- data/lib/bioroebe/gui/libui/show_codon_usage/show_codon_usage.rb +0 -89
- data/lib/bioroebe/gui/libui/three_to_one/three_to_one.rb +0 -113
- data/lib/bioroebe/gui/shared_code/alignment/alignment_module.rb +0 -102
- data/lib/bioroebe/gui/shared_code/aminoacid_composition/aminoacid_composition_module.rb +0 -94
- data/lib/bioroebe/gui/shared_code/calculate_cell_numbers_of_bacteria/calculate_cell_numbers_of_bacteria_module.rb +0 -216
- data/lib/bioroebe/gui/shared_code/protein_to_DNA/protein_to_DNA_module.rb +0 -192
- data/lib/bioroebe/gui/shared_code/show_codon_table/show_codon_table_module.rb +0 -72
- data/lib/bioroebe/gui/tk/aminoacid_composition/aminoacid_composition.rb +0 -206
- data/lib/bioroebe/gui/tk/blosum_matrix_viewer/blosum_matrix_viewer.rb +0 -140
- data/lib/bioroebe/gui/tk/hamming_distance/hamming_distance.rb +0 -262
- data/lib/bioroebe/gui/tk/levensthein_distance/levensthein_distance.rb +0 -243
- data/lib/bioroebe/gui/tk/three_to_one/three_to_one.rb +0 -199
- data/lib/bioroebe/gui/unified_widgets/anti_sense_strand/anti_sense_strand.rb +0 -519
- data/lib/bioroebe/shell/colours/colours.rb +0 -235
- data/lib/bioroebe/shell/help/help.rb +0 -25
- data/lib/bioroebe/shell/misc.rb +0 -10227
- data/lib/bioroebe/toplevel_methods/ad_hoc_task.rb +0 -56
- data/lib/bioroebe/toplevel_methods/aminoacids_and_proteins.rb +0 -722
- data/lib/bioroebe/toplevel_methods/atomic_composition.rb +0 -198
- data/lib/bioroebe/toplevel_methods/base_composition.rb +0 -121
- data/lib/bioroebe/toplevel_methods/blast.rb +0 -153
- data/lib/bioroebe/toplevel_methods/calculate_n50_value.rb +0 -57
- data/lib/bioroebe/toplevel_methods/cat.rb +0 -71
- data/lib/bioroebe/toplevel_methods/chunked_display.rb +0 -92
- data/lib/bioroebe/toplevel_methods/cliner.rb +0 -81
- data/lib/bioroebe/toplevel_methods/complement.rb +0 -58
- data/lib/bioroebe/toplevel_methods/convert_global_env.rb +0 -39
- data/lib/bioroebe/toplevel_methods/databases.rb +0 -73
- data/lib/bioroebe/toplevel_methods/delimiter.rb +0 -19
- data/lib/bioroebe/toplevel_methods/digest.rb +0 -81
- data/lib/bioroebe/toplevel_methods/download_and_fetch_data.rb +0 -146
- data/lib/bioroebe/toplevel_methods/e.rb +0 -20
- data/lib/bioroebe/toplevel_methods/editor.rb +0 -21
- data/lib/bioroebe/toplevel_methods/esystem.rb +0 -22
- data/lib/bioroebe/toplevel_methods/exponential_growth.rb +0 -74
- data/lib/bioroebe/toplevel_methods/extract.rb +0 -56
- data/lib/bioroebe/toplevel_methods/file_and_directory_related_actions.rb +0 -269
- data/lib/bioroebe/toplevel_methods/frequencies.rb +0 -99
- data/lib/bioroebe/toplevel_methods/hamming_distance.rb +0 -60
- data/lib/bioroebe/toplevel_methods/infer.rb +0 -66
- data/lib/bioroebe/toplevel_methods/leading_five_prime_and_trailing_three_prime.rb +0 -101
- data/lib/bioroebe/toplevel_methods/levensthein.rb +0 -63
- data/lib/bioroebe/toplevel_methods/log_directory.rb +0 -109
- data/lib/bioroebe/toplevel_methods/longest_common_substring.rb +0 -55
- data/lib/bioroebe/toplevel_methods/map_ncbi_entry_to_eutils_id.rb +0 -88
- data/lib/bioroebe/toplevel_methods/matches.rb +0 -259
- data/lib/bioroebe/toplevel_methods/misc.rb +0 -596
- data/lib/bioroebe/toplevel_methods/nucleotides.rb +0 -787
- data/lib/bioroebe/toplevel_methods/number_of_clones.rb +0 -63
- data/lib/bioroebe/toplevel_methods/open_in_browser.rb +0 -79
- data/lib/bioroebe/toplevel_methods/open_reading_frames.rb +0 -236
- data/lib/bioroebe/toplevel_methods/opn.rb +0 -34
- data/lib/bioroebe/toplevel_methods/palindromes.rb +0 -155
- data/lib/bioroebe/toplevel_methods/parse.rb +0 -59
- data/lib/bioroebe/toplevel_methods/phred_error_probability.rb +0 -68
- data/lib/bioroebe/toplevel_methods/rds.rb +0 -24
- data/lib/bioroebe/toplevel_methods/remove.rb +0 -86
- data/lib/bioroebe/toplevel_methods/return_source_code_of_this_method.rb +0 -35
- data/lib/bioroebe/toplevel_methods/return_subsequence_based_on_indices.rb +0 -68
- data/lib/bioroebe/toplevel_methods/rna_splicing.rb +0 -73
- data/lib/bioroebe/toplevel_methods/rnalfold.rb +0 -69
- data/lib/bioroebe/toplevel_methods/searching_and_finding.rb +0 -116
- data/lib/bioroebe/toplevel_methods/shuffleseq.rb +0 -37
- data/lib/bioroebe/toplevel_methods/statistics.rb +0 -53
- data/lib/bioroebe/toplevel_methods/sum_of_odd_integers.rb +0 -62
- data/lib/bioroebe/toplevel_methods/three_delimiter.rb +0 -34
- data/lib/bioroebe/toplevel_methods/time_and_date.rb +0 -53
- data/lib/bioroebe/toplevel_methods/to_camelcase.rb +0 -31
- data/lib/bioroebe/toplevel_methods/truncate.rb +0 -48
- data/lib/bioroebe/toplevel_methods/url.rb +0 -36
- data/lib/bioroebe/toplevel_methods/verbose.rb +0 -59
- data/lib/bioroebe/utility_scripts/showorf/constants.rb +0 -31
- data/lib/bioroebe/utility_scripts/showorf/help.rb +0 -33
- data/lib/bioroebe/utility_scripts/showorf/initialize.rb +0 -52
- data/lib/bioroebe/utility_scripts/showorf/menu.rb +0 -68
- data/lib/bioroebe/utility_scripts/showorf/reset.rb +0 -36
- data/lib/bioroebe/utility_scripts/showorf/run.rb +0 -152
- data/lib/bioroebe/utility_scripts/showorf/show.rb +0 -97
- /data/doc/{german_names_for_the_aminoacids.md → german_names_for_the_aminoacids/german_names_for_the_aminoacids.md} +0 -0
- /data/doc/{pdb_ATOM_entry.md → pdb_ATOM_entry/pdb_ATOM_entry.md} +0 -0
- /data/doc/{resources.md → resources/resources.md} +0 -0
- /data/lib/bioroebe/gui/{gtk3 → universal_widgets}/aminoacid_composition/customized_dialog.rb +0 -0
- /data/lib/bioroebe/gui/{gtk3 → universal_widgets}/anti_sense_strand/anti_sense_strand.config +0 -0
- /data/lib/bioroebe/gui/{gtk3 → universal_widgets}/calculate_cell_numbers_of_bacteria/calculate_cell_numbers_of_bacteria.config +0 -0
- /data/lib/bioroebe/gui/{gtk3 → universal_widgets}/dna_to_reverse_complement_widget/dna_to_reverse_complement_widget.config +0 -0
- /data/lib/bioroebe/gui/{gtk3 → universal_widgets}/hamming_distance/hamming_distance.config +0 -0
- /data/lib/bioroebe/gui/{gtk3 → universal_widgets}/levensthein_distance/levensthein_distance.config +0 -0
- /data/lib/bioroebe/gui/{gtk3 → universal_widgets}/protein_to_DNA/protein_to_DNA.config +0 -0
- /data/lib/bioroebe/gui/{gtk3 → universal_widgets}/restriction_enzymes/restriction_enzymes.config +0 -0
- /data/lib/bioroebe/gui/{gtk3 → universal_widgets}/www_finder/www_finder.config +0 -0
- /data/lib/bioroebe/yaml/{base_composition_of_dna.yml → base_composition_of_dna/base_composition_of_dna.yml} +0 -0
- /data/lib/bioroebe/yaml/{nuclear_localization_sequences.yml → nuclear_localization_sequences/nuclear_localization_sequences.yml} +0 -0
- /data/lib/bioroebe/yaml/{talens.yml → talens/talens.yml} +0 -0
data/lib/bioroebe/gui/{gtk3 → universal_widgets}/dna_to_aminoacid_widget/dna_to_aminoacid_widget.rb
RENAMED
@@ -2,70 +2,86 @@
|
|
2
2
|
# Encoding: UTF-8
|
3
3
|
# frozen_string_literal: true
|
4
4
|
# =========================================================================== #
|
5
|
-
# === Bioroebe::GUI::
|
5
|
+
# === Bioroebe::GUI::UniversalWidgets::DnaToAminoacidWidget
|
6
|
+
#
|
7
|
+
# Usage example:
|
8
|
+
#
|
9
|
+
# Bioroebe::GUI::UniversalWidgets::DnaToAminoacidWidget.new(ARGV)
|
10
|
+
#
|
6
11
|
# =========================================================================== #
|
7
|
-
# require 'bioroebe/gui/
|
8
|
-
# Bioroebe::GUI::Gtk::DnaToAminoacidWidget.run
|
12
|
+
# require 'bioroebe/gui/universal_widgets/hamming_distance/hamming_distance.rb'
|
9
13
|
# =========================================================================== #
|
10
|
-
require '
|
14
|
+
require 'universal_widgets/base/base.rb'
|
11
15
|
|
12
16
|
module Bioroebe
|
13
17
|
|
14
18
|
module GUI
|
15
19
|
|
16
|
-
module
|
20
|
+
module UniversalWidgets
|
17
21
|
|
18
|
-
class DnaToAminoacidWidget < ::
|
22
|
+
class DnaToAminoacidWidget < ::UniversalWidgets::Base # === Bioroebe::GUI::UniversalWidgets::DnaToAminoacidWidget
|
23
|
+
|
24
|
+
require 'bioroebe/base/commandline_application/commandline_arguments.rb'
|
25
|
+
include ::Bioroebe::CommandlineArguments
|
19
26
|
|
20
27
|
require 'bioroebe/constants/GUIs.rb'
|
21
|
-
|
22
|
-
|
28
|
+
include Bioroebe::GUI
|
29
|
+
|
30
|
+
require 'bioroebe/toplevel_methods/toplevel_methods.rb'
|
23
31
|
require 'bioroebe/fasta_and_fastq/parse_fasta/parse_fasta.rb'
|
24
32
|
require 'bioroebe/codons/codons.rb'
|
25
33
|
require 'bioroebe/codons/codon_table.rb'
|
26
34
|
require 'bioroebe/codons/show_codon_tables.rb'
|
27
35
|
|
28
|
-
require 'gtk_paradise/requires/require_the_base_module.rb'
|
29
|
-
include ::Gtk::BaseModule
|
30
|
-
|
31
|
-
# ========================================================================= #
|
32
|
-
# === NAMESPACE
|
33
|
-
# ========================================================================= #
|
34
|
-
NAMESPACE = inspect
|
35
|
-
|
36
36
|
# ========================================================================= #
|
37
37
|
# === TITLE
|
38
|
+
#
|
39
|
+
# Specify which title to use for this small widget.
|
38
40
|
# ========================================================================= #
|
39
41
|
TITLE = 'DNA to Aminoacid Sequence converter'
|
40
42
|
|
41
43
|
# ========================================================================= #
|
42
44
|
# === WIDTH
|
43
45
|
# ========================================================================= #
|
44
|
-
WIDTH
|
46
|
+
WIDTH = '65% or 500px minimum'
|
45
47
|
|
46
48
|
# ========================================================================= #
|
47
49
|
# === HEIGHT
|
48
50
|
# ========================================================================= #
|
49
|
-
HEIGHT = '
|
51
|
+
HEIGHT = '55% or 300px minimum'
|
50
52
|
|
51
53
|
# ========================================================================= #
|
52
|
-
# ===
|
54
|
+
# === TEXT_COMPARE_THE_TWO_SEQUENCES
|
55
|
+
# ========================================================================= #
|
56
|
+
TEXT_COMPARE_THE_TWO_SEQUENCES = '_Compare the two sequences'
|
57
|
+
|
58
|
+
# ========================================================================= #
|
59
|
+
# === MONOSPACED_FONT
|
60
|
+
#
|
61
|
+
# When this font is changed, don't forget to also change the font
|
62
|
+
# at SMALLER_FONT.
|
53
63
|
# ========================================================================= #
|
54
|
-
|
64
|
+
MONOSPACED_FONT = :hack_20
|
65
|
+
USE_THIS_FONT = MONOSPACED_FONT
|
55
66
|
|
56
67
|
# ========================================================================= #
|
57
68
|
# === SMALLER_FONT
|
58
69
|
# ========================================================================= #
|
59
|
-
SMALLER_FONT = :
|
70
|
+
SMALLER_FONT = :hack_16
|
71
|
+
|
72
|
+
# ========================================================================= #
|
73
|
+
# === USE_THIS_SLIGHTLY_SMALLER_FONT
|
74
|
+
# ========================================================================= #
|
75
|
+
USE_THIS_SLIGHTLY_SMALLER_FONT = :hack_16
|
60
76
|
|
61
77
|
# ========================================================================= #
|
62
78
|
# === initialize
|
63
79
|
# ========================================================================= #
|
64
80
|
def initialize(
|
65
|
-
commandline_arguments =
|
81
|
+
commandline_arguments = nil,
|
66
82
|
run_already = true
|
67
83
|
)
|
68
|
-
|
84
|
+
determine_the_GUI_to_be_used(commandline_arguments)
|
69
85
|
reset
|
70
86
|
set_commandline_arguments(
|
71
87
|
commandline_arguments
|
@@ -77,15 +93,19 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
77
93
|
# === reset (reset tag)
|
78
94
|
# ========================================================================= #
|
79
95
|
def reset
|
96
|
+
super() if respond_to?(:super)
|
80
97
|
reset_the_internal_variables
|
98
|
+
reset_the_base_module # This must come after reset_the_internal_variables().
|
99
|
+
infer_the_namespace
|
81
100
|
# ======================================================================= #
|
82
101
|
# === @configuration
|
83
102
|
# ======================================================================= #
|
84
|
-
@configuration = [true, __dir__,
|
103
|
+
@configuration = [true, __dir__, namespace?]
|
104
|
+
# ======================================================================= #
|
105
|
+
# === Set the title, width, height and the font in use.
|
106
|
+
# ======================================================================= #
|
85
107
|
title_width_height_font(TITLE, WIDTH, HEIGHT, USE_THIS_FONT)
|
86
|
-
|
87
|
-
set_border_width(15) if respond_to? :set_border_width
|
88
|
-
signal_destroy_then_quit
|
108
|
+
handle_CSS if use_gtk3?
|
89
109
|
# ======================================================================= #
|
90
110
|
# === @dna_sequence
|
91
111
|
#
|
@@ -102,15 +122,6 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
102
122
|
# === @parent_widget
|
103
123
|
# ======================================================================= #
|
104
124
|
@parent_widget = nil
|
105
|
-
handle_CSS_rules
|
106
|
-
end
|
107
|
-
|
108
|
-
# ========================================================================= #
|
109
|
-
# === handle_CSS_rules
|
110
|
-
# ========================================================================= #
|
111
|
-
def handle_CSS_rules
|
112
|
-
use_gtk_paradise_project_css_file
|
113
|
-
append_project_CSS_file
|
114
125
|
end
|
115
126
|
|
116
127
|
# ========================================================================= #
|
@@ -124,7 +135,7 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
124
135
|
# === border_size?
|
125
136
|
# ========================================================================= #
|
126
137
|
def border_size?
|
127
|
-
|
138
|
+
8
|
128
139
|
end
|
129
140
|
|
130
141
|
# ========================================================================= #
|
@@ -162,20 +173,61 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
162
173
|
end
|
163
174
|
|
164
175
|
# ========================================================================= #
|
165
|
-
# ===
|
176
|
+
# === set_aminoacid_sequence
|
166
177
|
# ========================================================================= #
|
167
|
-
def
|
168
|
-
|
169
|
-
end; alias
|
178
|
+
def set_aminoacid_sequence(i)
|
179
|
+
@aminoacid_sequence = i
|
180
|
+
end; alias set_these_aminoacids set_aminoacid_sequence # === set_these_aminoacids
|
170
181
|
|
171
182
|
# ========================================================================= #
|
172
|
-
# ===
|
183
|
+
# === do_the_conversion (conversion tag)
|
184
|
+
#
|
185
|
+
# This is the method that is to be used for the actual conversion.
|
173
186
|
# ========================================================================= #
|
174
|
-
def
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
187
|
+
def do_the_conversion(
|
188
|
+
i = @dna_sequence
|
189
|
+
)
|
190
|
+
# ======================================================================= #
|
191
|
+
# Next, we must translate from DNA to Aminoacid sequence.
|
192
|
+
# ======================================================================= #
|
193
|
+
sanitized_input = i.delete(' ').delete('-')
|
194
|
+
i.tr!('U','T') if i.include? 'U'
|
195
|
+
set_dna_sequence(i)
|
196
|
+
if ::Bioroebe.const_defined? :Controller
|
197
|
+
# ===================================================================== #
|
198
|
+
# Ok, in this case we can store the dataset via a class-method.
|
199
|
+
# ===================================================================== #
|
200
|
+
::Bioroebe::GUI::Controller.set_dna_sequence(i)
|
201
|
+
end
|
202
|
+
aminoacid_sequence = ::Bioroebe.convert_dna_to_protein_sequence(
|
203
|
+
sanitized_input,
|
204
|
+
:default,
|
205
|
+
Bioroebe::CodonTable.by_name(
|
206
|
+
entry_for_the_codon_table?.text?
|
207
|
+
)
|
208
|
+
)
|
209
|
+
set_aminoacid_sequence(aminoacid_sequence)
|
210
|
+
update_the_entries
|
211
|
+
sync_the_entries_back_onto_the_two_main_strings
|
212
|
+
if @parent_widget and @parent_widget.respond_to?(:set_aminoacid_sequence)
|
213
|
+
@parent_widget.set_aminoacid_sequence(aminoacid_sequence)
|
214
|
+
end
|
215
|
+
@label_n_DNA_nucleotides.set_text(
|
216
|
+
'n DNA nucleotides: '+
|
217
|
+
i.delete(' ').
|
218
|
+
delete('-').size.to_s
|
219
|
+
)
|
220
|
+
@label_n_DNA_nucleotides.make_bold
|
221
|
+
@label_n_DNA_nucleotides.align_left
|
222
|
+
@label_n_aminoacids.set_text(
|
223
|
+
'n aminoacids: '+
|
224
|
+
aminoacid_sequence.size.to_s
|
225
|
+
)
|
226
|
+
@label_n_aminoacids.make_bold
|
227
|
+
@label_n_aminoacids.align_left
|
228
|
+
end; alias do_sync_fields do_the_conversion # === do_sync_fields
|
229
|
+
alias do_trigger_the_conversion do_the_conversion # === do_trigger_the_conversion
|
230
|
+
alias do_determine_the_aminoacid_sequence do_the_conversion # === do_determine_the_aminoacid_sequence
|
179
231
|
|
180
232
|
# ========================================================================= #
|
181
233
|
# === create_the_entry_for_the_codon_table_in_use
|
@@ -184,7 +236,7 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
184
236
|
# ======================================================================= #
|
185
237
|
# === @entry_for_the_codon_table_in_use
|
186
238
|
# ======================================================================= #
|
187
|
-
@entry_for_the_codon_table_in_use =
|
239
|
+
@entry_for_the_codon_table_in_use = create_entry(Bioroebe.codon_table_in_use?.to_s)
|
188
240
|
@entry_for_the_codon_table_in_use.center
|
189
241
|
@entry_for_the_codon_table_in_use.bblack2
|
190
242
|
@entry_for_the_codon_table_in_use.bg_azure
|
@@ -197,8 +249,8 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
197
249
|
# === create_the_event_box
|
198
250
|
# ========================================================================= #
|
199
251
|
def create_the_event_box
|
200
|
-
@event_box_containing_the_right_arrow =
|
201
|
-
|
252
|
+
@event_box_containing_the_right_arrow = create_eventbox(
|
253
|
+
text(:arrow_right)
|
202
254
|
)
|
203
255
|
@event_box_containing_the_right_arrow.on_clicked {
|
204
256
|
update_the_dna_sequence_then_do_the_conversion
|
@@ -220,13 +272,13 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
220
272
|
end
|
221
273
|
|
222
274
|
# ========================================================================= #
|
223
|
-
# ===
|
275
|
+
# === create_the_grid (grid tag)
|
224
276
|
# ========================================================================= #
|
225
|
-
def
|
277
|
+
def create_the_grid
|
226
278
|
# ======================================================================= #
|
227
279
|
# === @grid
|
228
280
|
# ======================================================================= #
|
229
|
-
@grid =
|
281
|
+
@grid = create_grid
|
230
282
|
@grid.set_column_spacing(5)
|
231
283
|
@grid.set_row_spacing(5)
|
232
284
|
end
|
@@ -235,7 +287,7 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
235
287
|
# === sanitized_half_width
|
236
288
|
# ========================================================================= #
|
237
289
|
def sanitized_half_width
|
238
|
-
(
|
290
|
+
(width? / 2.to_f) - 30
|
239
291
|
end
|
240
292
|
|
241
293
|
# ========================================================================= #
|
@@ -294,7 +346,7 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
294
346
|
# ======================================================================= #
|
295
347
|
# === The right Aminoacid widget.
|
296
348
|
# ======================================================================= #
|
297
|
-
@right_entry =
|
349
|
+
@right_entry = create_entry
|
298
350
|
@right_entry.clear_background
|
299
351
|
@right_entry.lightskyblue_background
|
300
352
|
@right_entry.bblack1
|
@@ -308,72 +360,98 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
308
360
|
end
|
309
361
|
|
310
362
|
# ========================================================================= #
|
311
|
-
# ===
|
363
|
+
# === dna_sequence?
|
312
364
|
# ========================================================================= #
|
313
|
-
def
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
365
|
+
def dna_sequence?
|
366
|
+
left_entry?.text.to_s
|
367
|
+
end; alias return_the_main_DNA_sequence dna_sequence? # === return_the_main_DNA_sequence
|
368
|
+
|
369
|
+
# ========================================================================= #
|
370
|
+
# === create_the_entries (entries tag)
|
371
|
+
# ========================================================================= #
|
372
|
+
def create_the_entries
|
373
|
+
create_the_left_entry
|
374
|
+
create_the_right_entry
|
375
|
+
create_the_entry_for_the_codon_table_in_use
|
376
|
+
end
|
377
|
+
|
378
|
+
# ========================================================================= #
|
379
|
+
# === main_font?
|
380
|
+
# ========================================================================= #
|
381
|
+
def main_font?
|
382
|
+
USE_THIS_FONT
|
383
|
+
end
|
384
|
+
|
385
|
+
# ========================================================================= #
|
386
|
+
# === slightly_smaller_font?
|
387
|
+
# ========================================================================= #
|
388
|
+
def slightly_smaller_font?
|
389
|
+
USE_THIS_SLIGHTLY_SMALLER_FONT
|
390
|
+
end
|
391
|
+
|
392
|
+
# ========================================================================= #
|
393
|
+
# === handle_CSS_rules (CSS tag, css tag)
|
394
|
+
# ========================================================================= #
|
395
|
+
def handle_CSS_rules
|
396
|
+
use_gtk_paradise_project_css_file
|
397
|
+
append_project_css_file
|
398
|
+
add_these_custom_CSS_rules '
|
399
|
+
|
400
|
+
#custom_treeview.view header button {
|
401
|
+
background-color: white;
|
402
|
+
color: royalblue;
|
403
|
+
font-weight: bold;
|
404
|
+
font-size: larger;
|
405
|
+
padding: 8px;
|
406
|
+
}'
|
407
|
+
apply_the_CSS_rules
|
408
|
+
end; alias handle_CSS handle_CSS_rules # === handle_CSS
|
409
|
+
|
410
|
+
# ========================================================================= #
|
411
|
+
# === create_the_skeleton (create tag, skeleton tag)
|
412
|
+
# ========================================================================= #
|
413
|
+
def create_the_skeleton
|
414
|
+
create_the_header_bar
|
415
|
+
create_the_grid
|
416
|
+
create_button_trigger_conversion
|
417
|
+
create_the_entries
|
418
|
+
create_the_event_box
|
419
|
+
end
|
420
|
+
|
421
|
+
# ========================================================================= #
|
422
|
+
# === create_button_trigger_conversion
|
423
|
+
# ========================================================================= #
|
424
|
+
def create_button_trigger_conversion
|
342
425
|
# ======================================================================= #
|
343
|
-
#
|
426
|
+
# === @button_trigger_conversion
|
344
427
|
# ======================================================================= #
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
'translated to its corresponding amino acid sequence.'
|
355
|
-
dropdown_box.on_changed {
|
356
|
-
new_text = dropdown_box.text?.to_s
|
357
|
-
@entry_for_the_codon_table_in_use.set_text(new_text)
|
358
|
-
do_determine_the_aminoacid_sequence
|
428
|
+
@button_trigger_conversion = bold_button('_Trigger Conversion')
|
429
|
+
@button_trigger_conversion.clear_background
|
430
|
+
@button_trigger_conversion.disallow_resizing
|
431
|
+
@button_trigger_conversion.set_size_request(125, 40)
|
432
|
+
@button_trigger_conversion.set_background_colour :whitesmoke
|
433
|
+
@button_trigger_conversion.on_hover(:lightgreen)
|
434
|
+
@button_trigger_conversion.on_clicked {
|
435
|
+
update_the_dna_sequence_then_do_the_conversion
|
436
|
+
do_properly_space_the_top_left_entry
|
359
437
|
}
|
360
|
-
|
361
|
-
hbox.minimal(@entry_for_the_codon_table_in_use, 3)
|
362
|
-
hbox.minimal(dropdown_box, 3)
|
363
|
-
add(hbox)
|
364
|
-
vbox = gtk_vbox
|
438
|
+
@button_trigger_conversion.bblack2
|
365
439
|
# ======================================================================= #
|
366
|
-
#
|
440
|
+
# Use a tooltip as well for our button:
|
367
441
|
# ======================================================================= #
|
368
|
-
@
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
442
|
+
@button_trigger_conversion.hint =
|
443
|
+
"Clicking on this button will convert from a <b>DNA</b> "\
|
444
|
+
"<b>sequence</b> \n(on the left hand side) to the <b>corresponding "\
|
445
|
+
"Aminoacid sequence</b>.\n\nMake sure you input the DNA sequence "\
|
446
|
+
"on the left hand side. The space character, aka ' ', will "\
|
447
|
+
"be ignored."
|
448
|
+
end
|
449
|
+
|
450
|
+
# ========================================================================= #
|
451
|
+
# === run (run tag)
|
452
|
+
# ========================================================================= #
|
453
|
+
def run
|
454
|
+
run_super
|
377
455
|
end
|
378
456
|
|
379
457
|
# ========================================================================= #
|
@@ -480,7 +558,7 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
480
558
|
# ======================================================================= #
|
481
559
|
# The left entry, a DNA widget as a gtk-entry widget.
|
482
560
|
# ======================================================================= #
|
483
|
-
@left_entry =
|
561
|
+
@left_entry = create_entry
|
484
562
|
@left_entry.clear_background
|
485
563
|
@left_entry.yellow_background
|
486
564
|
@left_entry.bblack1
|
@@ -503,112 +581,95 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
503
581
|
end
|
504
582
|
|
505
583
|
# ========================================================================= #
|
506
|
-
# ===
|
584
|
+
# === connect_the_skeleton (connect tag, skeleton tag)
|
507
585
|
# ========================================================================= #
|
508
|
-
def
|
509
|
-
|
510
|
-
|
586
|
+
def connect_the_skeleton
|
587
|
+
abort_on_exception
|
588
|
+
|
589
|
+
vbox = create_vbox
|
511
590
|
|
512
|
-
# ========================================================================= #
|
513
|
-
# === do_the_conversion (conversion tag)
|
514
|
-
#
|
515
|
-
# This is the method that is to be used for the actual conversion.
|
516
|
-
# ========================================================================= #
|
517
|
-
def do_the_conversion(
|
518
|
-
i = @dna_sequence
|
519
|
-
)
|
520
591
|
# ======================================================================= #
|
521
|
-
#
|
592
|
+
# The two top labels denote which widget is the one for the DNA
|
593
|
+
# sequence, and which one is for the aminoacid sequence.
|
522
594
|
# ======================================================================= #
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
update_the_entries
|
541
|
-
sync_the_entries_back_onto_the_two_main_strings
|
542
|
-
if @parent_widget and @parent_widget.respond_to?(:set_aminoacid_sequence)
|
543
|
-
@parent_widget.set_aminoacid_sequence(aminoacid_sequence)
|
544
|
-
end
|
545
|
-
@label_n_DNA_nucleotides.set_text(
|
546
|
-
'n DNA nucleotides: '+
|
547
|
-
i.delete(' ').
|
548
|
-
delete('-').size.to_s
|
549
|
-
)
|
550
|
-
@label_n_DNA_nucleotides.make_bold
|
551
|
-
@label_n_DNA_nucleotides.align_left
|
552
|
-
@label_n_aminoacids.set_text(
|
553
|
-
'n aminoacids: '+
|
554
|
-
aminoacid_sequence.size.to_s
|
595
|
+
dna_sequence_label = bold_label('DNA sequence')
|
596
|
+
dna_sequence_label.set_size_request(sanitized_half_width, 42)
|
597
|
+
aminoacid_sequence_label = bold_label('Aminoacid sequence')
|
598
|
+
aminoacid_sequence_label.set_size_request(sanitized_half_width, 42)
|
599
|
+
# ======================================================================= #
|
600
|
+
# API for .attach() is:
|
601
|
+
# .attach(child, left, top, width, height)
|
602
|
+
# ======================================================================= #
|
603
|
+
@grid.attach(dna_sequence_label, 0, 0, 2, 1)
|
604
|
+
@grid.attach(aminoacid_sequence_label, 3, 0, 2, 1)
|
605
|
+
@grid.attach(@left_entry, 0, 1, 2, 1)
|
606
|
+
@grid.attach(@event_box_containing_the_right_arrow, 2, 1, 1, 1)
|
607
|
+
@grid.attach(@right_entry, 3, 1, 2, 1)
|
608
|
+
button_box = simplified_button_box(button_trigger_the_conversion?)
|
609
|
+
button_box.set_size_request(350, 40)
|
610
|
+
@grid.attach(
|
611
|
+
button_box, 0, 2, 5, 1
|
555
612
|
)
|
556
|
-
@
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
# ========================================================================= #
|
563
|
-
# === create_skeleton (create tag)
|
564
|
-
# ========================================================================= #
|
565
|
-
def create_skeleton
|
566
|
-
create_the_header_bar
|
567
|
-
create_grid
|
568
|
-
create_button_trigger_conversion
|
569
|
-
create_the_entries
|
570
|
-
create_the_event_box
|
571
|
-
end
|
572
|
-
|
573
|
-
# ========================================================================= #
|
574
|
-
# === create_button_trigger_conversion
|
575
|
-
# ========================================================================= #
|
576
|
-
def create_button_trigger_conversion
|
613
|
+
vbox.minimal(@header_bar)
|
614
|
+
vbox.add(horizontal_spacer)
|
615
|
+
vbox.minimal(@grid, 8)
|
616
|
+
vbox.add(horizontal_spacer)
|
617
|
+
hbox = create_hbox
|
577
618
|
# ======================================================================= #
|
578
|
-
#
|
619
|
+
# Add the dropdown box next; also known as the combobox.
|
579
620
|
# ======================================================================= #
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
621
|
+
dropdown_box = gtk_dropdown_box(
|
622
|
+
Bioroebe.available_codon_tables?
|
623
|
+
)
|
624
|
+
dropdown_box.use_this_font = SMALLER_FONT
|
625
|
+
dropdown_box.first_element_is_active
|
626
|
+
dropdown_box.bblack1
|
627
|
+
dropdown_box.pad5px
|
628
|
+
dropdown_box.hint = 'When a new codon table is assigned, via the '\
|
629
|
+
'drop-down menu, then any assigned DNA sequence will be automatically '\
|
630
|
+
'translated to its corresponding amino acid sequence.'
|
631
|
+
dropdown_box.on_changed {
|
632
|
+
new_text = dropdown_box.text?.to_s
|
633
|
+
@entry_for_the_codon_table_in_use.set_text(new_text)
|
634
|
+
do_determine_the_aminoacid_sequence
|
589
635
|
}
|
590
|
-
|
636
|
+
hbox.minimal(text('Codon table in use:'), 3)
|
637
|
+
hbox.minimal(@entry_for_the_codon_table_in_use, 3)
|
638
|
+
hbox.minimal(dropdown_box, 3)
|
639
|
+
vbox.add(hbox)
|
640
|
+
|
591
641
|
# ======================================================================= #
|
592
|
-
#
|
642
|
+
# === @label_n_DNA_nucleotides
|
593
643
|
# ======================================================================= #
|
594
|
-
@
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
644
|
+
@label_n_DNA_nucleotides = bold_label('n DNA nucleotides: ')
|
645
|
+
@label_n_DNA_nucleotides.align_left
|
646
|
+
@label_n_DNA_nucleotides.make_selectable
|
647
|
+
vbox.add(@label_n_DNA_nucleotides)
|
648
|
+
@label_n_aminoacids = bold_label('n aminoacids: ')
|
649
|
+
@label_n_aminoacids.align_left
|
650
|
+
@label_n_aminoacids.make_selectable
|
651
|
+
vbox.add(@label_n_aminoacids)
|
652
|
+
|
653
|
+
window = runner_widget(nil, width?, height?, title?)
|
654
|
+
window << vbox
|
601
655
|
|
602
|
-
# ========================================================================= #
|
603
|
-
# === run (run tag)
|
604
|
-
# ========================================================================= #
|
605
|
-
def run
|
606
|
-
super()
|
607
656
|
menu
|
657
|
+
|
658
|
+
::UniversalWidgets.set_main_window(window)
|
659
|
+
upon_delete_event_quit_the_application
|
660
|
+
window.use_this_font = font?
|
661
|
+
window.show_all
|
662
|
+
window.set_size_request(width?, height?)
|
663
|
+
window.set_default_size(width?, height?)
|
664
|
+
window.set_padding(padding?)
|
665
|
+
window.set_border_size(border_size?)
|
666
|
+
window.set_size_request(80, 100)
|
667
|
+
window.top_left
|
668
|
+
run_main
|
608
669
|
end
|
609
670
|
|
610
671
|
# ========================================================================= #
|
611
|
-
# === Bioroebe::GUI::
|
672
|
+
# === Bioroebe::GUI::UniversalWidgets::DnaToAminoacidWidget[]
|
612
673
|
# ========================================================================= #
|
613
674
|
def self.[](i = ARGV)
|
614
675
|
new(i)
|
@@ -620,15 +681,16 @@ class DnaToAminoacidWidget < ::Gtk::Box # === Bioroebe::GUI::Gtk::DnaToAminoacid
|
|
620
681
|
def self.run(
|
621
682
|
i = ARGV
|
622
683
|
)
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
r
|
627
|
-
r
|
628
|
-
end; self.instance_eval { alias run_gtk3_widget
|
684
|
+
r = ::Gtk.runner_factory(
|
685
|
+
::Bioroebe::GUI::Gtk::DnaToAminoacidWidget.new(i)
|
686
|
+
)
|
687
|
+
r.modify_background(:normal, :mintcream)
|
688
|
+
return r
|
689
|
+
end; self.instance_eval { alias run_gtk3_widget run } # === Bioroebe::GUI::Gtk::DnaToAminoacidWidget.run_gtk3_widget
|
690
|
+
self.instance_eval { alias start_gui_application run } # === Bioroebe::GUI::Gtk::DnaToAminoacidWidget.start_gui_application
|
629
691
|
|
630
692
|
end; end; end; end
|
631
693
|
|
632
694
|
if __FILE__ == $PROGRAM_NAME
|
633
|
-
Bioroebe::GUI::
|
634
|
-
end #
|
695
|
+
Bioroebe::GUI::UniversalWidgets::DnaToAminoacidWidget.new(ARGV)
|
696
|
+
end # gtkproteintodna
|