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
@@ -1,606 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby -w
|
2
|
-
# Encoding: UTF-8
|
3
|
-
# frozen_string_literal: true
|
4
|
-
# =========================================================================== #
|
5
|
-
# require 'bioroebe/constants/files_and_directories.rb'
|
6
|
-
# Bioroebe.load_and_return_the_restriction_enzymes
|
7
|
-
# Bioroebe.blosum_directory?
|
8
|
-
# =========================================================================== #
|
9
|
-
module Bioroebe
|
10
|
-
|
11
|
-
require 'bioroebe/project/project.rb'
|
12
|
-
require 'bioroebe/requires/require_yaml.rb'
|
13
|
-
|
14
|
-
# ========================================================================= #
|
15
|
-
# === FILE_HYDROPATHY_TABLE
|
16
|
-
# ========================================================================= #
|
17
|
-
FILE_HYDROPATHY_TABLE =
|
18
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}hydropathy_table.yml"
|
19
|
-
|
20
|
-
# ========================================================================= #
|
21
|
-
# === FILE_NUCLEAR_LOCALIZATION_SEQUENCES
|
22
|
-
# ========================================================================= #
|
23
|
-
FILE_NUCLEAR_LOCALIZATION_SEQUENCES =
|
24
|
-
"#{project_yaml_directory?}nuclear_localization_sequences.yml"
|
25
|
-
|
26
|
-
# ========================================================================= #
|
27
|
-
# === FILE_DEFAULT_COLOURS_FOR_THE_AMINOACIDS
|
28
|
-
# ========================================================================= #
|
29
|
-
FILE_DEFAULT_COLOURS_FOR_THE_AMINOACIDS =
|
30
|
-
"#{project_yaml_directory?}configuration/default_colours_for_the_aminoacids.yml"
|
31
|
-
|
32
|
-
# ========================================================================= #
|
33
|
-
# === FILE_BROWSER
|
34
|
-
# ========================================================================= #
|
35
|
-
FILE_BROWSER =
|
36
|
-
"#{project_yaml_directory?}configuration/browser.yml"
|
37
|
-
|
38
|
-
# ========================================================================= #
|
39
|
-
# === FILE_AMINOACIDS_MOLECULAR_FORMULA
|
40
|
-
# ========================================================================= #
|
41
|
-
FILE_AMINOACIDS_MOLECULAR_FORMULA =
|
42
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_molecular_formula.yml"
|
43
|
-
|
44
|
-
# ========================================================================= #
|
45
|
-
# === FILE_AMINOACIDS_THREE_TO_ONE
|
46
|
-
# ========================================================================= #
|
47
|
-
FILE_AMINOACIDS_THREE_TO_ONE =
|
48
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_three_to_one.yml"
|
49
|
-
|
50
|
-
# ========================================================================= #
|
51
|
-
# === FILE_WEIGHT_OF_COMMON_PROTEINS
|
52
|
-
# ========================================================================= #
|
53
|
-
FILE_WEIGHT_OF_COMMON_PROTEINS =
|
54
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}weight_of_common_proteins.yml"
|
55
|
-
|
56
|
-
# ========================================================================= #
|
57
|
-
# === FILE_AMINO_ACIDS_LONG_NAME_TO_ONE_LETTER
|
58
|
-
# ========================================================================= #
|
59
|
-
FILE_AMINO_ACIDS_LONG_NAME_TO_ONE_LETTER =
|
60
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_long_name_to_one_letter.yml"
|
61
|
-
|
62
|
-
# ========================================================================= #
|
63
|
-
# === FILE_AMINO_ACIDS_MOLECULAR_FORMULA
|
64
|
-
# ========================================================================= #
|
65
|
-
FILE_AMINO_ACIDS_MOLECULAR_FORMULA =
|
66
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_molecular_formula.yml"
|
67
|
-
|
68
|
-
# ========================================================================= #
|
69
|
-
# === FILE_AMINO_ACIDS_MASS_TABLE
|
70
|
-
#
|
71
|
-
# bl $BIOROEBE_YAML/aminoacids/amino_acids_monoisotopic_mass_table.yml
|
72
|
-
#
|
73
|
-
# ========================================================================= #
|
74
|
-
FILE_AMINO_ACIDS_MASS_TABLE =
|
75
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_monoisotopic_mass_table.yml"
|
76
|
-
|
77
|
-
# ========================================================================= #
|
78
|
-
# === FILE_AMINO_ACIDS
|
79
|
-
# ========================================================================= #
|
80
|
-
FILE_AMINO_ACIDS =
|
81
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids.yml"
|
82
|
-
|
83
|
-
# ========================================================================= #
|
84
|
-
# === Bioroebe.file_amino_acids
|
85
|
-
# ========================================================================= #
|
86
|
-
def self.file_amino_acids
|
87
|
-
FILE_AMINO_ACIDS
|
88
|
-
end
|
89
|
-
|
90
|
-
# ========================================================================= #
|
91
|
-
# === FILE_AMINO_ACIDS_ABBREVIATIONS
|
92
|
-
# ========================================================================= #
|
93
|
-
FILE_AMINO_ACIDS_ABBREVIATIONS =
|
94
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_abbreviations.yml"
|
95
|
-
|
96
|
-
# ========================================================================= #
|
97
|
-
# === Bioroebe.file_amino_acids_abbreviations
|
98
|
-
# ========================================================================= #
|
99
|
-
def self.file_amino_acids_abbreviations
|
100
|
-
FILE_AMINO_ACIDS_ABBREVIATIONS
|
101
|
-
end
|
102
|
-
|
103
|
-
# ========================================================================= #
|
104
|
-
# === AMINO_ACIDS_ABBREVIATIONS
|
105
|
-
# ========================================================================= #
|
106
|
-
if File.exist? FILE_AMINO_ACIDS_ABBREVIATIONS
|
107
|
-
begin
|
108
|
-
# $BIOROEBE/amino_acids_abbreviations.yml
|
109
|
-
AMINO_ACIDS_ABBREVIATIONS = YAML.load_file(FILE_AMINO_ACIDS_ABBREVIATIONS)
|
110
|
-
rescue Psych::SyntaxError => error
|
111
|
-
pp error
|
112
|
-
AMINO_ACIDS_ABBREVIATIONS = {}
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
|
-
# ========================================================================= #
|
117
|
-
# === DIRECTORY_CODON_TABLES_FREQUENCIES
|
118
|
-
#
|
119
|
-
# This constant may point to a directory such as:
|
120
|
-
#
|
121
|
-
# /home/Programs/Ruby/2.7.0/lib/ruby/site_ruby/2.7.0/bioroebe/codon_tables/frequencies/
|
122
|
-
#
|
123
|
-
# ========================================================================= #
|
124
|
-
DIRECTORY_CODON_TABLES_FREQUENCIES =
|
125
|
-
"#{CODON_TABLES_DIRECTORY}frequencies/"
|
126
|
-
|
127
|
-
# ========================================================================= #
|
128
|
-
# === Bioroebe.directory_frequencies?
|
129
|
-
#
|
130
|
-
# Preferentially use this method past the year 2022 - it is a tiny bit
|
131
|
-
# more flexible than the above constant.
|
132
|
-
# ========================================================================= #
|
133
|
-
def self.directory_frequencies?(
|
134
|
-
codon_tables_directory = CODON_TABLES_DIRECTORY
|
135
|
-
)
|
136
|
-
"#{codon_tables_directory}frequencies/"
|
137
|
-
end
|
138
|
-
|
139
|
-
# ========================================================================= #
|
140
|
-
# === FILE_NUCLEOTIDES
|
141
|
-
# ========================================================================= #
|
142
|
-
FILE_NUCLEOTIDES =
|
143
|
-
"#{project_yaml_directory?}nucleotides/nucleotides.yml"
|
144
|
-
|
145
|
-
# ========================================================================= #
|
146
|
-
# === NUCLEOTIDES
|
147
|
-
# ========================================================================= #
|
148
|
-
if File.exist? FILE_NUCLEOTIDES
|
149
|
-
NUCLEOTIDES = YAML.load_file(FILE_NUCLEOTIDES)
|
150
|
-
else
|
151
|
-
NUCLEOTIDES = nil
|
152
|
-
end
|
153
|
-
|
154
|
-
require 'bioroebe/toplevel_methods/log_directory.rb'
|
155
|
-
# ========================================================================= #
|
156
|
-
# === Bioroebe.file_statistics?
|
157
|
-
#
|
158
|
-
# This file can normally be found here:
|
159
|
-
#
|
160
|
-
# $BIOROEBE/yaml/statistics.yml
|
161
|
-
#
|
162
|
-
# ========================================================================= #
|
163
|
-
def self.file_statistics?
|
164
|
-
"#{Bioroebe.log_dir?}statistics.yml"
|
165
|
-
end
|
166
|
-
|
167
|
-
# ========================================================================= #
|
168
|
-
# === Bioroebe.fasta_dir?
|
169
|
-
# ========================================================================= #
|
170
|
-
def self.fasta_dir?
|
171
|
-
"#{Bioroebe.log_dir?}fasta/"
|
172
|
-
end
|
173
|
-
|
174
|
-
# ========================================================================= #
|
175
|
-
# === Bioroebe.file_fastq_quality_schemes
|
176
|
-
#
|
177
|
-
# This constant will point to a location such as this one here:
|
178
|
-
#
|
179
|
-
# /Programs/Ruby/2.6.4/lib/ruby/site_ruby/2.6.0/bioroebe/yaml/fastq_quality_schemes.yml
|
180
|
-
#
|
181
|
-
# ========================================================================= #
|
182
|
-
def self.file_fastq_quality_schemes
|
183
|
-
"#{project_yaml_directory?}fasta_and_fastq/fastq_quality_schemes.yml"
|
184
|
-
end
|
185
|
-
|
186
|
-
# ========================================================================= #
|
187
|
-
# === Bioroebe.file_talens
|
188
|
-
# ========================================================================= #
|
189
|
-
def self.file_talens
|
190
|
-
"#{project_yaml_directory?}talens.yml"
|
191
|
-
end
|
192
|
-
|
193
|
-
# ========================================================================= #
|
194
|
-
# === FILE_GFP_SEQUENCE
|
195
|
-
# ========================================================================= #
|
196
|
-
FILE_GFP_SEQUENCE =
|
197
|
-
"#{project_yaml_directory?}sequences/"\
|
198
|
-
"JX472995_Green_fluorescent_protein_from_Aequorea_victoria.fasta"
|
199
|
-
|
200
|
-
# ========================================================================= #
|
201
|
-
# === FILE_RESTRICTION_ENZYMES
|
202
|
-
#
|
203
|
-
# bl $BIOROEBE/yaml/restriction/enzymes/restriction_enzymes.yml
|
204
|
-
# ========================================================================= #
|
205
|
-
FILE_RESTRICTION_ENZYMES =
|
206
|
-
"#{project_yaml_directory?}restriction_enzymes/restriction_enzymes.yml"
|
207
|
-
|
208
|
-
# ========================================================================= #
|
209
|
-
# === FILE_COLOURIZE_FASTA_SEQUENCES
|
210
|
-
#
|
211
|
-
# This constants points to the .yml file that will hold information
|
212
|
-
# in how to colourize the FASTA sequences.
|
213
|
-
# ========================================================================= #
|
214
|
-
FILE_COLOURIZE_FASTA_SEQUENCES =
|
215
|
-
"#{project_yaml_directory?}configuration/colourize_fasta_sequences.yml"
|
216
|
-
|
217
|
-
# ========================================================================= #
|
218
|
-
# === FILE_BLOSUM45
|
219
|
-
# ========================================================================= #
|
220
|
-
FILE_BLOSUM45 = "#{BLOSUM_DIRECTORY}/blosum45.yml"
|
221
|
-
|
222
|
-
# ========================================================================= #
|
223
|
-
# === FILE_BLOSUM50
|
224
|
-
# ========================================================================= #
|
225
|
-
FILE_BLOSUM50 = "#{BLOSUM_DIRECTORY}/blosum50.yml"
|
226
|
-
|
227
|
-
# ========================================================================= #
|
228
|
-
# === FILE_BLOSUM62
|
229
|
-
# ========================================================================= #
|
230
|
-
FILE_BLOSUM62 = "#{BLOSUM_DIRECTORY}/blosum62.yml"
|
231
|
-
|
232
|
-
# ========================================================================= #
|
233
|
-
# === FILE_BLOSUM80
|
234
|
-
# ========================================================================= #
|
235
|
-
FILE_BLOSUM80 = "#{BLOSUM_DIRECTORY}/blosum80.yml"
|
236
|
-
|
237
|
-
# ========================================================================= #
|
238
|
-
# === FILE_BLOSUM90
|
239
|
-
# ========================================================================= #
|
240
|
-
FILE_BLOSUM90 = "#{BLOSUM_DIRECTORY}/blosum90.yml"
|
241
|
-
|
242
|
-
# ========================================================================= #
|
243
|
-
# === BLOSUM_MATRIX
|
244
|
-
# ========================================================================= #
|
245
|
-
FILE_BLOSUM_MATRIX = "#{BLOSUM_DIRECTORY}blosum_matrix.yml"
|
246
|
-
|
247
|
-
# ========================================================================= #
|
248
|
-
# === Bioroebe.blosum_matrix
|
249
|
-
# ========================================================================= #
|
250
|
-
def self.blosum_matrix(i = FILE_BLOSUM_MATRIX)
|
251
|
-
YAML.load_file(i)
|
252
|
-
end
|
253
|
-
|
254
|
-
# ========================================================================= #
|
255
|
-
# === HYDROPATHY_TABLE
|
256
|
-
# ========================================================================= #
|
257
|
-
if File.exist? FILE_HYDROPATHY_TABLE
|
258
|
-
HYDROPATHY_TABLE =
|
259
|
-
YAML.load_file(
|
260
|
-
FILE_HYDROPATHY_TABLE
|
261
|
-
)
|
262
|
-
end
|
263
|
-
|
264
|
-
# ========================================================================= #
|
265
|
-
# === FILE_CHROMOSOME_NUMBERS
|
266
|
-
# ========================================================================= #
|
267
|
-
FILE_CHROMOSOME_NUMBERS =
|
268
|
-
"#{project_yaml_directory?}chromosomes/chromosome_numbers.yml"
|
269
|
-
|
270
|
-
# ========================================================================= #
|
271
|
-
# === FILE_AMINO_ACIDS_FREQUENCY
|
272
|
-
# ========================================================================= #
|
273
|
-
FILE_AMINO_ACIDS_FREQUENCY =
|
274
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_frequency.yml"
|
275
|
-
|
276
|
-
# ========================================================================= #
|
277
|
-
# === Bioroebe.file_amino_acids_frequency
|
278
|
-
# ========================================================================= #
|
279
|
-
def self.file_amino_acids_frequency
|
280
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_frequency.yml"
|
281
|
-
end
|
282
|
-
|
283
|
-
# ========================================================================= #
|
284
|
-
# === FILE_AMINO_ACIDS_RESTE_YAML
|
285
|
-
# ========================================================================= #
|
286
|
-
FILE_AMINO_ACIDS_RESTE_YAML =
|
287
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_reste.yml"
|
288
|
-
|
289
|
-
# ========================================================================= #
|
290
|
-
# === FILE_AMINO_ACIDS_THREE_TO_ONE
|
291
|
-
#
|
292
|
-
# We'll keep the keys downcased.
|
293
|
-
#
|
294
|
-
# bl $RUBY_SRC/bioroebe/lib/bioroebe/yaml/aminoacids/amino_acids_three_to_one.yml
|
295
|
-
#
|
296
|
-
# ========================================================================= #
|
297
|
-
FILE_AMINO_ACIDS_THREE_TO_ONE =
|
298
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_three_to_one.yml"
|
299
|
-
|
300
|
-
# ========================================================================= #
|
301
|
-
# === FILE_AMINO_ACIDS_AVERAGE_MASS_TABLE
|
302
|
-
#
|
303
|
-
# This will point to the file amino_acids_average_mass_table.yml.
|
304
|
-
# ========================================================================= #
|
305
|
-
FILE_AMINO_ACIDS_AVERAGE_MASS_TABLE =
|
306
|
-
"#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_average_mass_table.yml"
|
307
|
-
|
308
|
-
# ========================================================================= #
|
309
|
-
# === FILE_NUCLEOTIDES_WEIGHT
|
310
|
-
#
|
311
|
-
# The path to the file that holds the weight of the nucleotides.
|
312
|
-
# ========================================================================= #
|
313
|
-
FILE_NUCLEOTIDES_WEIGHT =
|
314
|
-
"#{project_yaml_directory?}nucleotides/nucleotides_weight.yml"
|
315
|
-
|
316
|
-
# ========================================================================= #
|
317
|
-
# === Bioroebe.load_and_return_the_restriction_enzymes
|
318
|
-
#
|
319
|
-
# This method will load, and then return the restriction enzymes that
|
320
|
-
# are bundled within the bioroebe-project.
|
321
|
-
# ========================================================================= #
|
322
|
-
def self.load_and_return_the_restriction_enzymes
|
323
|
-
YAML.load_file(FILE_RESTRICTION_ENZYMES)
|
324
|
-
end
|
325
|
-
|
326
|
-
# ========================================================================= #
|
327
|
-
# === Bioroebe.file_restriction_enzymes
|
328
|
-
# ========================================================================= #
|
329
|
-
def self.file_restriction_enzymes
|
330
|
-
FILE_RESTRICTION_ENZYMES
|
331
|
-
end
|
332
|
-
|
333
|
-
# ========================================================================= #
|
334
|
-
# === file_restriction_enzymes
|
335
|
-
# ========================================================================= #
|
336
|
-
def file_restriction_enzymes
|
337
|
-
::Bioroebe.file_restriction_enzymes
|
338
|
-
end
|
339
|
-
|
340
|
-
# ========================================================================= #
|
341
|
-
# === Bioroebe.blosum_directory?
|
342
|
-
# ========================================================================= #
|
343
|
-
def self.blosum_directory?
|
344
|
-
"#{project_yaml_directory?}blosum/"
|
345
|
-
end
|
346
|
-
|
347
|
-
# ========================================================================= #
|
348
|
-
# === AMINO_ACIDS_MOLECULAR_FORMULA
|
349
|
-
# ========================================================================= #
|
350
|
-
if File.exist? FILE_AMINO_ACIDS_MOLECULAR_FORMULA
|
351
|
-
AMINO_ACIDS_MOLECULAR_FORMULA = YAML.load_file(
|
352
|
-
FILE_AMINO_ACIDS_MOLECULAR_FORMULA
|
353
|
-
)
|
354
|
-
end
|
355
|
-
|
356
|
-
# ========================================================================= #
|
357
|
-
# === AMINO_ACIDS_RESTE
|
358
|
-
# ========================================================================= #
|
359
|
-
if File.exist? FILE_AMINO_ACIDS_RESTE_YAML
|
360
|
-
hash = {}
|
361
|
-
begin
|
362
|
-
_ = YAML.load_file(FILE_AMINO_ACIDS_RESTE_YAML)
|
363
|
-
# ======================================================================= #
|
364
|
-
# As of August 2015, we will keep the keys downcased.
|
365
|
-
# ======================================================================= #
|
366
|
-
_.each_pair {|key, value|
|
367
|
-
key = key.dup if key.frozen?
|
368
|
-
key.downcase!
|
369
|
-
hash[key] = value
|
370
|
-
}
|
371
|
-
AMINO_ACIDS_RESTE = hash
|
372
|
-
rescue Psych::SyntaxError
|
373
|
-
AMINO_ACIDS_RESTE = {}
|
374
|
-
end
|
375
|
-
else
|
376
|
-
AMINO_ACIDS_RESTE = {}
|
377
|
-
end
|
378
|
-
|
379
|
-
# ========================================================================= #
|
380
|
-
# === AMINO_ACIDS_LONG_NAME_TO_ONE_LETTER
|
381
|
-
#
|
382
|
-
# Load up the dataset stored in the file
|
383
|
-
# amino_acids_long_name_to_one_letter.yml.
|
384
|
-
# ========================================================================= #
|
385
|
-
_ = FILE_AMINO_ACIDS_LONG_NAME_TO_ONE_LETTER
|
386
|
-
if File.exist? _
|
387
|
-
AMINO_ACIDS_LONG_NAME_TO_ONE_LETTER = YAML.load_file(_)
|
388
|
-
else
|
389
|
-
puts "No file exists at #{_}."
|
390
|
-
end
|
391
|
-
|
392
|
-
# ========================================================================= #
|
393
|
-
# === AMINO_ACIDS_MASS_TABLE
|
394
|
-
# ========================================================================= #
|
395
|
-
if File.exist? FILE_AMINO_ACIDS_MASS_TABLE # bl $BIOROEBE/yaml/amino_acids_mass_table.yml
|
396
|
-
AMINO_ACIDS_MASS_TABLE = YAML.load_file(FILE_AMINO_ACIDS_MASS_TABLE)
|
397
|
-
else # Else hardcode the AminoAcid table here. This may no longer be necessary, though.
|
398
|
-
AMINO_ACIDS_MASS_TABLE = {
|
399
|
-
'A' => 71.03711, 'C' => 103.00919, 'D' => 115.02694,
|
400
|
-
'E' => 129.04259, 'F' => 147.06841, 'G' => 57.02146,
|
401
|
-
'H' => 137.05891, 'I' => 113.08406, 'K' => 128.09496,
|
402
|
-
'L' => 113.08406, 'M' => 131.04049, 'N' => 114.04293,
|
403
|
-
'P' => 97.05276, 'Q' => 128.05858, 'R' => 156.10111,
|
404
|
-
'S' => 87.03203, 'T' => 101.04768, 'V' => 99.06841,
|
405
|
-
'W' => 186.07931, 'Y' => 163.06333
|
406
|
-
}
|
407
|
-
end; AMINO_ACIDS_AVERAGE_MONOISOTOPIC_TABLE = AMINO_ACIDS_MASS_TABLE # An alias.
|
408
|
-
|
409
|
-
|
410
|
-
# ========================================================================= #
|
411
|
-
# Next determine some important constants.
|
412
|
-
# ========================================================================= #
|
413
|
-
if File.exist? FILE_AMINO_ACIDS
|
414
|
-
# ======================================================================= #
|
415
|
-
# === Bioroebe::AMINO_ACIDS
|
416
|
-
#
|
417
|
-
# Currently listing 21 AminoAcids from amino_acids.yml
|
418
|
-
#
|
419
|
-
# bl $BIOROEBE/yaml/aminoacids/amino_acids.yml
|
420
|
-
#
|
421
|
-
# ======================================================================= #
|
422
|
-
AMINO_ACIDS = YAML.load_file(
|
423
|
-
FILE_AMINO_ACIDS
|
424
|
-
)
|
425
|
-
# ======================================================================= #
|
426
|
-
# === ::Bioroebe::AMINO_ACIDS_ENGLISH
|
427
|
-
# ======================================================================= #
|
428
|
-
FILE_AMINO_ACIDS_ENGLISH = YAML.load_file("#{BIOROEBE_YAML_AMINOACIDS_DIRECTORY}amino_acids_english.yml")
|
429
|
-
AMINO_ACIDS_ENGLISH = FILE_AMINO_ACIDS_ENGLISH # === AMINO_ACIDS_ENGLISH
|
430
|
-
end
|
431
|
-
|
432
|
-
# ========================================================================= #
|
433
|
-
# === Bioroebe.aminoacids?
|
434
|
-
#
|
435
|
-
# Note that this will return a Hash that looks like this:
|
436
|
-
#
|
437
|
-
# {"A"=>{"ala"=>"alanine", "d
|
438
|
-
#
|
439
|
-
# ========================================================================= #
|
440
|
-
def self.aminoacids?
|
441
|
-
AMINO_ACIDS
|
442
|
-
end
|
443
|
-
|
444
|
-
# ========================================================================= #
|
445
|
-
# === AMINO_ACIDS_AVERAGE_MASS_TABLE
|
446
|
-
#
|
447
|
-
# And here is the average mass table.
|
448
|
-
# ========================================================================= #
|
449
|
-
if File.exist? FILE_AMINO_ACIDS_AVERAGE_MASS_TABLE # bl $BIOROEBE/yaml/aminoacids/amino_acids_average_mass_table.yml
|
450
|
-
AMINO_ACIDS_AVERAGE_MASS_TABLE = YAML.load_file(FILE_AMINO_ACIDS_AVERAGE_MASS_TABLE)
|
451
|
-
else # Else simply hardcode the AminoAcid table here.
|
452
|
-
AMINO_ACIDS_AVERAGE_MASS_TABLE = {
|
453
|
-
'A' => 71.0788,
|
454
|
-
'C' => 103.1388,
|
455
|
-
'D' => 115.0886,
|
456
|
-
'E' => 129.1155,
|
457
|
-
'F' => 147.1766,
|
458
|
-
'G' => 57.0519,
|
459
|
-
'H' => 137.1411,
|
460
|
-
'I' => 113.1594,
|
461
|
-
'K' => 128.1741,
|
462
|
-
'L' => 113.1594,
|
463
|
-
'M' => 131.1926,
|
464
|
-
'N' => 114.1038,
|
465
|
-
'P' => 97.1167,
|
466
|
-
'Q' => 128.1307,
|
467
|
-
'R' => 156.1875,
|
468
|
-
'S' => 87.0782,
|
469
|
-
'T' => 101.1051,
|
470
|
-
'V' => 99.1326,
|
471
|
-
'W' => 186.2132,
|
472
|
-
'Y' => 163.1760
|
473
|
-
}
|
474
|
-
end
|
475
|
-
|
476
|
-
# ========================================================================= #
|
477
|
-
# === AMINO_ACIDS_THREE_TO_ONE
|
478
|
-
#
|
479
|
-
# An "alias" to this constant exists, named AA_THREE_TO_ONE.
|
480
|
-
#
|
481
|
-
# bl $BIOROEBE/yaml/aminoacids/amino_acids_three_to_one.yml
|
482
|
-
#
|
483
|
-
# ========================================================================= #
|
484
|
-
if File.exist? FILE_AMINO_ACIDS_THREE_TO_ONE
|
485
|
-
hash = {}
|
486
|
-
YAML.load_file(
|
487
|
-
FILE_AMINO_ACIDS_THREE_TO_ONE
|
488
|
-
).each {|key, value|
|
489
|
-
hash[key.to_s.downcase] = value
|
490
|
-
}
|
491
|
-
AMINO_ACIDS_THREE_TO_ONE = hash
|
492
|
-
# AA_THREE_TO_ONE = AMINO_ACIDS_THREE_TO_ONE # Legacy pointer. Is mildly deprecated.
|
493
|
-
# ^^^ Disabled as of 25.03.2020. Use the longer variant instead.
|
494
|
-
end
|
495
|
-
|
496
|
-
# ========================================================================= #
|
497
|
-
# === NUCLEAR_LOCALIZATION_SEQUENCES
|
498
|
-
#
|
499
|
-
# We must be careful and check whether it exists or not.
|
500
|
-
# ========================================================================= #
|
501
|
-
_ = FILE_NUCLEAR_LOCALIZATION_SEQUENCES
|
502
|
-
if File.exist? _
|
503
|
-
begin
|
504
|
-
NUCLEAR_LOCALIZATION_SEQUENCES = YAML.load_file(_)
|
505
|
-
# ======================================================================= #
|
506
|
-
# === Bioroebe::ARRAY_NLS_SEQUENCES
|
507
|
-
#
|
508
|
-
# All NLS sequences should be registered here.
|
509
|
-
# ======================================================================= #
|
510
|
-
ARRAY_NLS_SEQUENCES = NUCLEAR_LOCALIZATION_SEQUENCES.values.map {|entry|
|
511
|
-
entry = entry[0, entry.index(' ')] if entry.include? ' '
|
512
|
-
entry.delete!('[') if entry.include? '['
|
513
|
-
entry.delete!(']') if entry.include? ']'
|
514
|
-
entry
|
515
|
-
}
|
516
|
-
rescue Psych::SyntaxError => error
|
517
|
-
pp error
|
518
|
-
ARRAY_NLS_SEQUENCES = []
|
519
|
-
end
|
520
|
-
else
|
521
|
-
NUCLEAR_LOCALIZATION_SEQUENCES = ''
|
522
|
-
ARRAY_NLS_SEQUENCES = []
|
523
|
-
end
|
524
|
-
|
525
|
-
# ========================================================================= #
|
526
|
-
# === Bioroebe.random_aminoacid?
|
527
|
-
#
|
528
|
-
# This method will return a random aminoacid.
|
529
|
-
#
|
530
|
-
# A number can be passed to this method, which specifies how many
|
531
|
-
# random aminoacids are to be returned, e. g. 20 as argument refers
|
532
|
-
# to 20 aminoacids that will be generated here.
|
533
|
-
#
|
534
|
-
# Usage example:
|
535
|
-
#
|
536
|
-
# Bioroebe.random_aminoacid? 20 # => "UAVHYQQESWUYAOVESEIY"
|
537
|
-
#
|
538
|
-
# ========================================================================= #
|
539
|
-
def self.random_aminoacid?(optional_return_n_aminoacids = 1)
|
540
|
-
case optional_return_n_aminoacids
|
541
|
-
when 1
|
542
|
-
AMINO_ACIDS.keys.sample # This should be a bit faster.
|
543
|
-
else
|
544
|
-
optional_return_n_aminoacids.to_i.times.map {
|
545
|
-
AMINO_ACIDS.keys.sample
|
546
|
-
}.join.strip
|
547
|
-
end
|
548
|
-
end; self.instance_eval { alias random_aminoacid random_aminoacid? } # === Bioroebe.random_aminoacid
|
549
|
-
self.instance_eval { alias return_random_aminoacid random_aminoacid? } # === Bioroebe.return_random_aminoacid
|
550
|
-
|
551
|
-
# ========================================================================= #
|
552
|
-
# === Bioroebe.return_array_of_common_aminoacids
|
553
|
-
# ========================================================================= #
|
554
|
-
def self.return_array_of_common_aminoacids
|
555
|
-
AMINO_ACIDS.keys - ['O'] - ['U']
|
556
|
-
end
|
557
|
-
|
558
|
-
# ========================================================================= #
|
559
|
-
# === FILE_ALU_ELEMENTS
|
560
|
-
# ========================================================================= #
|
561
|
-
# FILE_ALU_ELEMENTS =
|
562
|
-
# "#{project_yaml_directory?}alu_elements.yml"
|
563
|
-
|
564
|
-
# ========================================================================= #
|
565
|
-
# === Bioroebe.file_molecular_weight
|
566
|
-
# ========================================================================= #
|
567
|
-
def self.file_molecular_weight
|
568
|
-
"#{project_yaml_directory?}aminoacids/molecular_weight.yml"
|
569
|
-
end
|
570
|
-
|
571
|
-
# ========================================================================= #
|
572
|
-
# === Bioroebe.file_amino_acids_long_name_to_one_letter
|
573
|
-
#
|
574
|
-
# This method will return a String such as:
|
575
|
-
#
|
576
|
-
# "/home/Programs/Ruby/3.1.2/lib/ruby/site_ruby/3.1.0/bioroebe/yaml/aminoacids/amino_acids_long_name_to_one_letter.yml"
|
577
|
-
#
|
578
|
-
# ========================================================================= #
|
579
|
-
def self.file_amino_acids_long_name_to_one_letter
|
580
|
-
"#{project_yaml_directory?}aminoacids/amino_acids_long_name_to_one_letter.yml"
|
581
|
-
end
|
582
|
-
|
583
|
-
end
|
584
|
-
|
585
|
-
if __FILE__ == $PROGRAM_NAME
|
586
|
-
alias e puts
|
587
|
-
include Bioroebe
|
588
|
-
e FILE_FASTQ_QUALITY_SCHEMES
|
589
|
-
pp NUCLEOTIDES
|
590
|
-
e 'Restriction enzymes can be found here: '+
|
591
|
-
FILE_RESTRICTION_ENZYMES
|
592
|
-
e FILE_HYDROPATHY_TABLE
|
593
|
-
pp HYDROPATHY_TABLE
|
594
|
-
e '='*80
|
595
|
-
e FILE_AMINO_ACIDS_FREQUENCY
|
596
|
-
e FILE_NUCLEOTIDES_WEIGHT
|
597
|
-
e FILE_AMINOACIDS_MOLECULAR_FORMULA
|
598
|
-
e FILE_AMINOACIDS_THREE_TO_ONE
|
599
|
-
e '='*80
|
600
|
-
pp AMINO_ACIDS
|
601
|
-
e '='*80
|
602
|
-
pp AMINO_ACIDS_AVERAGE_MASS_TABLE
|
603
|
-
e '='*80
|
604
|
-
pp AMINO_ACIDS_THREE_TO_ONE
|
605
|
-
e '='*80
|
606
|
-
end
|