Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

Commit b38e09e

Browse files
committed
Updating version and README.md
1 parent 522030b commit b38e09e

3 files changed

Lines changed: 81 additions & 7 deletions

File tree

README.md

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,40 @@
11
# fibermorph
2+
3+
24
Python package for image analysis of hair curvature and cross-section
35

4-
> ## Prerequisites
5-
We recommend that you use a virtual environment to run fibermorph in a virtual environment to avoid any conflicts with other Python packages you might have on your system. To learn more about virtual enviornments, click [here](https://docs.python.org/3/tutorial/venv.html).
6+
## Quickstart
7+
For those who want to run the program immediately, just follow these commands in your terminal. You will need to have conda and know how to use it. If you need instructions for this, read the detailed set up below.
8+
9+
1. Create a conda environment.
10+
`conda create -n fibermorph_env`
11+
2. Activate this environment.
12+
`conda activate fibermorph_env`
13+
3. Install fibermorph.
14+
`pip install fibermorph`
15+
4. Test fibermorph with real data.
16+
`fibermorph --demo_real_curv --output_directory /Users/<UserName>/<ExistingPath>/<NewFolderName`
17+
18+
and
19+
20+
`fibermorph --demo_real_section --output_directory /Users/<UserName>/<ExistingPath>/<NewFolderName`
21+
5. Test fibermorph with dummy data and check the error in the spreadsheets generated with the command.
22+
`fibermorph --demo_dummy_curv --output_directory /Users/<UserName>/<ExistingPath>/<NewFolderName> --repeats 2`
23+
24+
and
25+
26+
`fibermorph --demo_dummy_section --output_directory /Users/<UserName>/<ExistingPath>/<NewFolderName> --repeats 2`
27+
6. Use fibermorph on your own grayscale TIFFs of longitudinal or cross-sectional hair images.
28+
```
29+
fibermorph --curvature --input_directory /Users/<UserName>/<ImageFolderPath> --output_directory /Users/<UserName>/<ExistingPath>/ --window_size 0.5 --window_unit mm --resolution 132 --save_image --within_element --jobs 2
30+
```
31+
32+
and
33+
34+
```
35+
fibermorph --section --input_directory /Users/<UserName>/<ImageFolderPath> --output_directory /Users/<UserName>/<ExistingPath>/ --minsize 30 --maxsize 180 --resolution_mu 4.25 --jobs 2
36+
```
637

7-
If you are familiar with Python, conda and have the necessary installations on your system, feel free to skip ahead to the section entitled "Install the package", otherwise you can follow the step by step instructions below for the prerequisites.
838

939
## Setting up
1040
1. We recommend you download [miniconda](https://docs.conda.io/en/latest/miniconda.html) for your operating system.
@@ -15,11 +45,16 @@ Whichever you choose *be sure to download the version with Python 3.X and not Py
1545

1646
2. Open a terminal.
1747

18-
The commands are written in bash, so if you are running this on a Windows OS, you will need to switch into the correct settings. You can find more information for Windows specifically [here]().
48+
#### Mac OS:
49+
- Open the *Terminal* application.
50+
#### Windows:
51+
- Type `miniconda` in the search box and open the application.
52+
#### Linux:
53+
- Open the *Terminal* application.
1954

2055
3. Now you can set up a virtual environment.
2156

22-
Create an empty conda environment, e.g. `conda create -n <YearMonthDay>_fibermorph python=3.8` and load it `conda activate <YearMonthDay>_fibermorph`
57+
Create an empty conda environment, e.g. `conda create -n <fibermorph_env python=3.8` and load it `conda activate fibermorph_env`
2358

2459
You are now ready to install fibermorph!
2560

@@ -75,7 +110,7 @@ Both `--demo_dummy` modules require the following flags:
75110
76111
```
77112

78-
The modules create a `results_cache` within the given path. In this folder there will be another folder named `<MonthDay_HourMinute>_ValidationTest_<Curv or Section>` where the generated dummy images and corresponding parameters in spreadsheets will be in a folder named `ValidationData` and the error data will be in a folder named `ValidationAnalysis`.
113+
The modules create a `fibermorph_demo` within the given path. In this folder there will be another folder named `<MonthDay_HourMinute>_ValidationTest_<Curv or Section>` where the generated dummy images and corresponding parameters in spreadsheets will be in a folder named `ValidationData` and the error data will be in a folder named `ValidationAnalysis`.
79114

80115
Running the module once will create a set of data and analyses for a single randomly generated arc and line (for curvature) or circle and ellipse (for section). To produce more data, simply add the flag `--repeats` with the number of times you would like to repeat it, e.g. `fibermorph --repeats <integer>`. This flag is optional.
81116

env/conda-meta/history

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
==> 2020-08-06 18:22:58 <==
2+
# cmd: /Users/tinalasisi/opt/anaconda3/bin/conda-env update --prefix ./env --file environment.yml --prune
3+
# conda version: 4.8.3
4+
+defaults/noarch::pyparsing-2.4.6-py_0
5+
+defaults/noarch::python-dateutil-2.8.1-py_0
6+
+defaults/osx-64::blas-1.0-mkl
7+
+defaults/osx-64::ca-certificates-2020.1.1-0
8+
+defaults/osx-64::certifi-2019.11.28-py36_0
9+
+defaults/osx-64::cycler-0.10.0-py36hfc81398_0
10+
+defaults/osx-64::freetype-2.9.1-hb4e5f40_0
11+
+defaults/osx-64::intel-openmp-2019.4-233
12+
+defaults/osx-64::kiwisolver-1.1.0-py36h0a44026_0
13+
+defaults/osx-64::libcxx-10.0.0-1
14+
+defaults/osx-64::libedit-3.1.20191231-h1de35cc_1
15+
+defaults/osx-64::libffi-3.2.1-h0a44026_6
16+
+defaults/osx-64::libgfortran-3.0.1-h93005f0_2
17+
+defaults/osx-64::libpng-1.6.37-ha441bb4_0
18+
+defaults/osx-64::matplotlib-3.1.3-py36_0
19+
+defaults/osx-64::matplotlib-base-3.1.3-py36h9aa3819_0
20+
+defaults/osx-64::mkl-2019.4-233
21+
+defaults/osx-64::mkl-service-2.3.0-py36hfbe908c_0
22+
+defaults/osx-64::mkl_fft-1.0.15-py36h5e564d8_0
23+
+defaults/osx-64::mkl_random-1.1.0-py36ha771720_0
24+
+defaults/osx-64::ncurses-6.2-h0a44026_1
25+
+defaults/osx-64::numpy-1.18.1-py36h7241aed_0
26+
+defaults/osx-64::numpy-base-1.18.1-py36h3304bdc_1
27+
+defaults/osx-64::openssl-1.1.1d-h1de35cc_4
28+
+defaults/osx-64::pip-20.0.2-py36_1
29+
+defaults/osx-64::python-3.6.10-h359304d_0
30+
+defaults/osx-64::readline-7.0-h1de35cc_5
31+
+defaults/osx-64::setuptools-45.2.0-py36_0
32+
+defaults/osx-64::six-1.14.0-py36_0
33+
+defaults/osx-64::sqlite-3.31.1-h5c1f38d_1
34+
+defaults/osx-64::tk-8.6.8-ha441bb4_0
35+
+defaults/osx-64::tornado-6.0.3-py36h1de35cc_3
36+
+defaults/osx-64::wheel-0.34.2-py36_0
37+
+defaults/osx-64::xz-5.2.4-h1de35cc_4
38+
+defaults/osx-64::zlib-1.2.11-h1de35cc_3
39+
# update specs: ['certifi==2019.11.28=py36_0', 'intel-openmp=2019.4', 'python-dateutil=2.8.1', 'freetype=2.9.1', 'ca-certificates=2020.1.1', 'xz=5.2.4', 'zlib=1.2.11', 'matplotlib=3.1.3', 'pip==20.0.2=py36_1', 'mkl=2019.4', 'tk=8.6.8', 'mkl_random=1.1.0', 'sqlite=3.31.1', 'python=3.6.10', 'tornado=6.0.3', 'pyparsing=2.4.6', 'libpng=1.6.37', 'numpy-base=1.18.1', 'openssl=1.1.1d', 'blas==1.0=mkl', 'six==1.14.0=py36_0', 'matplotlib-base=3.1.3', 'wheel=0.34.2', 'mkl-service=2.3.0', 'setuptools=45.2.0', 'mkl_fft=1.0.15', 'kiwisolver=1.1.0']

fibermorph/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.4"
1+
__version__ = "0.1.5"

0 commit comments

Comments
 (0)