Skip to content

A simple Synapse organization and maintenance python client program

Notifications You must be signed in to change notification settings

BruneauLab-GladstoneInstitutes/simpleSynapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

simpleSynapse

Synapse is an open source software platform for researchers to coordinate projects and freely store their data on Amazon S3 Bucket, Google Cloud Storage Bucket, or with Synapse Storage. simpleSynapse is a Python API and CLI that allows data scientists to organize, version control, and share data with a simple push or pull.

Requirements

Installation

System-wide Python installation:

pip install simpleSynapse

UCSF Wynton HPC cluster:

python3 -m pip install --user simpleSynapse

Usage

simpleSynapse either pulls data from Synapse or pushes data to Synapse.

Pull

A simpleSynapse data pull downloads the most recently uploaded files without overwriting local updates. A first time project pull will create a local folder, with the name of the project, to store the data. Users can either use simpleSynapse or the Synapse GUI to create new folders.

Push

A simpleSynapse data push will only upload new files/folders or files that have had their content changed. The latter case will create a new file version on Synapse that by default will be the most recent upload ready for a pull.

Python

import simpleSynapse

simpleSynapse.push(<username>, <password>, <project>)
simpleSynapse.pull(<username>, <password>, <project>)

Command Line Interface

simpleSynapsePush --username <username> --password <password> --project <project>
simpleSynapsePull --username <username> --password <password> --project <project>

Tutorial

For a detailed tutorial please visit our public SimplySynapse data repository.

Acknowledgements

Thanks extend to Sage Bionetworks for developing the Synapse Python client, for which without SimpleSynapse would be much less simple.

About

A simple Synapse organization and maintenance python client program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages