bioroebe 0.10.80 → 0.12.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3946 -2817
- data/bin/bioroebe +13 -2
- data/bin/bioroebe_hash +7 -0
- data/bin/codon_to_aminoacid +6 -4
- data/bin/compacter +7 -0
- data/bin/plain_palindrome +7 -0
- data/bioroebe.gemspec +3 -3
- data/doc/README.gen +3918 -2793
- data/doc/quality_control/commandline_applications.md +3 -3
- data/doc/statistics/statistics.md +7 -7
- data/doc/todo/bioroebe_GUI_todo.md +19 -14
- data/doc/todo/bioroebe_java_todo.md +22 -0
- data/doc/todo/bioroebe_todo.md +2075 -2620
- data/lib/bioroebe/C++/DNA.cpp +69 -0
- data/lib/bioroebe/C++/RNA.cpp +58 -0
- data/lib/bioroebe/C++/sequence.cpp +35 -0
- data/lib/bioroebe/abstract/README.md +1 -0
- data/lib/bioroebe/abstract/features.rb +29 -0
- data/lib/bioroebe/aminoacids/aminoacid_substitution.rb +1 -9
- data/lib/bioroebe/aminoacids/codon_percentage.rb +1 -9
- data/lib/bioroebe/aminoacids/deduce_aminoacid_sequence.rb +1 -9
- data/lib/bioroebe/aminoacids/display_aminoacid_table.rb +1 -0
- data/lib/bioroebe/aminoacids/show_hydrophobicity.rb +1 -6
- data/lib/bioroebe/base/base_module/base_module.rb +36 -0
- data/lib/bioroebe/base/colours_for_base/colours_for_base.rb +18 -8
- data/lib/bioroebe/base/commandline_application/commandline_application.rb +13 -9
- data/lib/bioroebe/base/commandline_application/commandline_arguments.rb +24 -19
- data/lib/bioroebe/base/commandline_application/misc.rb +66 -49
- data/lib/bioroebe/base/commandline_application/opn.rb +8 -8
- data/lib/bioroebe/base/commandline_application/reset.rb +5 -3
- data/lib/bioroebe/base/internal_hash_module/internal_hash_module.rb +42 -0
- data/lib/bioroebe/base/misc.rb +35 -0
- data/lib/bioroebe/base/prototype/misc.rb +15 -9
- data/lib/bioroebe/base/prototype/reset.rb +10 -0
- data/lib/bioroebe/cleave_and_digest/digestion.rb +10 -2
- data/lib/bioroebe/cleave_and_digest/trypsin.rb +104 -50
- data/lib/bioroebe/codon_tables/frequencies/parse_frequency_table.rb +2 -10
- data/lib/bioroebe/codons/codons.rb +1 -1
- data/lib/bioroebe/codons/convert_this_codon_to_that_aminoacid.rb +208 -59
- data/lib/bioroebe/codons/possible_codons_for_this_aminoacid.rb +1 -9
- data/lib/bioroebe/codons/show_codon_tables.rb +8 -3
- data/lib/bioroebe/codons/show_codon_usage.rb +15 -4
- data/lib/bioroebe/colours/rev.rb +4 -1
- data/lib/bioroebe/constants/aminoacids_and_proteins.rb +1 -0
- data/lib/bioroebe/constants/database_constants.rb +1 -1
- data/lib/bioroebe/constants/files_and_directories.rb +31 -4
- data/lib/bioroebe/constants/misc.rb +20 -0
- data/lib/bioroebe/constants/nucleotides.rb +7 -0
- data/lib/bioroebe/conversions/dna_to_aminoacid_sequence.rb +109 -39
- data/lib/bioroebe/count/count_amount_of_aminoacids.rb +3 -2
- data/lib/bioroebe/count/count_amount_of_nucleotides.rb +3 -0
- data/lib/bioroebe/cpp +1 -0
- data/lib/bioroebe/crystal/README.md +2 -0
- data/lib/bioroebe/crystal/to_rna.cr +19 -0
- data/lib/bioroebe/data/README.md +11 -8
- data/lib/bioroebe/data/electron_microscopy/pos_example.pos +396 -0
- data/lib/bioroebe/data/electron_microscopy/test_particles.star +36 -0
- data/lib/bioroebe/data/fasta/human/Homo_sapiens_hemoglobin_subunit_alpha_HBB_mRNA.fasta +9 -0
- data/lib/bioroebe/data/fasta/human/Homo_sapiens_hemoglobin_subunit_beta_HBB_mRNA.fasta +8 -0
- data/lib/bioroebe/data/fasta/human/README.md +2 -0
- data/lib/bioroebe/dotplots/advanced_dotplot.rb +1 -1
- data/lib/bioroebe/electron_microscopy/coordinate_analyzer.rb +15 -18
- data/lib/bioroebe/{fasta_and_fastq/parse_fasta/run.rb → electron_microscopy/electron_microscopy_module.rb} +16 -8
- data/lib/bioroebe/electron_microscopy/fix_pos_file.rb +1 -9
- data/lib/bioroebe/electron_microscopy/flipy.rb +83 -0
- data/lib/bioroebe/electron_microscopy/parse_coordinates.rb +2 -10
- data/lib/bioroebe/electron_microscopy/read_file_xmd.rb +1 -9
- data/lib/bioroebe/electron_microscopy/simple_star_file_generator.rb +4 -9
- data/lib/bioroebe/enzymes/has_this_restriction_enzyme.rb +10 -3
- data/lib/bioroebe/enzymes/restriction_enzyme.rb +23 -1
- data/lib/bioroebe/enzymes/restriction_enzymes/statistics.rb +65 -0
- data/lib/bioroebe/fasta_and_fastq/autocorrect_the_name_of_this_fasta_file.rb +1 -9
- data/lib/bioroebe/fasta_and_fastq/compact_fasta_file/compact_fasta_file.rb +7 -9
- data/lib/bioroebe/fasta_and_fastq/fasta_defline/fasta_defline.rb +1 -5
- data/lib/bioroebe/fasta_and_fastq/fasta_to_yaml/fasta_to_yaml.rb +81 -0
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/parse_fasta.rb +1518 -7
- data/lib/bioroebe/fasta_and_fastq/return_fasta_subsection_of_this_file.rb +11 -2
- data/lib/bioroebe/fasta_and_fastq/show_fasta_headers.rb +27 -12
- data/lib/bioroebe/fasta_and_fastq/simplify_fasta_header/simplify_fasta_header.rb +1 -5
- data/lib/bioroebe/fasta_and_fastq/split_this_fasta_file_into_chromosomes/constants.rb +0 -5
- data/lib/bioroebe/genome/README.md +4 -0
- data/lib/bioroebe/genome/genome.rb +130 -0
- data/lib/bioroebe/genomes/genome_pattern.rb +3 -9
- data/lib/bioroebe/gui/gtk +1 -0
- data/lib/bioroebe/gui/gtk3/alignment/alignment.rb +106 -137
- data/lib/bioroebe/gui/gtk3/aminoacid_composition/aminoacid_composition.rb +27 -61
- data/lib/bioroebe/gui/gtk3/aminoacid_composition/customized_dialog.rb +1 -1
- data/lib/bioroebe/gui/gtk3/blosum_matrix_viewer/blosum_matrix_viewer.rb +1 -2
- data/lib/bioroebe/gui/gtk3/calculate_cell_numbers_of_bacteria/calculate_cell_numbers_of_bacteria.rb +1 -2
- data/lib/bioroebe/gui/gtk3/controller/controller.rb +46 -29
- data/lib/bioroebe/gui/gtk3/dna_to_aminoacid_widget/dna_to_aminoacid_widget.rb +77 -52
- data/lib/bioroebe/gui/gtk3/dna_to_reverse_complement_widget/dna_to_reverse_complement_widget.rb +1 -2
- data/lib/bioroebe/gui/gtk3/fasta_table_widget/fasta_table_widget.rb +100 -23
- data/lib/bioroebe/gui/gtk3/format_converter/format_converter.rb +1 -2
- data/lib/bioroebe/gui/gtk3/gene/gene.rb +1 -2
- data/lib/bioroebe/gui/gtk3/hamming_distance/hamming_distance.rb +43 -30
- data/lib/bioroebe/gui/gtk3/levensthein_distance/levensthein_distance.rb +1 -2
- data/lib/bioroebe/gui/gtk3/nucleotide_analyser/nucleotide_analyser.rb +120 -73
- data/lib/bioroebe/gui/gtk3/primer_design_widget/primer_design_widget.rb +1 -2
- data/lib/bioroebe/gui/gtk3/protein_to_DNA/protein_to_DNA.rb +19 -20
- data/lib/bioroebe/gui/gtk3/random_sequence/random_sequence.rb +20 -13
- data/lib/bioroebe/gui/gtk3/restriction_enzymes/restriction_enzymes.rb +1 -2
- data/lib/bioroebe/gui/gtk3/show_codon_table/misc.rb +97 -22
- data/lib/bioroebe/gui/gtk3/show_codon_table/show_codon_table.rb +3 -73
- data/lib/bioroebe/gui/gtk3/show_codon_usage/show_codon_usage.rb +1 -2
- data/lib/bioroebe/gui/gtk3/sizeseq/sizeseq.rb +1 -2
- data/lib/bioroebe/gui/gtk3/three_to_one/three_to_one.rb +1 -2
- data/lib/bioroebe/gui/gtk3/www_finder/www_finder.rb +1 -2
- data/lib/bioroebe/gui/javafx/bioroebe/Bioroebe.class +0 -0
- data/lib/bioroebe/gui/javafx/bioroebe/Bioroebe.java +104 -0
- data/lib/bioroebe/gui/javafx/bioroebe.jar +0 -0
- data/lib/bioroebe/gui/javafx/bioroebe.mf +1 -0
- data/lib/bioroebe/gui/javafx/module-info.class +0 -0
- data/lib/bioroebe/gui/javafx/module-info.java +5 -0
- data/lib/bioroebe/gui/jruby/alignment/alignment.rb +165 -0
- data/lib/bioroebe/gui/jruby/aminoacid_composition/aminoacid_composition.rb +166 -0
- data/lib/bioroebe/gui/libui/alignment/alignment.rb +3 -1
- data/lib/bioroebe/gui/libui/controller/controller.rb +116 -0
- data/lib/bioroebe/gui/libui/random_sequence/random_sequence.rb +18 -2
- data/lib/bioroebe/gui/libui/show_codon_table/show_codon_table.rb +2 -0
- data/lib/bioroebe/gui/libui/three_to_one/three_to_one.rb +8 -6
- data/lib/bioroebe/gui/shared_code/alignment/alignment_module.rb +102 -0
- data/lib/bioroebe/gui/shared_code/aminoacid_composition/aminoacid_composition_module.rb +94 -0
- data/lib/bioroebe/gui/shared_code/levensthein_distance/levensthein_distance_module.rb +18 -16
- data/lib/bioroebe/gui/shared_code/protein_to_DNA/protein_to_DNA_module.rb +14 -14
- data/lib/bioroebe/gui/swing/three_to_one/ThreeToOne$1.class +0 -0
- data/lib/bioroebe/gui/swing/three_to_one/ThreeToOne$CloseListener.class +0 -0
- data/lib/bioroebe/gui/swing/three_to_one/ThreeToOne.class +0 -0
- data/lib/bioroebe/gui/swing/three_to_one/ThreeToOne.java +141 -0
- data/lib/bioroebe/images/FORWARD_PRIMER.png +0 -0
- data/lib/bioroebe/images/REVERSE_PRIMER.png +0 -0
- data/lib/bioroebe/images/images.html +29845 -0
- data/lib/bioroebe/java/README.md +5 -0
- data/lib/bioroebe/java/bioroebe/AllInOne.java +1 -0
- data/lib/bioroebe/java/bioroebe/Base.class +0 -0
- data/lib/bioroebe/java/bioroebe/Base.java +39 -5
- data/lib/bioroebe/java/bioroebe/IsPalindrome.java +23 -5
- data/lib/bioroebe/java/bioroebe/SanitizeNucleotideSequence.java +0 -0
- data/lib/bioroebe/java/bioroebe/Sequence.java +28 -3
- data/lib/bioroebe/java/bioroebe/ToCamelcase.class +0 -0
- data/lib/bioroebe/java/bioroebe/ToCamelcase.java +16 -4
- data/lib/bioroebe/java/bioroebe/ToRNA.java +43 -0
- data/lib/bioroebe/java/bioroebe/ToplevelMethods.java +6 -0
- data/lib/bioroebe/java/bioroebe/{BisulfiteTreatment.class → src/BisulfiteTreatment.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{Codons.class → src/Codons.class} +0 -0
- data/lib/bioroebe/java/bioroebe/src/Codons.java +35 -0
- data/lib/bioroebe/java/bioroebe/src/Commandline.class +0 -0
- data/lib/bioroebe/java/bioroebe/src/Commandline.java +101 -0
- data/lib/bioroebe/java/bioroebe/{Esystem.class → src/Esystem.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{Esystem.java → src/Esystem.java} +6 -1
- data/lib/bioroebe/java/bioroebe/{GenerateRandomDnaSequence.class → src/GenerateRandomDnaSequence.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{GenerateRandomDnaSequence.java → src/GenerateRandomDnaSequence.java} +8 -2
- data/lib/bioroebe/java/bioroebe/src/PartnerNucleotide.class +0 -0
- data/lib/bioroebe/java/bioroebe/src/PartnerNucleotide.java +56 -0
- data/lib/bioroebe/java/bioroebe/{RemoveFile.java → src/RemoveFile.java} +10 -4
- data/lib/bioroebe/java/bioroebe/{RemoveNumbers.class → src/RemoveNumbers.class} +0 -0
- data/lib/bioroebe/java/bioroebe/{RemoveNumbers.java → src/RemoveNumbers.java} +1 -0
- data/lib/bioroebe/java/bioroebe/src/toplevel_methods/BaseComposition.class +0 -0
- data/lib/bioroebe/java/bioroebe/src/toplevel_methods/BaseComposition.java +75 -0
- data/lib/bioroebe/misc/ruler.rb +11 -2
- data/lib/bioroebe/nucleotides/most_likely_nucleotide_sequence_for_this_aminoacid_sequence.rb +1 -9
- data/lib/bioroebe/nucleotides/sanitize_nucleotide_sequence.rb +59 -18
- data/lib/bioroebe/nucleotides/show_nucleotide_sequence.rb +7 -7
- data/lib/bioroebe/parsers/genbank_parser.rb +347 -26
- data/lib/bioroebe/parsers/gff.rb +1 -9
- data/lib/bioroebe/patterns/scan_for_repeat.rb +1 -5
- data/lib/bioroebe/pdb/fetch_fasta_sequence_from_pdb.rb +1 -9
- data/lib/bioroebe/pdb/parse_mmCIF_file.rb +1 -9
- data/lib/bioroebe/pdb/parse_pdb_file.rb +4 -10
- data/lib/bioroebe/project/project.rb +1 -1
- data/lib/bioroebe/python/README.md +1 -0
- data/lib/bioroebe/python/__pycache__/mymodule.cpython-39.pyc +0 -0
- data/lib/bioroebe/python/gui/gtk3/all_in_one.css +4 -0
- data/lib/bioroebe/python/gui/gtk3/all_in_one.py +59 -0
- data/lib/bioroebe/python/gui/gtk3/widget1.py +20 -0
- data/lib/bioroebe/python/gui/tkinter/all_in_one.py +91 -0
- data/lib/bioroebe/python/mymodule.py +8 -0
- data/lib/bioroebe/python/protein_to_dna.py +33 -0
- data/lib/bioroebe/python/shell/shell.py +19 -0
- data/lib/bioroebe/python/to_rna.py +14 -0
- data/lib/bioroebe/python/toplevel_methods/convert_dna_to_aminoacid_sequence.py +137 -0
- data/lib/bioroebe/python/toplevel_methods/esystem.py +12 -0
- data/lib/bioroebe/python/toplevel_methods/open_in_browser.py +20 -0
- data/lib/bioroebe/python/toplevel_methods/palindromes.py +52 -0
- data/lib/bioroebe/python/toplevel_methods/rds.py +13 -0
- data/lib/bioroebe/python/toplevel_methods/shuffleseq.py +23 -0
- data/lib/bioroebe/python/toplevel_methods/three_delimiter.py +37 -0
- data/lib/bioroebe/python/toplevel_methods/time_and_date.py +43 -0
- data/lib/bioroebe/python/toplevel_methods/to_camelcase.py +21 -0
- data/lib/bioroebe/requires/require_cleave_and_digest.rb +3 -1
- data/lib/bioroebe/requires/require_the_bioroebe_project.rb +3 -1
- data/lib/bioroebe/sequence/alignment.rb +14 -4
- data/lib/bioroebe/sequence/dna.rb +1 -0
- data/lib/bioroebe/sequence/nucleotide_module/nucleotide_module.rb +28 -25
- data/lib/bioroebe/sequence/protein.rb +105 -3
- data/lib/bioroebe/sequence/rna.rb +220 -0
- data/lib/bioroebe/sequence/sequence.rb +128 -40
- data/lib/bioroebe/shell/menu.rb +3815 -3696
- data/lib/bioroebe/shell/misc.rb +9019 -3133
- data/lib/bioroebe/shell/readline/readline.rb +1 -1
- data/lib/bioroebe/shell/shell.rb +1137 -28
- data/lib/bioroebe/siRNA/siRNA.rb +81 -1
- data/lib/bioroebe/string_matching/find_longest_substring.rb +3 -2
- data/lib/bioroebe/string_matching/hamming_distance.rb +1 -9
- data/lib/bioroebe/taxonomy/class_methods.rb +3 -8
- data/lib/bioroebe/taxonomy/constants.rb +4 -3
- data/lib/bioroebe/taxonomy/edit.rb +2 -1
- data/lib/bioroebe/taxonomy/help/help.rb +10 -10
- data/lib/bioroebe/taxonomy/help/helpline.rb +2 -2
- data/lib/bioroebe/taxonomy/info/check_available.rb +15 -9
- data/lib/bioroebe/taxonomy/info/info.rb +18 -11
- data/lib/bioroebe/taxonomy/info/is_dna.rb +46 -36
- data/lib/bioroebe/taxonomy/interactive.rb +140 -104
- data/lib/bioroebe/taxonomy/menu.rb +27 -18
- data/lib/bioroebe/taxonomy/parse_fasta.rb +3 -1
- data/lib/bioroebe/taxonomy/shared.rb +1 -0
- data/lib/bioroebe/taxonomy/taxonomy.rb +1 -0
- data/lib/bioroebe/toplevel_methods/aminoacids_and_proteins.rb +31 -24
- data/lib/bioroebe/toplevel_methods/colourize_related_methods.rb +164 -0
- data/lib/bioroebe/toplevel_methods/databases.rb +1 -1
- data/lib/bioroebe/toplevel_methods/digest.rb +18 -8
- data/lib/bioroebe/toplevel_methods/fasta_and_fastq.rb +107 -63
- data/lib/bioroebe/toplevel_methods/file_and_directory_related_actions.rb +14 -2
- data/lib/bioroebe/toplevel_methods/frequencies.rb +8 -1
- data/lib/bioroebe/toplevel_methods/misc.rb +175 -11
- data/lib/bioroebe/toplevel_methods/nucleotides.rb +118 -46
- data/lib/bioroebe/toplevel_methods/open_in_browser.rb +2 -0
- data/lib/bioroebe/toplevel_methods/palindromes.rb +75 -47
- data/lib/bioroebe/toplevel_methods/taxonomy.rb +3 -3
- data/lib/bioroebe/toplevel_methods/to_camelcase.rb +5 -0
- data/lib/bioroebe/utility_scripts/align_open_reading_frames.rb +1 -9
- data/lib/bioroebe/utility_scripts/check_for_mismatches/check_for_mismatches.rb +1 -9
- data/lib/bioroebe/utility_scripts/compacter/compacter.rb +251 -0
- data/lib/bioroebe/utility_scripts/compseq/compseq.rb +1 -9
- data/lib/bioroebe/utility_scripts/consensus_sequence.rb +6 -6
- data/lib/bioroebe/utility_scripts/create_batch_entrez_file.rb +1 -9
- data/lib/bioroebe/utility_scripts/dot_alignment.rb +1 -9
- data/lib/bioroebe/utility_scripts/move_file_to_its_correct_location.rb +1 -4
- data/lib/bioroebe/utility_scripts/parse_taxonomy.rb +2 -2
- data/lib/bioroebe/utility_scripts/permutations.rb +36 -9
- data/lib/bioroebe/utility_scripts/showorf/constants.rb +0 -5
- data/lib/bioroebe/utility_scripts/showorf/reset.rb +1 -4
- data/lib/bioroebe/version/version.rb +2 -2
- data/lib/bioroebe/www/embeddable_interface.rb +121 -58
- data/lib/bioroebe/www/sinatra/sinatra.rb +186 -71
- data/lib/bioroebe/yaml/aminoacids/amino_acids_long_name_to_one_letter.yml +2 -2
- data/lib/bioroebe/yaml/aminoacids/weight_of_common_proteins.yml +17 -17
- data/lib/bioroebe/yaml/configuration/browser.yml +1 -1
- 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/genomes/README.md +3 -4
- data/lib/bioroebe/yaml/nucleotides/nucleotides.yml +5 -0
- data/lib/bioroebe/yaml/restriction_enzymes/restriction_enzymes.yml +57 -57
- data/spec/README.md +6 -0
- data/spec/project_wide_specification/classes.md +5 -0
- metadata +107 -70
- data/doc/setup.rb +0 -1655
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/constants.rb +0 -50
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/initialize.rb +0 -86
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/menu.rb +0 -117
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/misc.rb +0 -981
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/report.rb +0 -156
- data/lib/bioroebe/fasta_and_fastq/parse_fasta/reset.rb +0 -128
- data/lib/bioroebe/genbank/genbank_parser.rb +0 -291
- data/lib/bioroebe/java/bioroebe/AllInOne.class +0 -0
- data/lib/bioroebe/java/bioroebe/Cat.class +0 -0
- data/lib/bioroebe/java/bioroebe/Codons.java +0 -22
- data/lib/bioroebe/java/bioroebe/IsPalindrome.class +0 -0
- data/lib/bioroebe/java/bioroebe/PartnerNucleotide.class +0 -0
- data/lib/bioroebe/java/bioroebe/PartnerNucleotide.java +0 -19
- data/lib/bioroebe/java/bioroebe/SanitizeNucleotideSequence.class +0 -0
- data/lib/bioroebe/java/bioroebe/ToplevelMethods.class +0 -0
- data/lib/bioroebe/java/bioroebe.jar +0 -0
- data/lib/bioroebe/shell/add.rb +0 -108
- data/lib/bioroebe/shell/assign.rb +0 -360
- data/lib/bioroebe/shell/chop_and_cut.rb +0 -281
- data/lib/bioroebe/shell/constants.rb +0 -166
- data/lib/bioroebe/shell/download.rb +0 -335
- data/lib/bioroebe/shell/enable_and_disable.rb +0 -158
- data/lib/bioroebe/shell/enzymes.rb +0 -310
- data/lib/bioroebe/shell/fasta.rb +0 -345
- data/lib/bioroebe/shell/gtk.rb +0 -76
- data/lib/bioroebe/shell/history.rb +0 -132
- data/lib/bioroebe/shell/initialize.rb +0 -217
- data/lib/bioroebe/shell/loop.rb +0 -74
- data/lib/bioroebe/shell/prompt.rb +0 -107
- data/lib/bioroebe/shell/random.rb +0 -289
- data/lib/bioroebe/shell/reset.rb +0 -335
- data/lib/bioroebe/shell/scan_and_parse.rb +0 -135
- data/lib/bioroebe/shell/search.rb +0 -337
- data/lib/bioroebe/shell/sequences.rb +0 -200
- data/lib/bioroebe/shell/show_report_and_display.rb +0 -2901
- data/lib/bioroebe/shell/startup.rb +0 -127
- data/lib/bioroebe/shell/taxonomy.rb +0 -14
- data/lib/bioroebe/shell/tk.rb +0 -23
- data/lib/bioroebe/shell/user_input.rb +0 -88
- data/lib/bioroebe/shell/xorg.rb +0 -45
- data/lib/bioroebe/utility_scripts/compacter.rb +0 -131
- /data/lib/bioroebe/java/bioroebe/{BisulfiteTreatment.java → src/BisulfiteTreatment.java} +0 -0
- /data/lib/bioroebe/java/bioroebe/{RemoveFile.class → src/RemoveFile.class} +0 -0
@@ -0,0 +1,94 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# === Bioroebe::GUI::AminoacidCompositionModule
|
6
|
+
#
|
7
|
+
# Usage example:
|
8
|
+
#
|
9
|
+
# Alignment.new(ARGV)
|
10
|
+
#
|
11
|
+
# =========================================================================== #
|
12
|
+
# require 'bioroebe/gui/shared_code/aminoacid_composition/aminoacid_composition_module.rb'
|
13
|
+
# include Bioroebe::GUI::AminoacidCompositionModule
|
14
|
+
# =========================================================================== #
|
15
|
+
module Bioroebe
|
16
|
+
|
17
|
+
module GUI
|
18
|
+
|
19
|
+
module AminoacidCompositionModule # === Bioroebe::GUI::AminoacidCompositionModule
|
20
|
+
|
21
|
+
require 'colours'
|
22
|
+
require 'bioroebe/sequence/alignment.rb'
|
23
|
+
|
24
|
+
# ========================================================================= #
|
25
|
+
# === TITLE
|
26
|
+
# ========================================================================= #
|
27
|
+
TITLE = 'Aminoacid Composition'
|
28
|
+
|
29
|
+
# ========================================================================= #
|
30
|
+
# === WIDTH
|
31
|
+
# ========================================================================= #
|
32
|
+
WIDTH = '65%'
|
33
|
+
|
34
|
+
# ========================================================================= #
|
35
|
+
# === HEIGHT
|
36
|
+
# ========================================================================= #
|
37
|
+
HEIGHT = '55%'
|
38
|
+
|
39
|
+
# ========================================================================= #
|
40
|
+
# === USE_THIS_FONT
|
41
|
+
# ========================================================================= #
|
42
|
+
USE_THIS_FONT = :dejavu_condensed_22
|
43
|
+
|
44
|
+
# ========================================================================= #
|
45
|
+
# === FONT_FOR_THE_ENTRIES
|
46
|
+
#
|
47
|
+
# The entries must use a mono-spaced font.
|
48
|
+
# ========================================================================= #
|
49
|
+
FONT_FOR_THE_ENTRIES = :hack_20
|
50
|
+
|
51
|
+
# ========================================================================= #
|
52
|
+
# === FILE_MOLECULAR_WEIGHT
|
53
|
+
# ========================================================================= #
|
54
|
+
FILE_MOLECULAR_WEIGHT = Bioroebe.file_molecular_weight
|
55
|
+
|
56
|
+
# ========================================================================= #
|
57
|
+
# === calculated_weight?
|
58
|
+
#
|
59
|
+
# This method will calculate the weight.
|
60
|
+
# ========================================================================= #
|
61
|
+
def calculated_weight?(i)
|
62
|
+
dataset = YAML.load_file(FILE_MOLECULAR_WEIGHT)
|
63
|
+
weight = 0
|
64
|
+
if i.is_a?(String) and !i.empty?
|
65
|
+
chars = i.chars.sort
|
66
|
+
chars.each {|this_char|
|
67
|
+
value = dataset[this_char]
|
68
|
+
weight += value if value
|
69
|
+
}
|
70
|
+
end
|
71
|
+
# ======================================================================= #
|
72
|
+
# Must deduct water too.
|
73
|
+
# ======================================================================= #
|
74
|
+
weight -= (18.0 * (i.size - 1))
|
75
|
+
return weight.round(2)
|
76
|
+
end
|
77
|
+
|
78
|
+
# ========================================================================= #
|
79
|
+
# === filter_away_invalid_aminoacids
|
80
|
+
# ========================================================================= #
|
81
|
+
def filter_away_invalid_aminoacids(i)
|
82
|
+
::Bioroebe.filter_away_invalid_aminoacids(i)
|
83
|
+
end
|
84
|
+
|
85
|
+
# ========================================================================= #
|
86
|
+
# === return_how_many_aminoacids_are_in_the_sequence
|
87
|
+
# ========================================================================= #
|
88
|
+
def return_how_many_aminoacids_are_in_the_sequence(
|
89
|
+
i = @entry_user_input
|
90
|
+
)
|
91
|
+
return 'This sequence has '+i.text?.to_s.size.to_s+' aminoacids.'
|
92
|
+
end
|
93
|
+
|
94
|
+
end; end; end
|
@@ -76,20 +76,6 @@ module LevenstheinDistanceModule
|
|
76
76
|
}
|
77
77
|
end
|
78
78
|
|
79
|
-
# ========================================================================= #
|
80
|
-
# === padding?
|
81
|
-
# ========================================================================= #
|
82
|
-
def padding?
|
83
|
-
12
|
84
|
-
end
|
85
|
-
|
86
|
-
# ========================================================================= #
|
87
|
-
# === border_size?
|
88
|
-
# ========================================================================= #
|
89
|
-
def border_size?
|
90
|
-
2
|
91
|
-
end
|
92
|
-
|
93
79
|
# ========================================================================= #
|
94
80
|
# === levensthein_object?
|
95
81
|
# ========================================================================= #
|
@@ -383,8 +369,10 @@ module LevenstheinDistanceModule
|
|
383
369
|
@levensthein_object.edit_distance?
|
384
370
|
)
|
385
371
|
total_score = @levensthein_object.total_score?.to_s
|
386
|
-
|
387
|
-
|
372
|
+
unless text2.empty?
|
373
|
+
@label_for_the_total_score.set_text(total_score)
|
374
|
+
@label_for_the_total_score.make_bold
|
375
|
+
end
|
388
376
|
end; alias do_compare_the_two_sequences do_compare_the_two_strings # === do_compare_the_two_sequences
|
389
377
|
alias recalculate_the_score do_compare_the_two_strings # === recalculate_the_score
|
390
378
|
|
@@ -399,4 +387,18 @@ module LevenstheinDistanceModule
|
|
399
387
|
return small_label
|
400
388
|
end
|
401
389
|
|
390
|
+
# ========================================================================= #
|
391
|
+
# === padding?
|
392
|
+
# ========================================================================= #
|
393
|
+
def padding?
|
394
|
+
12
|
395
|
+
end
|
396
|
+
|
397
|
+
# ========================================================================= #
|
398
|
+
# === border_size?
|
399
|
+
# ========================================================================= #
|
400
|
+
def border_size?
|
401
|
+
4
|
402
|
+
end
|
403
|
+
|
402
404
|
end; end; end
|
@@ -143,13 +143,6 @@ module ProteinToDNAModule # === Bioroebe::GUI::ProteinToDNAModule
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
# ========================================================================= #
|
147
|
-
# === left_buffer?
|
148
|
-
# ========================================================================= #
|
149
|
-
def left_buffer?
|
150
|
-
@dataset[:left_buffer]
|
151
|
-
end; alias left? left_buffer? # === left?
|
152
|
-
|
153
146
|
# ========================================================================= #
|
154
147
|
# === right_buffer?
|
155
148
|
# ========================================================================= #
|
@@ -164,6 +157,20 @@ module ProteinToDNAModule # === Bioroebe::GUI::ProteinToDNAModule
|
|
164
157
|
@dataset[:left_buffer].set_text(i.to_s)
|
165
158
|
end
|
166
159
|
|
160
|
+
# ========================================================================= #
|
161
|
+
# === aminoacid_sequence?
|
162
|
+
# ========================================================================= #
|
163
|
+
def aminoacid_sequence?
|
164
|
+
left_buffer?.to_s
|
165
|
+
end
|
166
|
+
|
167
|
+
# ========================================================================= #
|
168
|
+
# === left_buffer?
|
169
|
+
# ========================================================================= #
|
170
|
+
def left_buffer?
|
171
|
+
@dataset[:left_buffer]
|
172
|
+
end; alias left? left_buffer? # === left?
|
173
|
+
|
167
174
|
# ========================================================================= #
|
168
175
|
# === do_determine_the_backtrack_sequence (click tag)
|
169
176
|
#
|
@@ -182,11 +189,4 @@ module ProteinToDNAModule # === Bioroebe::GUI::ProteinToDNAModule
|
|
182
189
|
right_buffer?.set_text(text_for_right_hand_side)
|
183
190
|
end; alias do_determine_the_DNA_sequence do_determine_the_backtrack_sequence # === do_determine_the_DNA_sequence
|
184
191
|
|
185
|
-
# ========================================================================= #
|
186
|
-
# === aminoacid_sequence?
|
187
|
-
# ========================================================================= #
|
188
|
-
def aminoacid_sequence?
|
189
|
-
left_buffer?.to_s
|
190
|
-
end
|
191
|
-
|
192
192
|
end; end; end
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,141 @@
|
|
1
|
+
/* package ThreeToOne; */
|
2
|
+
import javax.swing.*;
|
3
|
+
import java.awt.*;
|
4
|
+
import java.awt.event.*;
|
5
|
+
import java.awt.Dimension;
|
6
|
+
import java.awt.event.KeyAdapter;
|
7
|
+
import java.awt.event.KeyEvent;
|
8
|
+
|
9
|
+
import java.util.Random;
|
10
|
+
import javax.swing.border.EmptyBorder;
|
11
|
+
|
12
|
+
import java.util.*;
|
13
|
+
import java.util.HashMap;
|
14
|
+
import java.util.Map;
|
15
|
+
|
16
|
+
public class ThreeToOne {
|
17
|
+
|
18
|
+
private static final String TITLE = "Three To One - Aminoacid Code Converter";
|
19
|
+
|
20
|
+
/*
|
21
|
+
* HASH_THREE_TO_ONE
|
22
|
+
*/
|
23
|
+
/*
|
24
|
+
Hashtable<String, String> HASH_THREE_TO_ONE = new Hashtable<String, String>();
|
25
|
+
*/
|
26
|
+
|
27
|
+
/* HASH_THREE_TO_ONE.put("Ala", "A");
|
28
|
+
*/
|
29
|
+
|
30
|
+
|
31
|
+
public Hashtable<String, String> hash = new Hashtable<>(); /* Only have to specify the types once */
|
32
|
+
|
33
|
+
|
34
|
+
public static JTextField entry1,
|
35
|
+
entry2;
|
36
|
+
/*
|
37
|
+
* Main constructor (def initialize)
|
38
|
+
*/
|
39
|
+
public ThreeToOne() {
|
40
|
+
run();
|
41
|
+
}
|
42
|
+
void initialize_the_main_hash() {
|
43
|
+
hash.put("Ala", "A");
|
44
|
+
}
|
45
|
+
/*
|
46
|
+
* run()
|
47
|
+
*/
|
48
|
+
void run() {
|
49
|
+
|
50
|
+
JFrame frame = new JFrame(TITLE);
|
51
|
+
|
52
|
+
frame.setLayout(new GridLayout(5, 2)); /* (int rows, int cols) */
|
53
|
+
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
54
|
+
|
55
|
+
JLabel label_title = new JLabel("Input Sequence");
|
56
|
+
label_title.setFont(new Font("Serif", Font.PLAIN, 30)); /* Set a new font size */
|
57
|
+
|
58
|
+
frame.add(label_title);
|
59
|
+
frame.add(new JLabel(""));
|
60
|
+
|
61
|
+
/* Input Sequence */
|
62
|
+
entry1 = new JTextField(30);
|
63
|
+
entry1.setFont(new Font("Serif", Font.PLAIN, 20));
|
64
|
+
entry1.setMargin(new Insets(4, 4, 4, 4));
|
65
|
+
entry1.setHorizontalAlignment(JTextField.CENTER);
|
66
|
+
entry1.setFocusable(true);
|
67
|
+
frame.add(entry1);
|
68
|
+
frame.add(new JLabel(""));
|
69
|
+
|
70
|
+
/* Fahrenheit */
|
71
|
+
entry2 = new JTextField(30);
|
72
|
+
entry2.setFont(new Font("Serif", Font.PLAIN, 20));
|
73
|
+
entry2.setMargin(new Insets(4, 4, 4, 4));
|
74
|
+
entry2.setHorizontalAlignment(JTextField.CENTER);
|
75
|
+
entry2.setFocusable(true);
|
76
|
+
frame.add(entry2);
|
77
|
+
frame.add(new JLabel(""));
|
78
|
+
|
79
|
+
JButton convert_button = new JButton("Convert");
|
80
|
+
|
81
|
+
frame.add(convert_button);
|
82
|
+
frame.add(return_quit_button());
|
83
|
+
|
84
|
+
frame.setSize(1200, 500);
|
85
|
+
frame.setVisible(true);
|
86
|
+
|
87
|
+
initialize_the_main_hash();
|
88
|
+
|
89
|
+
convert_button.setMnemonic('C');
|
90
|
+
convert_button.setBounds(10, 80, 80, 25); /* int x-coordinate, int y-coordinate, int width, int height */
|
91
|
+
convert_button.addActionListener(
|
92
|
+
e -> do_the_conversion()
|
93
|
+
);
|
94
|
+
|
95
|
+
}
|
96
|
+
/*
|
97
|
+
* return_quit_button()
|
98
|
+
*/
|
99
|
+
JButton return_quit_button() {
|
100
|
+
JButton quit_button = new JButton("Quit");
|
101
|
+
quit_button.addActionListener(new CloseListener());
|
102
|
+
quit_button.setMnemonic('Q');
|
103
|
+
return quit_button;
|
104
|
+
}
|
105
|
+
private class CloseListener implements ActionListener {
|
106
|
+
@Override
|
107
|
+
public void actionPerformed(ActionEvent e) {
|
108
|
+
System.exit(0);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
/*
|
113
|
+
* do_the_conversion()
|
114
|
+
*/
|
115
|
+
void do_the_conversion() {
|
116
|
+
if (entry1.getText().isEmpty()) {
|
117
|
+
en("No text to check.");
|
118
|
+
}
|
119
|
+
else {
|
120
|
+
String target_key = entry1.getText();
|
121
|
+
|
122
|
+
if (hash.containsKey(target_key)) {
|
123
|
+
String result = hash.get(target_key);
|
124
|
+
entry2.setText(result);
|
125
|
+
};
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
public static void e(String i) {
|
130
|
+
System.out.print(i);
|
131
|
+
}
|
132
|
+
|
133
|
+
public static void en(String i) {
|
134
|
+
System.out.println(i);
|
135
|
+
}
|
136
|
+
|
137
|
+
public static void main(String[] args) {
|
138
|
+
ThreeToOne x = new ThreeToOne();
|
139
|
+
}
|
140
|
+
|
141
|
+
}
|
Binary file
|
Binary file
|