- or download this
use strict;
use warnings;
...
print Dumper \%chrHash;
- or download this
Count for chr1 3: 2
Locations for chr1 3: 100 300
...
]
}
};
- or download this
$chrHash{$_} = { %countHash } for @chromosomes;
- or download this
map { $chrHash{$_} = { %countHash } } @chromosomes;
- or download this
use strict;
use warnings;
...
if ( first { $line[2] eq $_ } @chromosomes ) {
print "Found $line[2] using first!\n";
}
- or download this
Found chr5 using grep!
Found chr5 using first!