features

Module: features

Run feature extraction software.

Authors:

Copyright 2015, Sage Bionetworks (http://sagebase.org), Apache v2.0 License

mhealthx.features.opensmile_features_to_synapse(in_files, synapse_project_id, table_name, username, password)

Save openSMILE’s SMILExtract audio features to a Synapse table.

in_files : list of strings
full path to the input files
synapse_project_id : string
Synapse ID for project to which table is to be written
table_name : string
schema name of table
username : string
Synapse username (only needed once on a given machine)
password : string
Synapse password (only needed once on a given machine)
table_data : Pandas DataFrame
output table
table_name : string
schema name of table
synapse_table_id : string
Synapse table ID
>>> from mhealthx.features import opensmile_features_to_synapse
>>> in_files = ['/home/arno/smile/test1.wav.csv','/home/arno/smile/test2.wav.csv','/home/arno/smile/test3.wav.csv']
>>> synapse_project_id = 'syn4899451'
>>> table_name = 'Phonation openSMILE feature table'
>>> username = ''
>>> password = ''
>>> table_data, table_name, synapse_table_id = opensmile_features_to_synapse(in_files, synapse_project_id, table_name, username, password)