chrismattmann / labkey-dumper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Labkey Dumper

This project builds upon the Labkey Client API to connect to a Labkey instance and then to dump out the Study objects from it into a JSON format. The JSON format looks like:

{"studies":[
   {
     "ParticipantAliasSourceProperty" : "null",
     "ParticipantAliasProperty" : "null",
     "Description" : "Some Description",
     "EndDate" : "null",
     "_labkeyurl_Label" : "/labkey/project/Project Name/start.view?",
     "AssayPlan" : "null",
     "Grant" : "Some Foundation",
     "StartDate" : "Tue Jan 01 00:00:00 EST 2008",
     "Investigator" : "Some PI, PhD",
     "ParticipantAliasDatasetId" : "null",
     "Label" : "Interactive Example - Study",
     "Species" : "null",
     "Container" : "6f743c1b-9506-1032-b9bf-51af32c4d069",
     "_labkeyurl_Container" : "/labkey/project/Study Name/begin.view?",
   }
    ]
}

Building this appilcation

  1. mkdir -p $HOME/src && cd $HOME/src
  2. git clone https://github.com/chrismattmann/labkey-dumper.git
  3. cd labkey-dumper && mvn install assembly:assembly

All done!

Running this application

A sample command would be:

java -Djava.ext.dirs=target gov.nasa.jpl.celgene.labkey.LabkeyDumper --url labkey-url --user email--pass thepass --project "Default Project"

About

License:Apache License 2.0


Languages

Language:Java 100.0%