Perl way to check if an array contains values
Perl is always is known for their flexibility (There is more than one way to do it). Followings are the quick way to check if a value exist in an array. do_something if 'flour' ~~ @ingredients # ~~ operand. BEWARE: it is broken.do_something if grep {$_ eq 'flour'} @ingredients ...Tags: Perl, Tricks, Array, Find, Check
2616 days ago
Common methods to discover tandem repeats
Tandem repeats are DNA sequences that are repeated in a contiguous manner in the genome. These sequences are often used as genetic markers and are important in many areas of genetics and genomics research. Here are some methods for discovering tandem repeats in genomes: T...Tags: Tandem, repeats, DNA, sequences, find, methods
426 days ago