annotate dnaclust2tab.awk @ 5:0b4f4d41b47b draft default tip

Uploaded
author john-mccallum
date Wed, 26 Jun 2013 22:46:01 -0400
parents 84be1fe7e34a
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 }