Skip to content

Commit cd963a3

Browse files
authored
Merge pull request #55 from dandi/bf-codespell
codespell: ignore any lines which have data.*base64 - embedded binaries, fix typos introduced in recent PRs
2 parents 7c9ef30 + 18968a0 commit cd963a3

File tree

34 files changed

+62
-62
lines changed

34 files changed

+62
-62
lines changed

.codespellrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[codespell]
22
skip = .git,*.pdf,*.svg
3-
# all images embedded in .ipynb jsons
4-
ignore-regex = "image/png": ".*
3+
# all images and other binaries embedded in .ipynb jsons
4+
ignore-regex = "image/png": ".*|^ *".*data:\S+;base64.*
55
# nd - people just like it
66
ignore-words-list = nd

000005/DataJoint/DJ-NWB-Yu-Gutnisky-2016/notebooks/Yu-Gutnisky-2016-examples.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1760,10 +1760,10 @@
17601760
" <span class=\"djtooltiptext\">in mm, anterior positive, posterior negative</span>\n",
17611761
" </div></th><th><div class=\"djtooltip\">\n",
17621762
" <p id=\"primary\">coordinate_ml</p>\n",
1763-
" <span class=\"djtooltiptext\">in mm, always postive, number larger when more lateral</span>\n",
1763+
" <span class=\"djtooltiptext\">in mm, always positive, number larger when more lateral</span>\n",
17641764
" </div></th><th><div class=\"djtooltip\">\n",
17651765
" <p id=\"primary\">coordinate_dv</p>\n",
1766-
" <span class=\"djtooltiptext\">in mm, always postive, number larger when more ventral (deeper)</span>\n",
1766+
" <span class=\"djtooltiptext\">in mm, always positive, number larger when more ventral (deeper)</span>\n",
17671767
" </div></th><th><div class=\"djtooltip\">\n",
17681768
" <p id=\"nonprimary\">spike_times</p>\n",
17691769
" <span class=\"djtooltiptext\">(s) time of each spike, with respect to the start of session</span>\n",

000005/DataJoint/DJ-NWB-Yu-Gutnisky-2016/pipeline/acquisition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
Schema of aquisition information.
2+
Schema of acquisition information.
33
'''
44
import re
55
import os

000005/DataJoint/DJ-NWB-Yu-Gutnisky-2016/pipeline/reference.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ class ActionLocation(dj.Manual):
9393
-> BrainLocation
9494
-> CoordinateReference
9595
coordinate_ap: decimal(4,2) # in mm, anterior positive, posterior negative
96-
coordinate_ml: decimal(4,2) # in mm, always postive, number larger when more lateral
97-
coordinate_dv: decimal(4,2) # in mm, always postive, number larger when more ventral (deeper)
96+
coordinate_ml: decimal(4,2) # in mm, always positive, number larger when more lateral
97+
coordinate_dv: decimal(4,2) # in mm, always positive, number larger when more ventral (deeper)
9898
"""
9999

100100

000005/DataJoint/DJ-NWB-Yu-Gutnisky-2016/pipeline/virus.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Virus(dj.Manual):
2929
virus: varchar(64) # name of the virus
3030
---
3131
-> VirusSource
32-
virus_lot_number="": varchar(128) # lot numnber of the virus
32+
virus_lot_number="": varchar(128) # lot number of the virus
3333
virus_titer=null: float # x10^12GC/mL
3434
"""
3535

000006/DataJoint/DJ-NWB-Economo-2018/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ This notebook presents data and results associated with the following papers:
88
>Michael N. Economo, Sarada Viswanathan, Bosiljka Tasic, Erhan Bas, Johan Winnubst, Vilas Menon, Lucas T. Graybuck, Thuc Nghi Nguyen, Kimberly A. Smith, Zizhen Yao, Lihua Wang, Charles R. Gerfen, Jayaram Chandrashekar, Hongkui Zeng, Loren L. Looger & Karel Svoboda. "Distinct descending motor cortex
99
pathways and their roles in movement" (2018) Nature (https://doi.org/10.1038/s41586-018-0642-9)
1010

11-
The study identified two types of pyramidal track (PT) neuron in the mouse motor cortex, referred to as PT<sub>upper</sub> and PT<sub>lower</sub>. Further investigation using extracellular recordings in the anterior lateral motor cortex (ALM) during a delay-response task, the study revealed specialized roles for the two neuron types: i) PT<sub>upper</sub> neurons are preferentially involed in motor planning, ii) PT<sub>lower</sub> neurons are more involved in movement execution.
11+
The study identified two types of pyramidal track (PT) neuron in the mouse motor cortex, referred to as PT<sub>upper</sub> and PT<sub>lower</sub>. Further investigation using extracellular recordings in the anterior lateral motor cortex (ALM) during a delay-response task, the study revealed specialized roles for the two neuron types: i) PT<sub>upper</sub> neurons are preferentially involved in motor planning, ii) PT<sub>lower</sub> neurons are more involved in movement execution.
1212

1313
A ***DataJoint*** data pipeline has been constructed for this study, with the presented data ingested into this pipeline. This notebook demonstrates the queries, processing, and reproduction of several figures from the paper. From the pipeline, export capability to ***NWB 2.0*** format is also available.
1414

1515
## About the data
1616

1717
The dataset comprises of extracellular recordings and spike sorted results of the mouse's ALM during a delay-response task. The behavior data includes detailed description of the trial structure (e.g. trial timing, trial instruction, trial response, etc.) and the timing of the lick events (e.g. lick left, lick right onset).
1818

19-
Original data is publically available at: doi: 10.25378/janelia.7007846
19+
Original data is publicly available at: doi: 10.25378/janelia.7007846
2020

2121
The data in original MATLAB format (.mat) have been ingested into a DataJoint data pipeline presented below.
2222

000006/DataJoint/DJ-NWB-Economo-2018/notebooks/Economo-2018-examples.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
">Michael N. Economo, Sarada Viswanathan, Bosiljka Tasic, Erhan Bas, Johan Winnubst, Vilas Menon, Lucas T. Graybuck,Thuc Nghi Nguyen, Kimberly A. Smith, Zizhen Yao, Lihua Wang, Charles R. Gerfen, Jayaram Chandrashekar, Hongkui Zeng, Loren L. Looger & Karel Svoboda. \"Distinct descending motor cortex\n",
1111
"pathways and their roles in movement\" (2018) Nature (https://doi.org/10.1038/s41586-018-0642-9)\n",
1212
"\n",
13-
"The study identified two types of pyramidal track (PT) neuron in the mouse motor cortex, referred to as PT<sub>upper</sub> and PT<sub>lower</sub>. Further investigation using extracellular recordings in the anterior lateral motor cortex (ALM) during a delay-response task, the study revealed specialized roles for the two neuron types: i) PT<sub>upper</sub> neurons are preferentially involed in motor planning, ii) PT<sub>lower</sub> neurons are more involved in movement execution. \n",
13+
"The study identified two types of pyramidal track (PT) neuron in the mouse motor cortex, referred to as PT<sub>upper</sub> and PT<sub>lower</sub>. Further investigation using extracellular recordings in the anterior lateral motor cortex (ALM) during a delay-response task, the study revealed specialized roles for the two neuron types: i) PT<sub>upper</sub> neurons are preferentially involved in motor planning, ii) PT<sub>lower</sub> neurons are more involved in movement execution. \n",
1414
"\n",
1515
"A ***DataJoint*** data pipeline has been constructed for this study, with the presented data ingested into this pipeline. This notebook demonstrates the queries, processing, and reproduction of several figures from the paper. From the pipeline, export capability to ***NWB 2.0*** format is also available."
1616
]
@@ -23,7 +23,7 @@
2323
"\n",
2424
"The dataset comprises of extracellular recordings and spike sorted results of the mouse's ALM during a delay-response task. The behavior data includes detailed description of the trial structure (e.g. trial timing, trial instruction, trial response, etc.) and the timing of the lick events (e.g. lick left, lick right onset). \n",
2525
"\n",
26-
"Original data is publically available at: doi: 10.25378/janelia.7007846\n",
26+
"Original data is publicly available at: doi: 10.25378/janelia.7007846\n",
2727
"\n",
2828
"The data in original MATLAB format (.mat) have been ingested into a DataJoint data pipeline presented below. \n",
2929
"\n",

000006/DataJoint/DJ-NWB-Economo-2018/pipeline/reference.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ class ActionLocation(dj.Manual):
7373
-> BrainLocation
7474
-> CoordinateReference
7575
coordinate_ap: decimal(4,2) # in mm, anterior positive, posterior negative
76-
coordinate_ml: decimal(4,2) # in mm, always postive, number larger when more lateral
77-
coordinate_dv: decimal(4,2) # in mm, always postive, number larger when more ventral (deeper)
76+
coordinate_ml: decimal(4,2) # in mm, always positive, number larger when more lateral
77+
coordinate_dv: decimal(4,2) # in mm, always positive, number larger when more ventral (deeper)
7878
"""
7979

8080

000007/DataJoint/DJ-NWB-Gao-2018/pipeline/acquisition.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
Schema of aquisition information.
2+
Schema of acquisition information.
33
'''
44
import datajoint as dj
55
from pipeline import reference, subject
@@ -49,6 +49,6 @@ class PhotoStim(dj.Manual):
4949
-> reference.Hemisphere
5050
-> reference.CoordinateReference
5151
photo_stim_coordinate_ap: float # in mm, anterior positive, posterior negative
52-
photo_stim_coordinate_ml: float # in mm, always postive, number larger when more lateral
53-
photo_stim_coordinate_dv: float # in mm, always postive, number larger when more ventral (deeper)
52+
photo_stim_coordinate_ml: float # in mm, always positive, number larger when more lateral
53+
photo_stim_coordinate_dv: float # in mm, always positive, number larger when more ventral (deeper)
5454
"""

000007/DataJoint/DJ-NWB-Gao-2018/pipeline/reference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Virus(dj.Lookup):
9595
virus: varchar(32) # name of the virus
9696
---
9797
-> VirusSource
98-
virus_lot_number="": varchar(128) # lot numnber of the virus
98+
virus_lot_number="": varchar(128) # lot number of the virus
9999
"""
100100
contents = [{
101101
'virus': 'AAV2-hSyn-hChR2(H134R)-EYFP',

000009/DataJoint/DJ-NWB-Guo-Inagaki-2017/notebooks/Guo-Inagaki-2017-examples.ipynb

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"\n",
1313
"The study sheds new insights into the persistnent neural activity of the frontal thalamocortical circuit, suggesting that reciprocal excitation between the anterior lateral motor cortex (ALM) and the thalamus is needed to maintain persistent activity in motor preparation. Intracellular and extracellular recordings were performed on mouse ALM and thalamus neurons during tectile discrimination task with and without optogenetic perturbation. The study reported near-complete collapse of ALM activity upon photoinhibition of the thalamus, and photoinhibition of the ALM resulted in diminished thalamic activity. \n",
1414
"\n",
15-
"This notebook provides demonstrations of working with a ***DataJoint*** data pipeline in querying data, apply data conditioning and reproduce some key figures in the paper. The orignal data available in NWB 2.0 format had been ingested into a DataJoint data pipeline (data pipeline schema is given below). As a validation of complete ingestion of the original data into DataJoint, figures 3b,e, 6b,e and 4b,e,h will be reproduced in this notebook."
15+
"This notebook provides demonstrations of working with a ***DataJoint*** data pipeline in querying data, apply data conditioning and reproduce some key figures in the paper. The original data available in NWB 2.0 format had been ingested into a DataJoint data pipeline (data pipeline schema is given below). As a validation of complete ingestion of the original data into DataJoint, figures 3b,e, 6b,e and 4b,e,h will be reproduced in this notebook."
1616
]
1717
},
1818
{
@@ -1565,10 +1565,10 @@
15651565
" <span class=\"djtooltiptext\">in mm, anterior positive, posterior negative</span>\n",
15661566
" </div></th><th><div class=\"djtooltip\">\n",
15671567
" <p id=\"primary\">coordinate_ml</p>\n",
1568-
" <span class=\"djtooltiptext\">in mm, always postive, number larger when more lateral</span>\n",
1568+
" <span class=\"djtooltiptext\">in mm, always positive, number larger when more lateral</span>\n",
15691569
" </div></th><th><div class=\"djtooltip\">\n",
15701570
" <p id=\"primary\">coordinate_dv</p>\n",
1571-
" <span class=\"djtooltiptext\">in mm, always postive, number larger when more ventral (deeper)</span>\n",
1571+
" <span class=\"djtooltiptext\">in mm, always positive, number larger when more ventral (deeper)</span>\n",
15721572
" </div></th><th><div class=\"djtooltip\">\n",
15731573
" <p id=\"primary\">unit_id</p>\n",
15741574
" <span class=\"djtooltiptext\"></span>\n",
@@ -3110,7 +3110,7 @@
31103110
"source": [
31113111
"The following parts of this example relates to the extracellular recording results of this study, namely the neuronal spiking patterns in response to photostimulation.\n",
31123112
"\n",
3113-
"Fairly similar to the routine layed out above, we wish to query neuronal spike times, segmented time-locked to the \"delay\" period, categorized by recording locations and photostimulation locations:\n",
3113+
"Fairly similar to the routine laid out above, we wish to query neuronal spike times, segmented time-locked to the \"delay\" period, categorized by recording locations and photostimulation locations:\n",
31143114
"+ Recording at ALM, stimulation at ALM\n",
31153115
"+ Recording at ALM, stimulation at Thalamus\n",
31163116
"+ Recording at Thalamus, stimulation at Thalamus\n",
@@ -3309,7 +3309,7 @@
33093309
"cell_type": "markdown",
33103310
"metadata": {},
33113311
"source": [
3312-
"Here, we define a helper function to query and fetch the trial-segmented spike times for a single unit in a specifed session: `query_unit_segmented_spiketimes()`"
3312+
"Here, we define a helper function to query and fetch the trial-segmented spike times for a single unit in a specified session: `query_unit_segmented_spiketimes()`"
33133313
]
33143314
},
33153315
{
@@ -3318,7 +3318,7 @@
33183318
"metadata": {},
33193319
"outputs": [],
33203320
"source": [
3321-
"# get trial-segmented spiketimes for a single unit in the specifed session\n",
3321+
"# get trial-segmented spiketimes for a single unit in the specified session\n",
33223322
"def query_unit_segmented_spiketimes(sess_key, unit, trial_key, seg_param_key):\n",
33233323
" data_keys = (extracellular.TrialSegmentedUnitSpikeTimes & sess_key & {'unit_id': unit} & seg_param_key &\n",
33243324
" ((acquisition.TrialSet.Trial & trial_key) & (stimulation.TrialPhotoStimInfo & trial_key))).fetch('KEY')\n",
@@ -3619,7 +3619,7 @@
36193619
"metadata": {},
36203620
"outputs": [],
36213621
"source": [
3622-
"# get trial-segmented spiketimes for all units in all specifed sessions\n",
3622+
"# get trial-segmented spiketimes for all units in all specified sessions\n",
36233623
"def extract_segmented_spiketimes_histogram(units, trial_cond, seg_param_key, time_range=(-1.5, 3), bin_counts=1000):\n",
36243624
" unit_keys = units.fetch('KEY')\n",
36253625
" print(f'Found {len(unit_keys)} units') \n",

000009/DataJoint/DJ-NWB-Guo-Inagaki-2017/pipeline/acquisition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
Schema of aquisition information.
2+
Schema of acquisition information.
33
'''
44
import re
55
import os

000009/DataJoint/DJ-NWB-Guo-Inagaki-2017/pipeline/reference.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class ActionLocation(dj.Manual):
7676
-> BrainLocation
7777
-> CoordinateReference
7878
coordinate_ap: decimal(4,2) # in mm, anterior positive, posterior negative
79-
coordinate_ml: decimal(4,2) # in mm, always postive, number larger when more lateral
80-
coordinate_dv: decimal(4,2) # in mm, always postive, number larger when more ventral (deeper)
79+
coordinate_ml: decimal(4,2) # in mm, always positive, number larger when more lateral
80+
coordinate_dv: decimal(4,2) # in mm, always positive, number larger when more ventral (deeper)
8181
"""
8282

8383

@@ -133,7 +133,7 @@ class Virus(dj.Lookup):
133133
virus: varchar(64) # name of the virus
134134
---
135135
-> VirusSource
136-
virus_lot_number="": varchar(128) # lot numnber of the virus
136+
virus_lot_number="": varchar(128) # lot number of the virus
137137
virus_titer=null: float # x10^12GC/mL
138138
"""
139139

000010/DataJoint/DJ-NWB-Li-2015b/notebooks/Li-2015b-examples.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -1985,7 +1985,7 @@
19851985
"---\n",
19861986
"-> imaging.CellType\n",
19871987
"roi_trace : longblob # average fluorescence of roi obj-timeSeriesArrayHash-value(1, 1)-valueMatrix\n",
1988-
"neuropil_trace : longblob # average fluorescence of neuopil surounding each ROI, obj-timeSeriesArrayHash-value(1, 1)-valueMatrix\n",
1988+
"neuropil_trace : longblob # average fluorescence of neuopil surrounding each ROI, obj-timeSeriesArrayHash-value(1, 1)-valueMatrix\n",
19891989
"roi_pixel_list : longblob # pixel list of this roi\n",
19901990
"neuropil_pixel_list : longblob # pixel list of the neuropil surrounding the roi\n",
19911991
"inc : tinyint # whether included (criteria - cells > 1.05 times brighter than neuropil)\n",
@@ -3023,7 +3023,7 @@
30233023
" {'subject_id': 216219, 'session': 5, 'roi_idx': 22}, # contra preferring, response starting from the sample period\n",
30243024
" {'subject_id': 216219, 'session': 5, 'roi_idx': 49}, # contra preferring, response starting from the delay period\n",
30253025
" {'subject_id': 221541, 'session': 13, 'roi_idx': 44}, # contra preferring, response starting from the response period\n",
3026-
" {'subject_id': 216219, 'session': 14, 'roi_idx': 9}, # ipsi preferring, repsonse starting from the sample period\n",
3026+
" {'subject_id': 216219, 'session': 14, 'roi_idx': 9}, # ipsi preferring, response starting from the sample period\n",
30273027
" {'subject_id': 216219, 'session': 5, 'roi_idx': 35}, # ipsi preferring, response starting from the delay period\n",
30283028
" {'subject_id': 216219, 'session': 6, 'roi_idx': 47}, # ipsi preferring, response starting from the response period\n",
30293029
"]"
@@ -4903,10 +4903,10 @@
49034903
" ipsi_cells = (imaging.RoiAnalyses & 'is_responsive=1' & 'selectivity=\"Ipsi\"') & \\\n",
49044904
" (imaging.Scan.Roi & f'cell_type=\"{cell_type}\"' & 'inc=1') & L5_key\n",
49054905
" \n",
4906-
" # average df/f of contra trials, sorted by the reponse time of the half peak.\n",
4906+
" # average df/f of contra trials, sorted by the response time of the half peak.\n",
49074907
" contra_avg_l, contra_avg_r = contra_cells.fetch('dff_m_l', 'dff_m_r', order_by='frame_rise_half')\n",
49084908
" \n",
4909-
" # average df/f of contra trials, sorted by the reponse time of the half peak.\n",
4909+
" # average df/f of contra trials, sorted by the response time of the half peak.\n",
49104910
" ipsi_avg_l, ipsi_avg_r = ipsi_cells.fetch('dff_m_l', 'dff_m_r', order_by='frame_rise_half')\n",
49114911
" \n",
49124912
" \n",

000010/DataJoint/DJ-NWB-Li-2015b/pipeline/experiment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Photostim(dj.Manual):
8787
ml_location=null: float # um from ref ; right is positive; based on manipulator coordinates/reconstructed track
8888
ap_location=null: float # um from ref; anterior is positive; based on manipulator coordinates/reconstructed track
8989
dv_location=null: float # um from dura; ventral is positive; based on manipulator coordinates/reconstructed track
90-
ml_angle=null: float # Angle between the manipulator/reconstructed track and the Medio-Lateral axis. A tilt towards the right hemishpere is positive.
90+
ml_angle=null: float # Angle between the manipulator/reconstructed track and the Medio-Lateral axis. A tilt towards the right hemisphere is positive.
9191
ap_angle=null: float # Angle between the manipulator/reconstructed track and the Anterior-Posterior axis. An anterior tilt is positive.
9292
waveform=null: longblob # normalized to maximal power. The value of the maximal power is specified for each PhotostimTrialEvent individually
9393
frequency=null: float # (Hz)

000010/DataJoint/DJ-NWB-Li-2015b/pipeline/export/datajoint_to_nwb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def export_to_nwb(session_key, nwb_output_dir=default_nwb_output_dir, save=False
9595
conversion=1e-6,
9696
unit='micrometers')
9797

98-
# ----- Segementation information -----
98+
# ----- Segmentation information -----
9999
# link the imaging segmentation to the nwb file
100100
ophys = nwbfile.create_processing_module('ophys', 'Processing result of imaging')
101101
img_seg = pynwb.ophys.ImageSegmentation()

000010/DataJoint/DJ-NWB-Li-2015b/pipeline/imaging.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Roi(dj.Part):
4343
---
4444
-> CellType
4545
roi_trace: longblob # average fluorescence of roi obj-timeSeriesArrayHash-value(1, 1)-valueMatrix
46-
neuropil_trace: longblob # average fluorescence of neuopil surounding each ROI, obj-timeSeriesArrayHash-value(1, 1)-valueMatrix
46+
neuropil_trace: longblob # average fluorescence of neuopil surrounding each ROI, obj-timeSeriesArrayHash-value(1, 1)-valueMatrix
4747
roi_pixel_list: longblob # pixel list of this roi
4848
neuropil_pixel_list:longblob # pixel list of the neuropil surrounding the roi
4949
inc: bool # whether included (criteria - cells > 1.05 times brighter than neuropil)

0 commit comments

Comments
 (0)