- or download this
1 the only
2 significant
...
9 first
10 space
11 character
- or download this
#!/usr/bin/perl
use strict;
...
foreach my $k (keys %sum){
print $OUT "$sum{$k}\n";
}
- or download this
CREATE DATABASE kmers;
CREATE TABLE matrix (file int, number int, key (file), key (number));
- or download this
use DBI;
my $dbh = DBI->new('DBI:mysql:database=kmers;host=127.0.0.1','mysql_us
+er','');
...
}
$sth->finish();
- or download this
my $count_query = "SELECT number,COUNT(number) FROM matrix GROUP BY nu
+mber ORDER BY number";
$sth = $dbh->prepare($count_query);
- or download this
#sum up
#foreach my $k (keys %sum){
...
while (my $res = $sth->fetchrow_arrayref()) {
print $OUT $res->[1]\n";
}