annotate dnaclust2tab.awk @ 3:17a8f8670dc9 draft

Uploaded new fastaselect wrapper
author john-mccallum
date Wed, 26 Jun 2013 22:41:45 -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 }