Cells
get_SIM_class(cell)
PROVISIONAL method to return whether a cell is Sensory/Interneuron/Motorneuron (or Other)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell
|
str
|
which cell to assess |
required |
Returns:
Name | Type | Description |
---|---|---|
str |
whether a cell is Sensory/Interneuron/Motorneuron (or Other) |
Source code in cect/Cells.py
1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 |
|
get_cell_notes(cell)
Get a short description of the cell, mainly cell type
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell
|
str
|
Name of the cell |
required |
Returns:
Name | Type | Description |
---|---|---|
str |
Description of the cell type |
Source code in cect/Cells.py
46 47 48 49 50 51 52 53 54 55 56 57 |
|
get_contralateral_cell(cell)
Gets the contralateral cell for a given cell, based on Kim et al. 2024: https://doi.org/10.1101/2024.10.03.616419
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell
|
_type_
|
description |
required |
Raises:
Type | Description |
---|---|
Exception
|
description |
Returns:
Name | Type | Description |
---|---|---|
_type_ |
description |
Source code in cect/Cells.py
1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 |
|
get_primary_classification()
Get the primary classification of the cells, based on https://www.wormatlas.org/colorcode.htm
Returns:
Name | Type | Description |
---|---|---|
dict |
Dict of cells vs classification/group from https://www.wormatlas.org/colorcode.htm |
Source code in cect/Cells.py
1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 |
|
is_known_cell(cell)
Is this string the name of one of the known cells?
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell
|
str
|
Cell name |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
Whether this is a known cell name |
Source code in cect/Cells.py
1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 |
|
remove_leading_index_zero(cell)
Returns neuron name with an index without leading zero. E.g. VB01 -> VB1.
Source code in cect/Cells.py
1941 1942 1943 1944 1945 1946 1947 1948 1949 |
|