bioroebe 0.10.80 → 0.11.24
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bioroebe might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1204 -772
- data/bioroebe.gemspec +3 -3
- data/doc/README.gen +1203 -771
- data/doc/todo/bioroebe_todo.md +391 -365
- data/lib/bioroebe/aminoacids/aminoacid_substitution.rb +1 -9
- data/lib/bioroebe/aminoacids/codon_percentage.rb +1 -9
- data/lib/bioroebe/aminoacids/deduce_aminoacid_sequence.rb +1 -9
- data/lib/bioroebe/aminoacids/display_aminoacid_table.rb +1 -0
- data/lib/bioroebe/aminoacids/show_hydrophobicity.rb +1 -6
- data/lib/bioroebe/base/colours_for_base/colours_for_base.rb +18 -8
- data/lib/bioroebe/base/commandline_application/commandline_arguments.rb +13 -11
- data/lib/bioroebe/base/commandline_application/misc.rb +18 -8
- data/lib/bioroebe/base/misc.rb +16 -0
- data/lib/bioroebe/base/prototype/misc.rb +1 -1
- data/lib/bioroebe/codons/show_codon_tables.rb +6 -2
- data/lib/bioroebe/codons/show_codon_usage.rb +2 -1
- data/lib/bioroebe/constants/aminoacids_and_proteins.rb +1 -0
- data/lib/bioroebe/constants/database_constants.rb +1 -1
- data/lib/bioroebe/constants/files_and_directories.rb +20 -1
- data/lib/bioroebe/constants/misc.rb +20 -0
- data/lib/bioroebe/count/count_amount_of_nucleotides.rb +3 -0
- data/lib/bioroebe/crystal/README.md +2 -0
- data/lib/bioroebe/crystal/to_rna.cr +19 -0
- data/lib/bioroebe/data/README.md +11 -8
- data/lib/bioroebe/data/electron_microscopy/pos_example.pos +396 -0
- data/lib/bioroebe/data/electron_microscopy/test_particles.star +36 -0
- data/lib/bioroebe/{shell/tk.rb → electron_microscopy/electron_microscopy_module.rb} +15 -10
- data/lib/bioroebe/electron_microscopy/simple_star_file_generator.rb +4 -9
- data/lib/bioroebe/fasta_and_fastq/show_fasta_headers.rb +27 -12
- data/lib/bioroebe/genome/README.md +4 -0
- data/lib/bioroebe/genome/genome.rb +67 -0
- data/lib/bioroebe/gui/gtk3/protein_to_DNA/protein_to_DNA.rb +18 -18
- data/lib/bioroebe/gui/gtk3/random_sequence/random_sequence.rb +19 -11
- data/lib/bioroebe/gui/shared_code/protein_to_DNA/protein_to_DNA_module.rb +14 -14
- data/lib/bioroebe/misc/ruler.rb +1 -0
- data/lib/bioroebe/parsers/genbank_parser.rb +353 -24
- data/lib/bioroebe/parsers/gff.rb +1 -9
- data/lib/bioroebe/pdb/parse_pdb_file.rb +1 -9
- data/lib/bioroebe/project/project.rb +1 -1
- data/lib/bioroebe/python/README.md +1 -0
- data/lib/bioroebe/python/__pycache__/mymodule.cpython-39.pyc +0 -0
- data/lib/bioroebe/python/gui/gtk3/all_in_one.css +4 -0
- data/lib/bioroebe/python/gui/gtk3/all_in_one.py +59 -0
- data/lib/bioroebe/python/gui/gtk3/widget1.py +20 -0
- data/lib/bioroebe/python/gui/tkinter/all_in_one.py +91 -0
- data/lib/bioroebe/python/mymodule.py +8 -0
- data/lib/bioroebe/python/protein_to_dna.py +33 -0
- data/lib/bioroebe/python/shell/shell.py +19 -0
- data/lib/bioroebe/python/to_rna.py +14 -0
- data/lib/bioroebe/python/toplevel_methods/open_in_browser.py +20 -0
- data/lib/bioroebe/python/toplevel_methods/palindromes.py +42 -0
- data/lib/bioroebe/python/toplevel_methods/rds.py +13 -0
- data/lib/bioroebe/python/toplevel_methods/three_delimiter.py +34 -0
- data/lib/bioroebe/python/toplevel_methods/time_and_date.py +43 -0
- data/lib/bioroebe/python/toplevel_methods/to_camelcase.py +11 -0
- data/lib/bioroebe/requires/require_the_bioroebe_project.rb +3 -1
- data/lib/bioroebe/sequence/nucleotide_module/nucleotide_module.rb +28 -25
- data/lib/bioroebe/sequence/protein.rb +105 -3
- data/lib/bioroebe/sequence/sequence.rb +61 -2
- data/lib/bioroebe/shell/menu.rb +3451 -3366
- data/lib/bioroebe/shell/misc.rb +51 -4311
- data/lib/bioroebe/shell/readline/readline.rb +1 -1
- data/lib/bioroebe/shell/shell.rb +11192 -28
- data/lib/bioroebe/siRNA/siRNA.rb +81 -1
- data/lib/bioroebe/string_matching/find_longest_substring.rb +3 -2
- data/lib/bioroebe/taxonomy/class_methods.rb +3 -8
- data/lib/bioroebe/taxonomy/constants.rb +4 -3
- data/lib/bioroebe/taxonomy/edit.rb +2 -1
- data/lib/bioroebe/taxonomy/help/help.rb +10 -10
- data/lib/bioroebe/taxonomy/info/check_available.rb +15 -9
- data/lib/bioroebe/taxonomy/info/info.rb +17 -2
- data/lib/bioroebe/taxonomy/info/is_dna.rb +46 -36
- data/lib/bioroebe/taxonomy/interactive.rb +139 -95
- data/lib/bioroebe/taxonomy/menu.rb +27 -18
- data/lib/bioroebe/taxonomy/parse_fasta.rb +3 -1
- data/lib/bioroebe/taxonomy/shared.rb +1 -0
- data/lib/bioroebe/taxonomy/taxonomy.rb +1 -0
- data/lib/bioroebe/toplevel_methods/aminoacids_and_proteins.rb +31 -24
- data/lib/bioroebe/toplevel_methods/databases.rb +1 -1
- data/lib/bioroebe/toplevel_methods/fasta_and_fastq.rb +101 -63
- data/lib/bioroebe/toplevel_methods/misc.rb +17 -16
- data/lib/bioroebe/toplevel_methods/nucleotides.rb +22 -5
- data/lib/bioroebe/toplevel_methods/open_in_browser.rb +2 -0
- data/lib/bioroebe/toplevel_methods/palindromes.rb +1 -2
- data/lib/bioroebe/toplevel_methods/taxonomy.rb +2 -2
- data/lib/bioroebe/toplevel_methods/to_camelcase.rb +5 -0
- data/lib/bioroebe/utility_scripts/align_open_reading_frames.rb +1 -9
- data/lib/bioroebe/utility_scripts/check_for_mismatches/check_for_mismatches.rb +1 -9
- data/lib/bioroebe/utility_scripts/compacter.rb +1 -9
- data/lib/bioroebe/utility_scripts/compseq/compseq.rb +1 -9
- data/lib/bioroebe/utility_scripts/create_batch_entrez_file.rb +1 -9
- data/lib/bioroebe/utility_scripts/dot_alignment.rb +1 -9
- data/lib/bioroebe/utility_scripts/move_file_to_its_correct_location.rb +1 -4
- data/lib/bioroebe/utility_scripts/showorf/constants.rb +0 -5
- data/lib/bioroebe/utility_scripts/showorf/reset.rb +1 -4
- data/lib/bioroebe/version/version.rb +2 -2
- data/lib/bioroebe/www/embeddable_interface.rb +101 -52
- data/lib/bioroebe/www/sinatra/sinatra.rb +186 -70
- data/lib/bioroebe/yaml/aminoacids/amino_acids_long_name_to_one_letter.yml +2 -2
- data/lib/bioroebe/yaml/configuration/browser.yml +1 -1
- data/lib/bioroebe/yaml/genomes/README.md +3 -4
- data/lib/bioroebe/yaml/restriction_enzymes/restriction_enzymes.yml +3 -3
- metadata +32 -35
- data/doc/setup.rb +0 -1655
- data/lib/bioroebe/genbank/genbank_parser.rb +0 -291
- data/lib/bioroebe/shell/add.rb +0 -108
- data/lib/bioroebe/shell/assign.rb +0 -360
- data/lib/bioroebe/shell/chop_and_cut.rb +0 -281
- data/lib/bioroebe/shell/constants.rb +0 -166
- data/lib/bioroebe/shell/download.rb +0 -335
- data/lib/bioroebe/shell/enable_and_disable.rb +0 -158
- data/lib/bioroebe/shell/enzymes.rb +0 -310
- data/lib/bioroebe/shell/fasta.rb +0 -345
- data/lib/bioroebe/shell/gtk.rb +0 -76
- data/lib/bioroebe/shell/history.rb +0 -132
- data/lib/bioroebe/shell/initialize.rb +0 -217
- data/lib/bioroebe/shell/loop.rb +0 -74
- data/lib/bioroebe/shell/prompt.rb +0 -107
- data/lib/bioroebe/shell/random.rb +0 -289
- data/lib/bioroebe/shell/reset.rb +0 -335
- data/lib/bioroebe/shell/scan_and_parse.rb +0 -135
- data/lib/bioroebe/shell/search.rb +0 -337
- data/lib/bioroebe/shell/sequences.rb +0 -200
- data/lib/bioroebe/shell/show_report_and_display.rb +0 -2901
- data/lib/bioroebe/shell/startup.rb +0 -127
- data/lib/bioroebe/shell/taxonomy.rb +0 -14
- data/lib/bioroebe/shell/user_input.rb +0 -88
- data/lib/bioroebe/shell/xorg.rb +0 -45
@@ -188,6 +188,27 @@ class Sequence < ::Bioroebe::RawSequence
|
|
188
188
|
@internal_hash[:type]
|
189
189
|
end; alias type type? # === type
|
190
190
|
|
191
|
+
# ========================================================================= #
|
192
|
+
# === index
|
193
|
+
# ========================================================================= #
|
194
|
+
def index(i)
|
195
|
+
@sequence.index(i)
|
196
|
+
end
|
197
|
+
|
198
|
+
# ========================================================================= #
|
199
|
+
# === map
|
200
|
+
# ========================================================================= #
|
201
|
+
def map(&block)
|
202
|
+
@sequence.map(&block)
|
203
|
+
end
|
204
|
+
|
205
|
+
# ========================================================================= #
|
206
|
+
# === size?
|
207
|
+
# ========================================================================= #
|
208
|
+
def size?
|
209
|
+
@sequence.size
|
210
|
+
end
|
211
|
+
|
191
212
|
# ========================================================================= #
|
192
213
|
# === to_regexp
|
193
214
|
#
|
@@ -334,7 +355,7 @@ class Sequence < ::Bioroebe::RawSequence
|
|
334
355
|
# ===================================================================== #
|
335
356
|
sequence?.tr!('T','U') if sequence?
|
336
357
|
end
|
337
|
-
end
|
358
|
+
end; alias normalize sanitize_dataset # === normalize
|
338
359
|
|
339
360
|
# ========================================================================= #
|
340
361
|
# === set_type
|
@@ -484,7 +505,8 @@ class Sequence < ::Bioroebe::RawSequence
|
|
484
505
|
# ===================================================================== #
|
485
506
|
# === :do_not_downcase
|
486
507
|
# ===================================================================== #
|
487
|
-
when :do_not_downcase
|
508
|
+
when :do_not_downcase,
|
509
|
+
:make_no_modification
|
488
510
|
# Make no modification in this case.
|
489
511
|
# ===================================================================== #
|
490
512
|
# === :do_upcase
|
@@ -526,6 +548,16 @@ class Sequence < ::Bioroebe::RawSequence
|
|
526
548
|
end; alias set_rna_type set_rna # === set_rna_type
|
527
549
|
alias convert_to_rna set_rna # === convert_to_rna
|
528
550
|
|
551
|
+
# ========================================================================= #
|
552
|
+
# === automatic_support_for_nucleotides
|
553
|
+
#
|
554
|
+
# This adds automatic support for RNA and DNA to this sequence object.
|
555
|
+
# ========================================================================= #
|
556
|
+
def automatic_support_for_nucleotides
|
557
|
+
require 'bioroebe/sequence/nucleotide_module/nucleotide_module.rb'
|
558
|
+
extend(Bioroebe::NucleotideModule)
|
559
|
+
end
|
560
|
+
|
529
561
|
# ========================================================================= #
|
530
562
|
# === set_dna
|
531
563
|
# ========================================================================= #
|
@@ -544,6 +576,33 @@ class Sequence < ::Bioroebe::RawSequence
|
|
544
576
|
}.join
|
545
577
|
end
|
546
578
|
|
579
|
+
# ========================================================================= #
|
580
|
+
# === remove_invalid_entries_from_the_dna_sequence!
|
581
|
+
# ========================================================================= #
|
582
|
+
def remove_invalid_entries_from_the_dna_sequence!(i = sequence?)
|
583
|
+
result = i.chars.select {|character|
|
584
|
+
DNA_NUCLEOTIDES.include? character.upcase
|
585
|
+
}.join
|
586
|
+
set_sequence(result)
|
587
|
+
end
|
588
|
+
|
589
|
+
# ========================================================================= #
|
590
|
+
# === randomize
|
591
|
+
#
|
592
|
+
# Usage example:
|
593
|
+
#
|
594
|
+
# x = Bioroebe::Sequence.new; x.randomize
|
595
|
+
#
|
596
|
+
# ========================================================================= #
|
597
|
+
def randomize(
|
598
|
+
i = { 'A'=>1,'C'=>2,'G'=>3,'T'=>4 }
|
599
|
+
)
|
600
|
+
if i.is_a? Hash
|
601
|
+
i = i.map{|key, value| "#{key * value}" }.join
|
602
|
+
end
|
603
|
+
::Bioroebe.random_dna(size?, i) # => "GGTAGGGGGGGGTAGGGGGG"
|
604
|
+
end
|
605
|
+
|
547
606
|
# ========================================================================= #
|
548
607
|
# === Bioroebe::Sequence.sequence_from_file
|
549
608
|
#
|