Skip to content

Instantly share code, notes, and snippets.

View surchs's full-sized avatar

Sebastian Urchs surchs

View GitHub Profile
{
"age": {
"Annotations": {
"IsAbout": {
"TermURL": "nb:Age",
"Label": ""
}
},
"Description": "There should have been a description here, but there wasn't. :("
},
{
"participant_id": {
"Description": "Identification number for each participant",
"Annotations": {
"IsAbout": {
"TermURL": "nb:ParticipantID",
"Label": ""
}
}
},
@surchs
surchs / bagel_schema.json
Created June 8, 2023 03:26
A Neurobagel data dictionary schema
{
"title": "DataDictionary",
"description": "A data dictionary with human and machine readable information for a tabular data file",
"type": "object",
"additionalProperties": {
"anyOf": [
{
"$ref": "#/definitions/ContinuousColumn"
},
{
@surchs
surchs / using_getter.patch
Created January 26, 2023 16:41
Using the isPageAccessible getter in nav and tool-bar
diff --git a/components/next-page.vue b/components/next-page.vue
index f844ec6..bf4302e 100644
--- a/components/next-page.vue
+++ b/components/next-page.vue
@@ -14,7 +14,7 @@
<b-button
class="float-right"
data-cy="button-nextpage"
- :disabled="!pageData[getNextPage].accessible"
+ :disabled="!isPageAccessible(pageData[getNextPage].pageName)"
@surchs
surchs / conda_list_on_conda_env.txt
Created October 2, 2020 12:53
Conda environment error for dash-image-annotation
# Name Version Build Channel
_libgcc_mutex 0.1 main
blas 1.0 mkl
brotlipy 0.7.0 py38h7b6447c_1000
ca-certificates 2020.7.22 0
certifi 2020.6.20 py38_0
cffi 1.14.3 py38he30daa8_0
click 7.1.2 py_0
cloudpickle 1.6.0 py_0
cycler 0.10.0 py38_0
@surchs
surchs / dash-image-annotation.log
Created October 2, 2020 12:45
Console log for dash-image-annotation error
dash_renderer.v1_1_2m1576595738.min.js:20 The following error occurred while executing _dashprivate_dummy.children in order to update component "dummy.children" ⋁⋁⋁
en @ dash_renderer.v1_1_2m1576595738.min.js:20
dash_renderer.v1_1_2m1576595738.min.js:20 TypeError: Cannot read property 'click' of null
at Object.ns.children ((index):51)
at en (dash_renderer.v1_1_2m1576595738.min.js:20)
at dash_renderer.v1_1_2m1576595738.min.js:20
at dash_renderer.v1_1_2m1576595738.min.js:20
at dispatch (dash_renderer.v1_1_2m1576595738.min.js:1)
at dash_renderer.v1_1_2m1576595738.min.js:20
at Array.forEach (<anonymous>)
@surchs
surchs / cluster_matrix_demonstration.ipynb
Created August 19, 2020 04:23
This gist demonstrates a function used to visualize the hierarchical organization of functional brain networks in the MIST brain atlas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@surchs
surchs / fmriprep_out_tree.txt
Created April 5, 2018 02:35
Example fmriprep output
fmriprep/
├── logs
├── sub-0050784
│   ├── anat
│   │   ├── sub-0050784_T1w_brainmask.nii.gz
│   │   ├── sub-0050784_T1w_class-CSF_probtissue.nii.gz
│   │   ├── sub-0050784_T1w_class-GM_probtissue.nii.gz
│   │   ├── sub-0050784_T1w_class-WM_probtissue.nii.gz
│   │   ├── sub-0050784_T1w_dtissue.nii.gz
│   │   ├── sub-0050784_T1w_preproc.nii.gz
@surchs
surchs / abide2_trt.ipynb
Created April 4, 2018 01:46
ABIDE 2 notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@surchs
surchs / fmriprep_benchmark.tsv
Created March 7, 2018 02:36
Several runs with different settings on fmriprep v1.0.8
jid n_core n_sub n_thread State ExitCode Elapsed Time(S) Time(H) MaxVMSize(G) MaxRSS(G) AveRSS(G)
5832275 4 1 4 COMPLETED 0:0 02:07:17 7637.0 2.1213888888888888 5.986812 3.043676 0.548431
5832280 8 1 4 COMPLETED 0:0 01:50:44 6644.0 1.8455555555555556 7.986024 3.518355 1.226315
5832282 8 1 8 COMPLETED 0:0 01:21:56 4916.0 1.3655555555555556 7.370552 2.677889 0.944018
5832283 16 1 4 COMPLETED 0:0 01:47:37 6457.0 1.793611111111111 11.080608 3.733517 1.108727
5832288 16 1 8 COMPLETED 0:0 01:00:24 3624.0 1.0066666666666666 12.048396 3.610071 1.156689
5832295 16 1 9 COMPLETED 0:0 00:58:09 3489.0 0.9691666666666666 12.370292 4.686292 1.358672
5832301 16 1 10 COMPLETED 0:0 00:57:05 3425.0 0.9513888888888888 12.715072 4.47228 1.677858
5832305 16 1 11 COMPLETED 0:0 00:53:42 3222.0 0.895 11.753868 3.557895 1.407773
5832307 16 1 12 COMPLETED 0:0 00:49:50 2990.0 0.8305555555555556 12.28552 3.897502 1.122236