Instantly share code, notes, and snippets.

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.')
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(, 30), axis=0, inplace=True)
merged.plot.scatter('cameraMedianHR', 'camera_heartRateMeasurement.json.answer')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment