Instantly share code, notes, and snippets.

Embed
What would you like to do?
import synapseclient as sc
import matplotlib.pyplot as plt
import pandas as pd
import argparse
def read_args():
parser = argparse.ArgumentParser(description='Plot camera vs oximeter readings.')
parser.add_argument('medianData')
return parser.parse_args()
if __name__ == '__main__':
args = read_args()
syn = sc.login()
synapseData = syn.tableQuery("select * from syn10893615").asDataFrame()
medianData = pd.read_csv(args.medianData)
merged = medianData.merge(synapseData, on='recordId', how='left')
merged.drop(pd.np.arange(19, 30), axis=0, inplace=True)
merged.plot.scatter('cameraMedianHR', 'camera_heartRateMeasurement.json.answer')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment