Features: Python, Pandas, Numpy, Matplotlib
This project was to analyze mice lung vasculature labeled with gold nanoparticles. 3D tomography was acquired from Zeiss Xradia. I used Amira to segment targeted regions by combining a series of background subtraction, edge detection, and manual labeling. Filament analysis was then applied by using built-in auto-skeletonization to extract the backbone of lung vasculature and its diameter.
core
:filamentanalysis.py
: label branchesfileop.py
: io controlmkplot.py
: generate plotsmsxml.py
: convert .xml files to .csv files
test
: test filesarchive_2018
: previous codespar
:lung_file_idx.csv
: file informationmain.ipynb
: main file for jupyter notebookmain.py
: main file for jupyter notebook in .py file. Support Vscode Python packageREADME.md
: readme file
- Clone the repository
- Create a directory for data storage
- Make a subfolder called 'raw' and copy the .xml files.
- Copy
par
folder to the data folder - rename *.xml by adding index in the begin of the filename
- for example: FOR7-DFF-Hypoxia.xml -> 17_FOR7-DFF-Hypoxia.xml. Index is based on
lung_file_idx.csv
- update the column of
data_filename
inlung_file_idx.csv
- for example: FOR7-DFF-Hypoxia.xml -> 17_FOR7-DFF-Hypoxia.xml. Index is based on
- Run
main.ipynb
- Specify the directory of workspace
- Run through the code and generate histograms:
- histo/length/*.png: frequency - length (µm)
- histo/thickness/*.png: frequency - thickness (µm)
- histo_summary/length.png: histogram in line plot style
- histo_summary/thickness.png: histogram in line plot style
This work is licensed under a Creative Commons Attribution 4.0 International License.