Dev of analysis helpers

Sorry for the massive amount of changes; probably breaks some things so I can undo and handle them separately. You might want to pull this branch separately and test.

Added logging instead of print lines.

Removed global synapse login; each function should take a synapseclient.Synapse object (more flexibility)

Rewrote the query2df to handle different table types (entity, file, etc). Also, added option if passing a delimiter, merges values in a column instead of taking the first one.
 Completely agree, just a thought for more complete support.

/Larsson

On Dec 18, 2014, at 5:18 PM, Kenneth Daily <notifications@github.com> wrote:

> In synapseHelpers.py:
> 
> >      import pandas as pd
> > -    queryContent = pd.DataFrame(queryContent['results'])
> > -    #Remove the unecessary lists and 'entity' in names  (this should be fixed on Synapse!)
> > -    for key in queryContent.keys():
> > -        if filterSynapseFields and key in ['entity.benefactorId', 'entity.nodeType', 'entity.concreteType', 'entity.createdByPrincipalId', 'entity.createdOn', 'entity.createdByPrincipalId', 'entity.eTag', 'entity.id', 'entity.modifiedOn', 'entity.modifiedByPrincipalId', 'entity.noteType', 'entity.versionLabel', 'entity.versionComment', 'entity.versionNumber', 'entity.parentId', 'entity.description']:
> > -            del queryContent[key]
> > +
> > +    if type(queryContent) is dict:
> > +        queryContent = queryContent['results']
> True; but you were explicitly expecting a dict with key 'results'; so that still should be handled?
> 
> —
> Reply to this email directly or view it on GitHub.
>