annotate decorate-wrapper.sh @ 3:221a97bf686d draft

Uploaded
author bcclaywell
date Wed, 25 Mar 2015 16:39:10 -0400
parents d4690e65afcd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d4690e65afcd Uploaded
bcclaywell
parents:
diff changeset
1 #!/bin/bash
d4690e65afcd Uploaded
bcclaywell
parents:
diff changeset
2
d4690e65afcd Uploaded
bcclaywell
parents:
diff changeset
3 source $(dirname $0)/util.sh
d4690e65afcd Uploaded
bcclaywell
parents:
diff changeset
4 source $1
d4690e65afcd Uploaded
bcclaywell
parents:
diff changeset
5
d4690e65afcd Uploaded
bcclaywell
parents:
diff changeset
6 csvcut -c "specimen,${COLUMNS}" ${METADATA} | \
d4690e65afcd Uploaded
bcclaywell
parents:
diff changeset
7 csvjoin -c "specimen" ${GROUP_BY_SPECIMEN} - > ${DECORATED_GROUP_BY_SPECIMEN}
d4690e65afcd Uploaded
bcclaywell
parents:
diff changeset
8
d4690e65afcd Uploaded
bcclaywell
parents:
diff changeset
9 # drop duplicate columns (thanks, Erick!)
d4690e65afcd Uploaded
bcclaywell
parents:
diff changeset
10 #csvcut -c $(head -n 1 addresses.csv | sed "s/,/\n/g" | sort |uniq | paste -s -d",")