2b3c259e853148c4532ea3c8154b51bb7662268b kent Tue Apr 26 23:23:42 2011 -0700 Adding raTagVals function. diff --git src/inc/ra.h src/inc/ra.h index 5d40d0a..1d9d328 100644 --- src/inc/ra.h +++ src/inc/ra.h @@ -65,17 +65,20 @@ * same name if they exist already. */ struct hash *raReadSingle(char *fileName); /* Read in first ra record in file and return as hash. */ struct hash *raReadAll(char *fileName, char *keyField); /* Return hash that contains all ra records in file keyed * by given field, which must exist. The values of the * hash are themselves hashes. */ struct hash *raReadWithFilter(char *fileName, char *keyField,char *filterKey,char *filterValue); /* Return hash that contains all filtered ra records in file keyed by given field, which must exist. * The values of the hash are themselves hashes. The filter is a key/value pair that must exist. * Example raReadWithFilter(file,"term","type","antibody"): returns hash of hashes of every term with type=antibody */ +struct hash *raTagVals(char *fileName, char *tag); +/* Return a hash of all values of given tag seen in any stanza of ra file. */ + #endif /* RA_H */