https://github.com/aces/data-query-tool

LORIS's Data Query Tool, written as a CouchApp

https://github.com/aces/data-query-tool

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

LORIS's Data Query Tool, written as a CouchApp

Basic Info
  • Host: GitHub
  • Owner: aces
  • Language: JavaScript
  • Default Branch: master
  • Homepage:
  • Size: 2.32 MB
Statistics
  • Stars: 2
  • Watchers: 32
  • Forks: 8
  • Open Issues: 1
  • Releases: 0
Created about 13 years ago · Last pushed over 3 years ago
Metadata Files
Readme

README.md

DQT 2.0

The new Loris Data Query Tool.

Prerequisites

Before using this code, you must have the following prerequisites installed

  • CouchDB >= 1.2 (http://couchdb.apache.org)

Installation

The Easy Way

Create a database on your local CouchDB instance

bash curl -X PUT $YOURCOUCHDBADMIN:$YOURCOUCHADMINPASS@127.0.0.1:5984/$YOURDATABASENAME

Clone the code from the server http://couchdb.loris.ca:5984/dataquerytool-$VERSION where $VERSION is separated by underscores rather than dots (because dots are not allowed in CouchDB database names.)

Example:

bash curl -H 'Content-Type: application/json' -X POST http://$YOURCOUCHDBADMIN:$YOURCOUCHADMINPASS@$YOURSERVERNAME:5984/_replicate -d '{"source":"http://couchdb.loris.ca:5984/dataquerytool-1_0_0", "target":"$YOURDATABASENAME"}'

The Hard Way (for development)

You will need the following dependency:

  • Erica (https://github.com/benoitc/erica)

First, create a CouchDB database using Futon (http://127.0.0.1:5984/_utils/index.html). In the following example, the database is named "dqg".

Next, clone this repository:

bash git clone git@github.com:aces/Data-Query-Tool.git

Finally, push to CouchDB using erica

bash cd Data-Query-Tool erica push http://adminuser:adminpass@127.0.0.1:5984/dqg

Visit http://127.0.0.1:5984/dqg/design/DQG-2.0/rewrite/ to ensure code was pushed.

Populating data from Loris

Amend the section of your LORIS config.xml

xml <CouchDB> <SyncAccounts>true</SyncAccounts> <database>dqg</database> <hostname>localhost</hostname> <port>5984</port> <admin>adminuser</admin> <adminpass>adminpass</adminpass> </CouchDB>

In your Loris tools directory run the CouchDB_Import_* scripts

```bash cd $lorisroot/tools

Import the base candidate data

php CouchDBImportDemographics.php

Import the Loris instrument data

This step is optional and not required if

only the MRI portion of Loris is used

php CouchDBImportInstruments.php

Import the Loris MRI data

This step is optional and not required

if the MRI portion of Loris isn't installed

php CouchDBImportMRI.php ```

Owner

  • Name: ACElab
  • Login: aces
  • Kind: organization
  • Location: Montreal, Quebec, Canada

McGill Centre for Integrative Neuroscience (MCIN) - Alan C. Evans, Ph.D., Principal Investigator

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 2
  • Total pull requests: 12
  • Average time to close issues: N/A
  • Average time to close pull requests: about 1 month
  • Total issue authors: 1
  • Total pull request authors: 4
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.17
  • Merged pull requests: 11
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ycAbout (1)
Pull Request Authors
  • Jkat (5)
  • taracampbell (2)
  • paiva (1)
  • christinerogers (1)
Top Labels
Issue Labels
bug (1)
Pull Request Labels
enhancement (1)