Giter Site home page Giter Site logo

scottsnapperlab / veoibd-synapse-data-manager Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 1002 KB

An interface for uploading and annotating data to Synapse for members of the VEOIBD consortium.

License: MIT License

Python 99.37% Shell 0.30% Batchfile 0.33%

veoibd-synapse-data-manager's Introduction

Documentation Status

Project Description

Admin related logistics regarding uploading and annotating data to Synapse for members of the VEOIBD consortium.

Before we begin

There are a few things that we take for granted at this point.

  1. You are a registered Synapse user.
  2. You have either Conda or Miniconda installed.
  3. You have the ability to execute Makefiles.
    • Linux/Unix/OS X should work fine out of the box.
    • Windows will need Cygwin installed or take advantage of the ability to run bash in Windows 10.

Registering with Synapse

  1. Create an account at Synapse
  2. You will need to register and become a certified user.

Installing

Download this project repository

Using git...

git clone https://github.com/ScottSnapperLab/veoibd-synapse-data-manager.git

Using your web browser...

  1. Click here to see a list of releases.
  2. Download and unzip.
  3. Navigate into the project folder.

"Install" the package

At your terminal, in the directory we created above:

make install

Now activate the conda environment that we just created with this command:

source activate veoibd_synapse

And let's see the program's main help text:

$ veoibd_synapse --help
Usage: veoibd_synapse [OPTIONS] COMMAND [ARGS]...

  Command interface to the veoibd-synapse-manager.

  For command specific help text, call the specific command followed by the
  --help option.

Options:
  -c, --config DIRECTORY  Path to optional config directory. If `None`,
                          configs/ is searched for *.yaml files.
  --home                  Print the home directory of the install and exit.
  --help                  Show this message and exit.

Commands:
  configs  Manage configuration values and files.
  push     Consume a push-config file, execute described...

Configuring

To generate fresh example configs in the config directory, use the veoibd_synapse configs command.

Usage: veoibd_synapse configs [OPTIONS]

  Manage configuration values and files.

Options:
  -l, --list                      Print the configuration values that will be
                                  used and exit.
  -g, --generate-configs          Copy one or more of the 'factory default'
                                  config files to the top-level config
                                  directory. Back ups will be made of any
                                  existing config files.  [default: False]
  -k, --kind [all|site|users|projects|push|pull]
                                  Which type of config should we replace?
                                  [default: all]
  --help                          Show this message and exit.
  • See Usage for more detailed information.

To generate a full set of fresh configs, run this:

veoibd_synapse configs --generate-configs

Uploading a batch of files

  • You need to have a project created on Synapse for the files to be sent to.
  • You will need to have created the appropriate configuration files:
    • See the config section
  • See Usage for more detailed information.

Lets take a look at the help text for the push command:

$ veoibd_synapse push  --help

Usage: veoibd_synapse push [OPTIONS]

  Consume a push-config file, execute described transactions, save record of
  transactions.

Options:
  -u, --user TEXT     Provide the ID for a user listed in the 'users' config
                      file.
  --push-config PATH  Path to the file where this specific 'push' is
                      configured.
  --help              Show this message and exit.

And a quick example command would be:

$ veoibd_synapse push -u GUSDUNN --push-config configs/GUSDUNN/new_WES_files.yaml

veoibd-synapse-data-manager's People

Contributors

xguse avatar

Watchers

 avatar James Cloos avatar

veoibd-synapse-data-manager's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.