/* * Aggregate the collected influenza data into a single HDF5 * container. */ #include "error/check_h5_error.h" #include "load/load_influenza_aa_dat.h" #include "load/load_influenza_faa.h" #define FILE "influenza.h5" int main () { /* * Create the HDF5 file. */ hid_t file_id = H5Fcreate (FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); if (file_id < 0) check_h5_error (file_id, __FILE__, __LINE__); /* * Load the supplementary protein data file. */ load_influenza_aa_dat (file_id); /* * Load the FASTA protein sequence data file. */ load_influenza_faa (file_id); /* * Close the HDF5 file. */ herr_t status = H5Fclose (file_id); if (status < 0) check_h5_error (status, __FILE__, __LINE__); return 0; }