Pattern Matching Problem Solution with Perl
...all occurrences of a pattern in a string.#Given: Strings Pattern and Genome.#Return: All starting positions in Genome where Pattern appears as a substring. Use 0-based indexing.use str...3262 days ago
Implementation of biological random mutation with Perl
#!/usr/bin/perl -w use strict; use warnings; #sequence for a better recognition my $DNA="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA \ n";...2911 days ago
Genetic Algorithms demonstration with word DNA in Perl
...# do nothing if the entry is not matched in the DNA, or vice versa next unless $words =~ /$entry/; # we have a match! (it may be a substring, that's OK) # increment t...2381 days ago
Is there any quick way to replace an existing substring with a new substring in a string?
I am currently using a s/// regex like this: $str =~ s/$find/$replace/g; Looking for some other quicker way for the same. ThanksTags: Perl, String, Replace, Substring, Quick
3568 days ago
Comment on "Sibelia: A comparative genomics tool"
...tations. Each stage has two parameters, K and D. Let's call K-mer a substring of length K. At each stage "...hared between the genomes. If input genomes doesn't have such shared substrings, then "Sibelia" won't be abl...1294 days ago