annotate dnaclust2tab.awk @ 0:84be1fe7e34a draft

Uploaded
author john-mccallum
date Thu, 06 Sep 2012 23:05:22 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
84be1fe7e34a Uploaded
john-mccallum
parents:
diff changeset
1 #!/bin/awk -f
84be1fe7e34a Uploaded
john-mccallum
parents:
diff changeset
2 BEGIN {
84be1fe7e34a Uploaded
john-mccallum
parents:
diff changeset
3 FS="\t"
84be1fe7e34a Uploaded
john-mccallum
parents:
diff changeset
4 OFS="\t"
84be1fe7e34a Uploaded
john-mccallum
parents:
diff changeset
5 }
84be1fe7e34a Uploaded
john-mccallum
parents:
diff changeset
6 {
84be1fe7e34a Uploaded
john-mccallum
parents:
diff changeset
7 OTU = $1
84be1fe7e34a Uploaded
john-mccallum
parents:
diff changeset
8 {for (i=2;i<NF;i++)
84be1fe7e34a Uploaded
john-mccallum
parents:
diff changeset
9 print OTU, $i}
84be1fe7e34a Uploaded
john-mccallum
parents:
diff changeset
10 }