#| label: tbl-iliopsoas-oian
#| warning: false
#| message: false
#| echo: false
#| tbl-cap: "Iliopsoas muscle group"
from pathlib import Path
import pandas as pd
from pyprojroot import here
from IPython.core.display import display, HTML
# Set the path for the script file
= here("scripts/process_oian_table.py")
script_file_path
# Check if the script file exists
if script_file_path.exists():
import sys
str(script_file_path.parent)) # Add the directory of the script to the system path
sys.path.append(
from process_oian_table import process_oian_table # Import the specific function
# Define the column to filter by and the identifiers to include
= 'group_identifier' # Choose the column you want to filter by
filter_column = ['iliopsoas_muscles'] # Replace with actual identifiers you want to include
filter_identifiers
# Call the function to get the HTML table with filtering
= process_oian_table(filter_column=filter_column, filter_identifiers=filter_identifiers)
html_table
if html_table:
# Render the HTML table for display
# Use display to render the HTML properly
display(HTML(html_table)) else:
print("Script file does not exist. Please check the path.")
/var/folders/1l/3yjsq4vn4q92b8_bq89ptr800000gn/T/ipykernel_96987/2050710442.py:10: DeprecationWarning:
Importing display from IPython.core.display is deprecated since IPython 7.14, please import from IPython.display
Muscle | Origin | Insertion | Innervation | Action |
---|---|---|---|---|
Iliacus | Iliac Fossa | Lesser Trochanter | Femoral n. L2 - L3 |
Hip: Flexion, ER L/S (UNIL contraction on fixed femur): I/L spine sidebend L/S (BIL contraction): Raises trunk from supine position |
Psoas Major | T12-L4 and associated IV discs L1-L5 TP |
Lesser Trochanter | Lumbar Plexus Direct Br. L1 - L3 |
Hip: Flexion, ER L/S (unilateral contraction with femur fixed): I/L spine sidebend L/S (bilateral contraction): Raises trunk from supine position |
Psoas Minor | T12, L1 vertebrae (lateral aspect) and IVD | Pectineal Line Iliopubic ramus Iliac fascia Inguinal ligament |
Spinal nn. L1 - L3 |
Trunk: Weak flexion |