Skip to content

Instantly share code, notes, and snippets.

View cmaumet's full-sized avatar

Camille Maumet cmaumet

View GitHub Profile
index_by_id.json
{
'54561351531513' : {
'@type': nidm:designMatrix
'attribut_1': 18
'attribut_2': 'Design matrix'
}
'564561565413212' : {
'@type': nidm:contrast
@cmaumet
cmaumet / ex.jsonld
Last active August 10, 2018 13:57
Small JSON-LD and the turtle we would like to have
{
"@context": {
"DesignMatrix": "http://purl.org/nidash/nidm#DesignMatrix",
"value": "http://path_to_prov#value",
"regressorNames": "http://purl.org/nidash/nidm#regressorNames",
"hasDriftModel": "http://purl.org/nidash/nidm#hasDriftModel",
"SPMsDriftCutoffPeriod": "http://purl.org/nidash/spm#spm_SPMsDriftCutoffPeriod"
},
"DesignMatrix":
{
@cmaumet
cmaumet / ex.jsonld
Created August 9, 2018 20:48
A small JSON-LD example
{
"@context": {
"DesignMatrix": "http://purl.org/nidash/nidm#DesignMatrix",
"value": "http://path_to_prov#value",
"regressorNames": "http://purl.org/nidash/nidm#regressorNames",
"hasDriftModel": "http://purl.org/nidash/nidm#hasDriftModel",
"SPMsDriftCutoffPeriod": "http://purl.org/nidash/spm#spm_SPMsDriftCutoffPeriod"
},
"DesignMatrix":
{
@cmaumet
cmaumet / log_test_nidmfslviewer
Created January 30, 2018 14:01
log with "Empty mask image"
$ python Tests/testError.py
Downloading data
https://neurovault.org/collections/1692/fsl_con_f.nidm.zip
https://neurovault.org/collections/1692/fsl_contrast_mask.nidm.zip
https://neurovault.org/collections/1692/fsl_default.nidm.zip
https://neurovault.org/collections/1692/fsl_full_examples001.nidm.zip
https://neurovault.org/collections/1692/fsl_gamma_basis.nidm.zip
https://neurovault.org/collections/1692/fsl_gaussian.nidm.zip
https://neurovault.org/collections/1692/fsl_group_ols.nidm.zip
https://neurovault.org/collections/1692/fsl_group_wls.nidm.zip
@cmaumet
cmaumet / ds114_model.json
Last active October 18, 2018 16:32
BIDS-models for ds114
{
"name": "ds114_example",
"description": "An example of analysis using one run of ds114",
"image_data": "fingerfootlips",
"blocks": [
{
"level": "participant",
"inputs": {
"dependent_variable": "fingerfootlips"
},
{
"name": "one_sample_motor_bids_model",
"description": "Example of the simplest BIDS model: group analysis of motor activations",
"image_data": "motor",
"blocks": [
{
"level": "run",
"model": {
"predictors": ["motor"],
"hrf_variables": "all"
@cmaumet
cmaumet / spm_t_test-pr_1
Created March 17, 2016 15:30
GIT_TRACE=1 git lfs push --all origin spm_t_test-pr
cmaumet:nidmresults-examples_3 (spm_t_test-pr)$ GIT_TRACE=1 git lfs push --all origin spm_t_test-pr
15:28:45.317796 git.c:561 trace: exec: 'git-lfs' 'push' '--all' 'origin' 'spm_t_test-pr'
15:28:45.318402 run-command.c:334 trace: run_command: 'git-lfs' 'push' '--all' 'origin' 'spm_t_test-pr'
trace git-lfs: Upload refs origin to remote [spm_t_test-pr]
trace git-lfs: run_command: git rev-list --objects --do-walk spm_t_test-pr
trace git-lfs: run_command: git cat-file --batch-check
trace git-lfs: run_command: git cat-file --batch
trace git-lfs: run_command: 'git' config -l
trace git-lfs: tq: starting 3 transfer workers
trace git-lfs: tq: running as batched queue, batch size of 100
@cmaumet
cmaumet / AlexBowring_GIT_TRACE_1_git_lfs_push___all
Last active March 16, 2016 13:53
git-lfs-files-not-pushed
$ GIT_TRACE=1 git lfs push --all origin spm_t_test
16:12:54.928018 git.c:561 trace: exec: 'git-lfs' 'push' '--all' 'origin' 'spm_t_test'
16:12:54.928064 run-command.c:343 trace: run_command: 'git-lfs' 'push' '--all' 'origin' 'spm_t_test'
trace git-lfs: Upload refs origin to remote [spm_t_test]
trace git-lfs: run_command: git rev-list --objects --do-walk spm_t_test
trace git-lfs: run_command: git cat-file --batch-check
trace git-lfs: run_command: git cat-file --batch
trace git-lfs: run_command: 'git' config -l
trace git-lfs: tq: starting 3 transfer workers
trace git-lfs: tq: running as batched queue, batch size of 100
@cmaumet
cmaumet / gist:53ad4feda485d205e67a
Last active August 29, 2015 14:18
Definition of "fsl:ContrastVariance" (current status: uncurated)

This issue is open to discuss the definition of fsl:ContrastVariance.

Proposal

Given that the "contrast variance" is a generic concept, I would suggest to move this term to the nidm namespace and, similarly to what we have done for other Map terms in #255, how about: