https://github.com/ab4377/dream-project
Raw File
Tip revision: 8e64d9628355fde264b6481f9955478fed995fe5 authored by Avinash Bukkittu on 04 October 2017, 22:20:26 UTC
Merge branch 'master' of https://github.com/ab4377/dream-project
Tip revision: 8e64d96
GetLabels.py
import pandas as pd
import os
import synapseclient

def main():
	syn = synapseclient.login(email='ab4377@columbia.edu', password='Shivbaba1234@', rememberMe=True)
	print "Querying the Walking training table..."
	#Query 'walking training table' for walk data recordIDs and healthCodes. 
	INPUT_WALKING_ACTIVITY_TABLE_SYNID = "syn10733842"
	actv_walking_syntable = syn.tableQuery(('SELECT * FROM {0}').format(INPUT_WALKING_ACTIVITY_TABLE_SYNID))
	actv_walking = actv_walking_syntable.asDataFrame()
	actv_walking[["recordId","phoneInfo"]].to_csv('meta-data-testing.csv',index=False,header=True)
	print "Done!"
	
if __name__ == '__main__':
	main()
back to top