summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/Makefile.am11
-rw-r--r--src/aggregator.c7
-rw-r--r--src/updator.c33
3 files changed, 43 insertions, 8 deletions
diff --git a/src/updator.c b/src/updator.c
new file mode 100644
index 0000000..8d556da
--- a/dev/null
+++ b/src/updator.c
@@ -0,0 +1,33 @@
+/*
+ * Update derived fields.
+ */
+
+#include "assign_protein_type.h"
+#include "check_h5_error.h"
+
+#define FILE "influenza.h5"
+
+int
+main ()
+{
+ /*
+ * Open the HDF5 file.
+ */
+ hid_t file_id = H5Fopen (FILE, H5F_ACC_RDWR, H5P_DEFAULT);
+ if (file_id < 0)
+ check_h5_error (file_id, __FILE__, __LINE__);
+
+ /*
+ * Assign protein type values to the sequence records.
+ */
+ assign_protein_type (file_id);
+
+ /*
+ * Close the HDF5 file.
+ */
+ herr_t status = H5Fclose (file_id);
+ if (status < 0)
+ check_h5_error (status, __FILE__, __LINE__);
+
+ return 0;
+}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.