Skip to content

Commit

Permalink
Merge pull request #20 from pgleeson/main
Browse files Browse the repository at this point in the history
Add hive plots
  • Loading branch information
pgleeson authored Oct 4, 2024
2 parents 853324e + 47b2271 commit f489355
Show file tree
Hide file tree
Showing 754 changed files with 34,673 additions and 13,512,438 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,41 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: |
pip install .[docs]
- name: Install HDF5 for pytables on macos-latest
if: ${{ matrix.runs-on == 'macos-latest' }}
run: |
brew install hdf5
- name: Install full package
run: |
pip install .[all]
pip list
- name: Run test script to regenerate
run: |
./test.sh
ls -alt docs/
ls -alt docs/assets/
- run: mkdocs gh-deploy --force
4 changes: 2 additions & 2 deletions .github/workflows/non_omv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
pip list
- name: Run test script
- name: Run quick test script
run: |
./test.sh
./test.sh -q
- name: Final version info
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ __pycache__
/.DS_Store
/cect/data/~$*
/pdfs/*.pdf
/cect/hive.json
42 changes: 39 additions & 3 deletions cect/Cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"Serotonin_Glutamate",
]

GENERIC_CHEM_SYN = "Generic_CS"
GENERIC_ELEC_SYN = "Generic_GJ"

EXTRASYNAPTIC_SYN_TYPE = "Extrasynaptic"
MONOAMINERGIC_SYN_CLASS = "Monoaminergic"
PEPTIDERGIC_SYN_CLASS = "Peptidergic"
Expand Down Expand Up @@ -1435,6 +1438,39 @@
)


def get_SIM_class(cell):
"""
PROVISIONAL method to return whether a cell is Sensory/Interneuron/Motorneuron (or Other)
Parameters:
cell: which cell to assess
Returns:
str: whether a cell is Sensory/Interneuron/Motorneuron (or Other)
"""

pharyngeal_polymodal_to_class_motor = [
"MI",
"NSML",
"NSMR",
"MCL",
"MCR",
]
pharyngeal_polymodal_to_class_sensory = [
"NSML",
"NSMR",
]

if cell in SENSORY_NEURONS_COOK + pharyngeal_polymodal_to_class_sensory:
return "Sensory"
elif cell in MOTORNEURONS_COOK + pharyngeal_polymodal_to_class_motor:
return "Motorneuron"
elif cell in INTERNEURONS_COOK:
return "Interneuron"
else:
return "Other"


def is_bilateral_left(cell):
if (
cell in ALL_PREFERRED_CELL_NAMES
Expand Down Expand Up @@ -1701,9 +1737,9 @@ def _generate_cell_table(cell_type, cells):
print_(" - Adding table for %s" % cell_type)

syn_summaries = {
"Chemical conns in": ["Generic_CS"] + ALL_KNOWN_CHEMICAL_NEUROTRANSMITTERS,
"Chemical conns out": ["Generic_CS"] + ALL_KNOWN_CHEMICAL_NEUROTRANSMITTERS,
"Electrical conns": ["Generic_GJ"],
"Chemical conns in": [GENERIC_CHEM_SYN] + ALL_KNOWN_CHEMICAL_NEUROTRANSMITTERS,
"Chemical conns out": [GENERIC_CHEM_SYN] + ALL_KNOWN_CHEMICAL_NEUROTRANSMITTERS,
"Electrical conns": [GENERIC_ELEC_SYN],
}

fig_md = ""
Expand Down
Loading

0 comments on commit f489355

Please sign in to comment.