Skip to content

Commit

Permalink
Deploying to gh-pages from @ b92e14d 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdoc committed Apr 26, 2024
1 parent e57ecd8 commit 6d121d1
Show file tree
Hide file tree
Showing 585 changed files with 18,508 additions and 26,714 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 13b17c5c373045c1725623acad9b96b1
config: 0e5232a893a37e47ccfdc6e2362e71ce
tags: 645f666f9bcd5a90fca523b33c5a78b7
13 changes: 1 addition & 12 deletions _downloads/0171ca85d45eca4cef1870c2e499de10/plot_make_gif.ipynb
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -125,7 +114,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -46,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -46,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -46,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -46,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -46,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
mni_data = mni.transform_to_mni(data, s1_to_mni)
# mni_data is a nibabel Nifti1Image

mni_data_vol = mni_data.get_data() # the actual array, shape=(182,218,182)
mni_data_vol = mni_data.get_fdata() # the actual array, shape=(182,218,182)

# That was the manual method. pycortex can also cache these transforms for you
# if you get them using the pycortex database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
data.data, s1_to_mni)
# subject_data is a nibabel Nifti1Image

subject_data_vol = mni_data.get_data() # the actual array, shape=(100,100,31)
subject_data_vol = mni_data.get_fdata() # the actual array, shape=(100,100,31)

# That was the manual method. pycortex can also cache these transforms for you
# if you get them using the pycortex database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
surfs = [cortex.polyutils.Surface(*d)
for d in cortex.db.get_surf(subject, "fiducial")]
numl = surfs[0].pts.shape[0]
numr = surfs[1].pts.shape[0]
num_vertices = numl + numr

# Now we need to pick the start and end points of the line we will draw
pt_a = 100
Expand All @@ -33,12 +35,12 @@
path = surfs[0].geodesic_path(pt_a, pt_b)

# In order to plot this on the cortical surface, we need an array that is the
# same size as the number of vertices in the left hemisphere
path_data = np.zeros(numl)
# same size as the number of vertices
path_data = np.zeros(num_vertices) * np.nan
for v in path:
path_data[v] = 1

# And now plot these distances onto the cortical surface
path_verts = cortex.Vertex(path_data, subject, cmap="Blues_r")
cortex.quickshow(path_verts, with_colorbar=False)
path_verts = cortex.Vertex(path_data, subject, cmap="Reds", vmin=0, vmax=1)
cortex.quickshow(path_verts, with_colorbar=False, with_curvature=True)
plt.show()
13 changes: 1 addition & 12 deletions _downloads/344a9c20fa2e5b85144a3143c290594a/static.ipynb
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -46,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -46,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -143,7 +132,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
13 changes: 1 addition & 12 deletions _downloads/38bd34ef15da8508933ae951daa9dfc6/plot_dropout.ipynb
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -46,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Get ROI Voxel Mask\n\nGet proportion of each voxel that exists within a named ROI (this \nconstitutes a probability map for the ROI, with values ranging from\n0-1). Plot this probablistic roi mask onto a flatmap. \n\nIn order for this to work, the specified ROI must exist in the\noverlays.svg file in the pycortex filestore for this subject.\n"
"\n# Get ROI Voxel Mask\n\nGet proportion of each voxel that exists within a named ROI (this \nconstitutes a probability map for the ROI, with values ranging from\n0-1). Plot this probabilistic roi mask onto a flatmap. \n\nIn order for this to work, the specified ROI must exist in the\noverlays.svg file in the pycortex filestore for this subject.\n"
]
},
{
Expand All @@ -26,7 +15,7 @@
},
"outputs": [],
"source": [
"import cortex\nimport matplotlib.pyplot as plt\n\nsubject = \"S1\"\nxfm = \"fullhead\"\nroi = \"EBA\"\n\n# Get the map of which voxels are inside of our ROI\nroi_masks = cortex.utils.get_roi_masks(subject, xfm, \n roi_list=[roi],\n gm_sampler='cortical-conservative', # Select only voxels mostly within cortex\n split_lr=False, # No separate left/right ROIs\n threshold=None, # Leave roi mask values as probabilites / fractions\n return_dict=True\n )\n\n# Plot the mask for one ROI onto a flatmap\nroi_data = cortex.Volume(roi_masks[roi], subject, xfm, \n vmin=0, # This is a probability mask, so only\n vmax=1, # so scale btw zero and one\n cmap=\"inferno\", # For pretty\n )\n\ncortex.quickflat.make_figure(roi_data,\n thick=1, # select a single depth (btw white matter & pia)\n sampler='nearest', # no interpolation\n with_curvature=True,\n with_colorbar=True,\n )\n\nplt.show()"
"import cortex\nimport matplotlib.pyplot as plt\n\nsubject = \"S1\"\nxfm = \"fullhead\"\nroi = \"EBA\"\n\n# Get the map of which voxels are inside of our ROI\nroi_masks = cortex.utils.get_roi_masks(subject, xfm, \n roi_list=[roi],\n gm_sampler='cortical-conservative', # Select only voxels mostly within cortex\n split_lr=False, # No separate left/right ROIs\n threshold=None, # Leave roi mask values as probabilities / fractions\n return_dict=True\n )\n\n# Plot the mask for one ROI onto a flatmap\nroi_data = cortex.Volume(roi_masks[roi], subject, xfm, \n vmin=0, # This is a probability mask, so only\n vmax=1, # so scale btw zero and one\n cmap=\"inferno\", # For pretty\n )\n\ncortex.quickflat.make_figure(roi_data,\n thick=1, # select a single depth (btw white matter & pia)\n sampler='nearest', # no interpolation\n with_curvature=True,\n with_colorbar=True,\n )\n\nplt.show()"
]
}
],
Expand All @@ -46,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -46,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 6d121d1

Please sign in to comment.