Skip to content
Snippets Groups Projects
Commit 9952442d authored by Natacha Civic's avatar Natacha Civic
Browse files

add tool to count clusters (cd-hit)

parents
Branches
No related tags found
No related merge requests found
function printstats() {
if (numentries) {
print "Cluster " cluster ":\t" numentries " entries"
totentries += numentries;
}
}
/^>Cluster/ {
printstats();
cluster = $2; numclust++; numentries = 0;
next;
}
{ numentries++ }
END {
printstats();
print "num clusters\t" numclust
print "total\t" totentries " entries";
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment