Skip to content

Commit 3c9662b

Browse files
author
Thinh Nguyen
committed
update README, improve markdown formatting, specify long_description_content_type to markdown
1 parent f05e1fe commit 3c9662b

File tree

2 files changed

+32
-16
lines changed

2 files changed

+32
-16
lines changed

README.md

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ See [Background](Background.md) for the background information and development t
1515

1616
## The Pipeline Architecture
1717

18-
![ephys pipeline diagram](images/attached_ephys_element.svg)
18+
![element-array-ephys diagram](images/attached_ephys_element.svg)
1919

2020
As the diagram depicts, the array ephys element starts immediately downstream from ***Session***,
2121
and also requires some notion of ***Location*** as a dependency for ***InsertionLocation***.
@@ -27,32 +27,47 @@ and also requires some notion of ***Location*** as a dependency for ***Insertion
2727
+ An electrode here refers to one recordable electrode site on the Neuropixels probe (e.g. for Neuropixels 1.0, there are 960 sites per shank)
2828
+ ***Probe*** - record of an actual physical probe, identifiable by some unique ID (e.g. probe's serial number)
2929
+ ***ElectrodeConfig*** - particular electrode configuration to be used for ephys recording
30-
+ ***ElectrodeConfig.Electrode*** - corresponding electrodes in ***ProbeType.Electrode*** that are used for recording in this electrode configuration
31-
(e.g. for Neuropixels 1.0 or 2.0, there can be at most 384 electrodes usable for recording per probe)
30+
+ ***ElectrodeConfig.Electrode*** - corresponding electrodes in ***ProbeType.Electrode*** that are used for recording in this electrode configuration (e.g. for Neuropixels 1.0 or 2.0, there can be at most 384 electrodes usable for recording per probe)
3231

3332
### Extracellular ephys recording
3433

35-
+ ***ProbeInsertion*** - a surgical insertion of a probe onto the animal.
36-
Every experimental session consists of one or more ***ProbeInsertion***, with corresponding ***InsertionLocation***
37-
+ ***EphysRecording*** - each ***ProbeInsertion*** is accompanied by a corresponding ***EphysRecording***,
38-
specifying the ***ElectrodeConfig*** used for the recording from the ***Probe*** defined in such ***ProbeInsertion***
39-
+ ***get_npx_data_dir*** method - the class ***EphysRecording*** requires user
40-
to supply a method to retrieve the directory containing the recorded neuropixels data (e.g. `*.ap.meta`, `*.ap.bin`, etc.),
41-
where the method's input arguments are the primary attributes identifying one ***EphysRecording***
34+
+ ***ProbeInsertion*** - a surgical insertion of a probe onto the animal. Every experimental session consists of one or more ***ProbeInsertion***, with corresponding ***InsertionLocation***
35+
+ ***EphysRecording*** - each ***ProbeInsertion*** is accompanied by a corresponding ***EphysRecording***, specifying the ***ElectrodeConfig*** used for the recording from the ***Probe*** defined in such ***ProbeInsertion***
4236

4337
### Clusters and spikes
4438

4539
This ephys element features automatic ingestion for spike sorting results from the ***kilosort*** method.
4640

4741
+ ***Clustering*** - specify instance(s) of clustering on an ***EphysRecording***, by some ***ClusteringMethod***
48-
+ ***get_ks_data_dir*** method - the class ***Clustering*** requires user
49-
to supply a method to retrieve the directory containing the kilosort results,
50-
where the method's input arguments are the primary attributes identifying one ***Clustering***
51-
+ ***Unit*** - Identified unit(s) from one ***Clustering***, with associated ***ClusterQualityLabel***
52-
+ ***UnitSpikeTimes*** - spike times per unit
53-
+ ***Waveform*** - mean waveform across spikes per unit per recording electrode
42+
+ ***Curation*** - specify instance(s) of curations performed on the output of a given ***Clustering***
43+
+ ***CuratedClustering*** - set of results from a particular round of clustering/curation
44+
+ ***CuratedClustering.Unit*** - Identified unit(s) from one ***Curation***, and the associated properties (e.g. cluster quality, spike times, spike depths, etc.)
45+
+ ***WaveformSet*** - A set of spike waveforms for units out of a given CuratedClustering
5446

5547

5648
## Usage
5749

50+
### Element activation
51+
52+
To activate the `element-array-ephys`, ones need to provide:
53+
54+
1. Schema names
55+
+ schema name for the probe module
56+
+ schema name for the ephys module
57+
58+
2. Upstream tables
59+
+ Session table
60+
+ SkullReference table (Reference table for InsertionLocation, specifying the skull reference)
61+
62+
3. Utility functions
63+
+ get_ephys_root_data_dir()
64+
+ get_session_directory()
65+
66+
For more detail, check the docstring of the `element-array-ephys`:
67+
68+
help(probe.activate)
69+
help(ephys.activate)
70+
71+
### Example usage
72+
5873
See [this project](https://github.com/datajoint/workflow-array-ephys) for an example usage of this Array Electrophysiology Element.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
version=__version__,
1919
description="DataJoint Element for Extracellular Array Electrophysiology",
2020
long_description=long_description,
21+
long_description_content_type='text/markdown',
2122
author='DataJoint NEURO',
2223
author_email='info@vathes.com',
2324
license='MIT',

0 commit comments

Comments
 (0)