The first step of any analysis is to retrieve a relevant portion of data from the mySQL database to local Matlab files for analysis. This is done using the
SQL_retrieve function described earlier, except we use the
'all' input to retrieve all data, rather than the
'null' input used to retrieve just missing data (requiring calculation).
Example usage is as follows:
op_ids, specifying the ts_ids and op_ids to be retrieved from the database.
Sets of ts_ids and op_ids to retrieve can be selected by inspecting the database, or by retrieving relevant sets of keywords using the
SQL_getids function. Running the code in this way, using the ‘all’ tag, ensures that the full range of ts_ids and op_ids specified are retrieved from the database and stored in the local file, HCTSA.mat, which can then form the basis of subsequent analysis.
The database structure provides much flexibility in storing and indexing the large datasets that can be analyzed using the hctsa approach, however the process of retrieving and storing large amounts of data from a database can take a considerable amount of time, depending on database latencies.
Note that missing, or NULL, entries in the database are converted to NaN entries in the local Matlab matrices.