src/hg/utils/refSeqGet/refSeqVerInfo.h 1.1
1.1 2009/11/23 02:56:20 markd
added program to get consistent versions of refseq data from database
Index: src/hg/utils/refSeqGet/refSeqVerInfo.h
===================================================================
RCS file: src/hg/utils/refSeqGet/refSeqVerInfo.h
diff -N src/hg/utils/refSeqGet/refSeqVerInfo.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/hg/utils/refSeqGet/refSeqVerInfo.h 23 Nov 2009 02:56:20 -0000 1.1
@@ -0,0 +1,27 @@
+/* object to track refseqs that are to be retrieved */
+#ifndef refSeqVerInfo_h
+#define refSeqVerInfo_h
+struct sqlConnection;
+
+struct refSeqVerInfo
+/* Version information for refseqs being retrieved. Constructed from either the -accList
+ * file or the all native RefSeqs in the database.
+ */
+{
+ struct refSeqVerInfo *next;
+ char *acc; // accession without version
+ int ver; // current version in database, or 0 if not in database
+ int requestVer; // requested version from accList, or 0 if version not specified.
+};
+
+struct hash *refSeqVerInfoFromDb(struct sqlConnection *conn, boolean getNM, boolean getNR);
+/* load refSeqVerInfo table for all native refseqs in the database */
+
+struct hash *refSeqVerInfoFromFile(struct sqlConnection *conn, char *accList);
+/* load refSeqVerInfo table for all native refseqs specified in a file, then validate it against
+ * the database. */
+
+int refSeqVerInfoGetVersion(char *acc, struct sqlConnection *conn);
+/* get the version from the database, or zero if accession is not found */
+
+#endif