LCNE-patchseq-analysis 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lcne_patchseq_analysis-0.0.1/.flake8 +9 -0
- lcne_patchseq_analysis-0.0.1/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- lcne_patchseq_analysis-0.0.1/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- lcne_patchseq_analysis-0.0.1/.github/ISSUE_TEMPLATE/user-story.md +27 -0
- lcne_patchseq_analysis-0.0.1/.github/workflows/init.yml +52 -0
- lcne_patchseq_analysis-0.0.1/.github/workflows/tag_and_publish.yml +88 -0
- lcne_patchseq_analysis-0.0.1/.github/workflows/test_and_lint.yml +26 -0
- lcne_patchseq_analysis-0.0.1/.gitignore +139 -0
- lcne_patchseq_analysis-0.0.1/LICENSE +21 -0
- lcne_patchseq_analysis-0.0.1/PKG-INFO +163 -0
- lcne_patchseq_analysis-0.0.1/README.md +141 -0
- lcne_patchseq_analysis-0.0.1/docs/Makefile +20 -0
- lcne_patchseq_analysis-0.0.1/docs/make.bat +35 -0
- lcne_patchseq_analysis-0.0.1/docs/source/_static/dark-logo.svg +129 -0
- lcne_patchseq_analysis-0.0.1/docs/source/_static/favicon.ico +0 -0
- lcne_patchseq_analysis-0.0.1/docs/source/_static/light-logo.svg +128 -0
- lcne_patchseq_analysis-0.0.1/docs/source/conf.py +53 -0
- lcne_patchseq_analysis-0.0.1/docs/source/index.rst +22 -0
- lcne_patchseq_analysis-0.0.1/pyproject.toml +82 -0
- lcne_patchseq_analysis-0.0.1/setup.cfg +4 -0
- lcne_patchseq_analysis-0.0.1/setup.py +4 -0
- lcne_patchseq_analysis-0.0.1/src/LCNE_patchseq_analysis/__init__.py +2 -0
- lcne_patchseq_analysis-0.0.1/src/LCNE_patchseq_analysis.egg-info/PKG-INFO +163 -0
- lcne_patchseq_analysis-0.0.1/src/LCNE_patchseq_analysis.egg-info/SOURCES.txt +27 -0
- lcne_patchseq_analysis-0.0.1/src/LCNE_patchseq_analysis.egg-info/dependency_links.txt +1 -0
- lcne_patchseq_analysis-0.0.1/src/LCNE_patchseq_analysis.egg-info/requires.txt +11 -0
- lcne_patchseq_analysis-0.0.1/src/LCNE_patchseq_analysis.egg-info/top_level.txt +1 -0
- lcne_patchseq_analysis-0.0.1/tests/__init__.py +1 -0
- lcne_patchseq_analysis-0.0.1/tests/test_example.py +16 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. iOS]
|
|
28
|
+
- Browser [e.g. chrome, safari]
|
|
29
|
+
- Version [e.g. 22]
|
|
30
|
+
|
|
31
|
+
**Smartphone (please complete the following information):**
|
|
32
|
+
- Device: [e.g. iPhone6]
|
|
33
|
+
- OS: [e.g. iOS8.1]
|
|
34
|
+
- Browser [e.g. stock browser, safari]
|
|
35
|
+
- Version [e.g. 22]
|
|
36
|
+
|
|
37
|
+
**Additional context**
|
|
38
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: User story
|
|
3
|
+
about: This template provides a basic structure for user story issues.
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# User story
|
|
11
|
+
As a ..., I want to ..., so I can ...
|
|
12
|
+
|
|
13
|
+
*Ideally, this is in the issue title, but if not, you can put it here. If so, delete this section.*
|
|
14
|
+
|
|
15
|
+
# Acceptance criteria
|
|
16
|
+
- [ ] This is something that can be verified to show that this user story is satisfied.
|
|
17
|
+
|
|
18
|
+
# Sprint Ready Checklist
|
|
19
|
+
- [ ] 1. Acceptance criteria defined
|
|
20
|
+
- [ ] 2. Team understands acceptance criteria
|
|
21
|
+
- [ ] 3. Team has defined solution / steps to satisfy acceptance criteria
|
|
22
|
+
- [ ] 4. Acceptance criteria is verifiable / testable
|
|
23
|
+
- [ ] 5. External / 3rd Party dependencies identified
|
|
24
|
+
- [ ] 6. Ticket is prioritized and sized
|
|
25
|
+
|
|
26
|
+
# Notes
|
|
27
|
+
*Add any helpful notes here.*
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Workflow runs only once when the template is first used.
|
|
2
|
+
# File can be safely deleted after repo is initialized.
|
|
3
|
+
name: Initialize repository
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
initialize-package:
|
|
11
|
+
name: Initialize the package
|
|
12
|
+
if: ${{github.event.repository.name != 'aind-library-template'}}
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
env:
|
|
15
|
+
REPO_NAME: ${{ github.event.repository.name }}
|
|
16
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
- name: Rename package
|
|
21
|
+
run: |
|
|
22
|
+
pkg_name=$(echo "${REPO_NAME}" | tr - _)
|
|
23
|
+
current_description='description = "Prints messages to stdout. Simple boilerplate for libraries."'
|
|
24
|
+
new_description='description = "Generated from aind-library-template"'
|
|
25
|
+
readme_description='Template for a minimal, basic repository for an AIND library.'
|
|
26
|
+
new_readme_description='Generated from aind-library-template'
|
|
27
|
+
echo "Package Name ${pkg_name}"
|
|
28
|
+
mkdir src/${pkg_name}
|
|
29
|
+
touch src/${pkg_name}/__init__.py
|
|
30
|
+
echo '"""Init package"""' >> src/${pkg_name}/__init__.py
|
|
31
|
+
echo '__version__ = "0.0.0"' >> src/${pkg_name}/__init__.py
|
|
32
|
+
sed -i "s/aind_library_template/${pkg_name}/" pyproject.toml
|
|
33
|
+
sed -i "s/aind-library-template/${REPO_NAME}/" pyproject.toml
|
|
34
|
+
sed -i "s/aind_library_template/${pkg_name}/" docs/source/conf.py
|
|
35
|
+
sed -i "s/${current_description}/${new_description}/" pyproject.toml
|
|
36
|
+
sed -i "/pandas/d" pyproject.toml
|
|
37
|
+
sed -i "s/aind-library-template/${REPO_NAME}/" README.md
|
|
38
|
+
sed -i "s/${readme_description}/${new_readme_description}/" README.md
|
|
39
|
+
- name: Commit changes
|
|
40
|
+
uses: EndBug/add-and-commit@v9
|
|
41
|
+
with:
|
|
42
|
+
default_author: github_actions
|
|
43
|
+
message: "ci: version bump [skip actions]"
|
|
44
|
+
add: '["pyproject.toml", "README.md", "src/*", "docs/source/conf.py"]'
|
|
45
|
+
remove: '["-r src/aind_library_template", "tests/test_message_handler.py"]'
|
|
46
|
+
- name: Add first tag
|
|
47
|
+
run: |
|
|
48
|
+
git tag v0.0.0
|
|
49
|
+
git push origin v0.0.0
|
|
50
|
+
- name: Disable workflow
|
|
51
|
+
run: |
|
|
52
|
+
gh workflow disable -R $GITHUB_REPOSITORY "${{ github.workflow }}"
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
name: Tag and publish
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
# Remove line 65 to enable automated semantic version bumps.
|
|
7
|
+
# Change line 71 from "if: false" to "if: true" to enable PyPI publishing.
|
|
8
|
+
# Requires that svc-aindscicomp be added as an admin to repo.
|
|
9
|
+
jobs:
|
|
10
|
+
update_badges:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
continue-on-error: true
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
ref: ${{ env.DEFAULT_BRANCH }}
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
token: ${{ secrets.SERVICE_TOKEN }}
|
|
19
|
+
- name: Set up Python 3.10
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: '3.10'
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: |
|
|
25
|
+
python -m pip install -e .[dev] --no-cache-dir
|
|
26
|
+
- name: Get Python version and Update README.md
|
|
27
|
+
run: |
|
|
28
|
+
python_version=$(grep "requires-python" pyproject.toml | grep -o ">=[^\"]*")
|
|
29
|
+
python_badge=$(grep -o 'python-[^)]*' README.md)
|
|
30
|
+
new_python_badge="python-$python_version-blue?logo=python"
|
|
31
|
+
sed -i "s/$python_badge/$new_python_badge/g" README.md
|
|
32
|
+
- name: Get interrogate values and Update README.md
|
|
33
|
+
run: |
|
|
34
|
+
interrogate_val=$(interrogate . | grep -o 'actual: [0-9]*\.[0-9]*' | awk '{print $2}')
|
|
35
|
+
interrogate_badge=$(grep -o 'interrogate-[^)]*' README.md)
|
|
36
|
+
if (( $(echo "$interrogate_val >= 90.00" | bc -l) )); then
|
|
37
|
+
new_interrogate_badge="interrogate-$interrogate_val%25-brightgreen"
|
|
38
|
+
elif (( $(echo "$interrogate_val < 80.00" | bc -l) )); then
|
|
39
|
+
new_interrogate_badge="interrogate-$interrogate_val%25-red"
|
|
40
|
+
else
|
|
41
|
+
new_interrogate_badge="interrogate-$interrogate_val%25-yellow"
|
|
42
|
+
fi
|
|
43
|
+
sed -i "s/$interrogate_badge/$new_interrogate_badge/g" README.md
|
|
44
|
+
- name: Get Coverage values and Update README.md
|
|
45
|
+
run: |
|
|
46
|
+
coverage run -m unittest discover
|
|
47
|
+
coverage_val=$(coverage report | grep "^TOTAL" | grep -o '[0-9]\+%' | grep -o '[0-9]\+')
|
|
48
|
+
coverage_badge=$(grep -o "coverage-[^?]*" README.md)
|
|
49
|
+
if (( $(echo "$coverage_val >= 90.00" | bc -l) )); then
|
|
50
|
+
new_coverage_badge="coverage-$coverage_val%25-brightgreen"
|
|
51
|
+
elif (( $(echo "$coverage_val < 80.00" | bc -l) )); then
|
|
52
|
+
new_coverage_badge="coverage-$coverage_val%25-red"
|
|
53
|
+
else
|
|
54
|
+
new_coverage_badge="coverage-$coverage_val%25-yellow"
|
|
55
|
+
fi
|
|
56
|
+
sed -i "s/$coverage_badge/$new_coverage_badge/g" README.md
|
|
57
|
+
- name: Commit changes
|
|
58
|
+
uses: EndBug/add-and-commit@v9
|
|
59
|
+
with:
|
|
60
|
+
default_author: github_actions
|
|
61
|
+
message: "ci: update badges [skip actions]"
|
|
62
|
+
add: '["README.md"]'
|
|
63
|
+
tag:
|
|
64
|
+
needs: update_badges
|
|
65
|
+
uses: AllenNeuralDynamics/aind-github-actions/.github/workflows/tag.yml@main
|
|
66
|
+
secrets:
|
|
67
|
+
SERVICE_TOKEN: ${{ secrets.SERVICE_TOKEN }}
|
|
68
|
+
publish:
|
|
69
|
+
needs: tag
|
|
70
|
+
if: true
|
|
71
|
+
runs-on: ubuntu-latest
|
|
72
|
+
steps:
|
|
73
|
+
- uses: actions/checkout@v4
|
|
74
|
+
- name: Pull latest changes
|
|
75
|
+
run: git pull origin main
|
|
76
|
+
- name: Set up Python 3.10
|
|
77
|
+
uses: actions/setup-python@v5
|
|
78
|
+
with:
|
|
79
|
+
python-version: '3.10'
|
|
80
|
+
- name: Install dependencies
|
|
81
|
+
run: |
|
|
82
|
+
pip install --upgrade setuptools wheel twine build
|
|
83
|
+
python -m build
|
|
84
|
+
twine check dist/*
|
|
85
|
+
- name: Publish on PyPI
|
|
86
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
87
|
+
with:
|
|
88
|
+
password: ${{ secrets.AIND_PYPI_TOKEN }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Lint and run tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
ci:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: [ '3.10', '3.11', '3.12' ]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
17
|
+
uses: actions/setup-python@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: ${{ matrix.python-version }}
|
|
20
|
+
- name: Install dependencies
|
|
21
|
+
run: |
|
|
22
|
+
python -m pip install -e .[dev]
|
|
23
|
+
- name: Run linter checks
|
|
24
|
+
run: flake8 . && interrogate --verbose .
|
|
25
|
+
- name: Run tests and coverage
|
|
26
|
+
run: coverage run -m unittest discover && coverage report
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
target/
|
|
76
|
+
|
|
77
|
+
# Jupyter Notebook
|
|
78
|
+
.ipynb_checkpoints
|
|
79
|
+
|
|
80
|
+
# IPython
|
|
81
|
+
profile_default/
|
|
82
|
+
ipython_config.py
|
|
83
|
+
|
|
84
|
+
# pyenv
|
|
85
|
+
.python-version
|
|
86
|
+
|
|
87
|
+
# pipenv
|
|
88
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
89
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
90
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
91
|
+
# install all needed dependencies.
|
|
92
|
+
#Pipfile.lock
|
|
93
|
+
|
|
94
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
95
|
+
__pypackages__/
|
|
96
|
+
|
|
97
|
+
# Celery stuff
|
|
98
|
+
celerybeat-schedule
|
|
99
|
+
celerybeat.pid
|
|
100
|
+
|
|
101
|
+
# SageMath parsed files
|
|
102
|
+
*.sage.py
|
|
103
|
+
|
|
104
|
+
# Environments
|
|
105
|
+
.env
|
|
106
|
+
.venv
|
|
107
|
+
env/
|
|
108
|
+
venv/
|
|
109
|
+
ENV/
|
|
110
|
+
env.bak/
|
|
111
|
+
venv.bak/
|
|
112
|
+
|
|
113
|
+
# Spyder project settings
|
|
114
|
+
.spyderproject
|
|
115
|
+
.spyproject
|
|
116
|
+
|
|
117
|
+
# Rope project settings
|
|
118
|
+
.ropeproject
|
|
119
|
+
|
|
120
|
+
# mkdocs documentation
|
|
121
|
+
/site
|
|
122
|
+
|
|
123
|
+
# mypy
|
|
124
|
+
.mypy_cache/
|
|
125
|
+
.dmypy.json
|
|
126
|
+
dmypy.json
|
|
127
|
+
|
|
128
|
+
# Pyre type checker
|
|
129
|
+
.pyre/
|
|
130
|
+
|
|
131
|
+
# PyCharm
|
|
132
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
133
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
134
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
135
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
136
|
+
.idea/
|
|
137
|
+
|
|
138
|
+
# MacOs
|
|
139
|
+
**/.DS_Store
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Allen Institute for Neural Dynamics
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: LCNE-patchseq-analysis
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Generated from aind-library-template
|
|
5
|
+
Author: Allen Institute for Neural Dynamics
|
|
6
|
+
Author-email: Han Hou <han.hou@alleninstitute.org>
|
|
7
|
+
License: MIT
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: numpy
|
|
13
|
+
Requires-Dist: pandas
|
|
14
|
+
Provides-Extra: dev
|
|
15
|
+
Requires-Dist: black; extra == "dev"
|
|
16
|
+
Requires-Dist: coverage; extra == "dev"
|
|
17
|
+
Requires-Dist: flake8; extra == "dev"
|
|
18
|
+
Requires-Dist: interrogate; extra == "dev"
|
|
19
|
+
Requires-Dist: isort; extra == "dev"
|
|
20
|
+
Requires-Dist: Sphinx; extra == "dev"
|
|
21
|
+
Requires-Dist: furo; extra == "dev"
|
|
22
|
+
|
|
23
|
+
# LCNE-patchseq-analysis
|
|
24
|
+
|
|
25
|
+
[](LICENSE)
|
|
26
|
+

|
|
27
|
+
[](https://github.com/semantic-release/semantic-release)
|
|
28
|
+

|
|
29
|
+

|
|
30
|
+

|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
- To use this template, click the green `Use this template` button and `Create new repository`.
|
|
36
|
+
- After github initially creates the new repository, please wait an extra minute for the initialization scripts to finish organizing the repo.
|
|
37
|
+
- To enable the automatic semantic version increments: in the repository go to `Settings` and `Collaborators and teams`. Click the green `Add people` button. Add `svc-aindscicomp` as an admin. Modify the file in `.github/workflows/tag_and_publish.yml` and remove the if statement in line 65. The semantic version will now be incremented every time a code is committed into the main branch.
|
|
38
|
+
- To publish to PyPI, enable semantic versioning and uncomment the publish block in `.github/workflows/tag_and_publish.yml`. The code will now be published to PyPI every time the code is committed into the main branch.
|
|
39
|
+
- The `.github/workflows/test_and_lint.yml` file will run automated tests and style checks every time a Pull Request is opened. If the checks are undesired, the `test_and_lint.yml` can be deleted. The strictness of the code coverage level, etc., can be modified by altering the configurations in the `pyproject.toml` file and the `.flake8` file.
|
|
40
|
+
|
|
41
|
+
## Installation
|
|
42
|
+
To use the software, in the root directory, run
|
|
43
|
+
```bash
|
|
44
|
+
pip install -e .
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
To develop the code, run
|
|
48
|
+
```bash
|
|
49
|
+
pip install -e .[dev]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Contributing
|
|
53
|
+
|
|
54
|
+
### Linters and testing
|
|
55
|
+
|
|
56
|
+
There are several libraries used to run linters, check documentation, and run tests.
|
|
57
|
+
|
|
58
|
+
- Please test your changes using the **coverage** library, which will run the tests and log a coverage report:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
coverage run -m unittest discover && coverage report
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
- Use **interrogate** to check that modules, methods, etc. have been documented thoroughly:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
interrogate .
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
- Use **flake8** to check that code is up to standards (no unused imports, etc.):
|
|
71
|
+
```bash
|
|
72
|
+
flake8 .
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- Use **black** to automatically format the code into PEP standards:
|
|
76
|
+
```bash
|
|
77
|
+
black .
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
- Use **isort** to automatically sort import statements:
|
|
81
|
+
```bash
|
|
82
|
+
isort .
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Pull requests
|
|
86
|
+
|
|
87
|
+
For internal members, please create a branch. For external members, please fork the repository and open a pull request from the fork. We'll primarily use [Angular](https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit) style for commit messages. Roughly, they should follow the pattern:
|
|
88
|
+
```text
|
|
89
|
+
<type>(<scope>): <short summary>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
where scope (optional) describes the packages affected by the code changes and type (mandatory) is one of:
|
|
93
|
+
|
|
94
|
+
- **build**: Changes that affect build tools or external dependencies (example scopes: pyproject.toml, setup.py)
|
|
95
|
+
- **ci**: Changes to our CI configuration files and scripts (examples: .github/workflows/ci.yml)
|
|
96
|
+
- **docs**: Documentation only changes
|
|
97
|
+
- **feat**: A new feature
|
|
98
|
+
- **fix**: A bugfix
|
|
99
|
+
- **perf**: A code change that improves performance
|
|
100
|
+
- **refactor**: A code change that neither fixes a bug nor adds a feature
|
|
101
|
+
- **test**: Adding missing tests or correcting existing tests
|
|
102
|
+
|
|
103
|
+
### Semantic Release
|
|
104
|
+
|
|
105
|
+
The table below, from [semantic release](https://github.com/semantic-release/semantic-release), shows which commit message gets you which release type when `semantic-release` runs (using the default configuration):
|
|
106
|
+
|
|
107
|
+
| Commit message | Release type |
|
|
108
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- |
|
|
109
|
+
| `fix(pencil): stop graphite breaking when too much pressure applied` | ~~Patch~~ Fix Release, Default release |
|
|
110
|
+
| `feat(pencil): add 'graphiteWidth' option` | ~~Minor~~ Feature Release |
|
|
111
|
+
| `perf(pencil): remove graphiteWidth option`<br><br>`BREAKING CHANGE: The graphiteWidth option has been removed.`<br>`The default graphite width of 10mm is always used for performance reasons.` | ~~Major~~ Breaking Release <br /> (Note that the `BREAKING CHANGE: ` token must be in the footer of the commit) |
|
|
112
|
+
|
|
113
|
+
### Documentation
|
|
114
|
+
To generate the rst files source files for documentation, run
|
|
115
|
+
```bash
|
|
116
|
+
sphinx-apidoc -o docs/source/ src
|
|
117
|
+
```
|
|
118
|
+
Then to create the documentation HTML files, run
|
|
119
|
+
```bash
|
|
120
|
+
sphinx-build -b html docs/source/ docs/build/html
|
|
121
|
+
```
|
|
122
|
+
More info on sphinx installation can be found [here](https://www.sphinx-doc.org/en/master/usage/installation.html).
|
|
123
|
+
|
|
124
|
+
### Read the Docs Deployment
|
|
125
|
+
Note: Private repositories require **Read the Docs for Business** account. The following instructions are for a public repo.
|
|
126
|
+
|
|
127
|
+
The following are required to import and build documentations on *Read the Docs*:
|
|
128
|
+
- A *Read the Docs* user account connected to Github. See [here](https://docs.readthedocs.com/platform/stable/guides/connecting-git-account.html) for more details.
|
|
129
|
+
- *Read the Docs* needs elevated permissions to perform certain operations that ensure that the workflow is as smooth as possible, like installing webhooks. If you are not the owner of the repo, you may have to request elevated permissions from the owner/admin.
|
|
130
|
+
- A **.readthedocs.yaml** file in the root directory of the repo. Here is a basic template:
|
|
131
|
+
```yaml
|
|
132
|
+
# Read the Docs configuration file
|
|
133
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
134
|
+
|
|
135
|
+
# Required
|
|
136
|
+
version: 2
|
|
137
|
+
|
|
138
|
+
# Set the OS, Python version, and other tools you might need
|
|
139
|
+
build:
|
|
140
|
+
os: ubuntu-24.04
|
|
141
|
+
tools:
|
|
142
|
+
python: "3.13"
|
|
143
|
+
|
|
144
|
+
# Path to a Sphinx configuration file.
|
|
145
|
+
sphinx:
|
|
146
|
+
configuration: docs/source/conf.py
|
|
147
|
+
|
|
148
|
+
# Declare the Python requirements required to build your documentation
|
|
149
|
+
python:
|
|
150
|
+
install:
|
|
151
|
+
- method: pip
|
|
152
|
+
path: .
|
|
153
|
+
extra_requirements:
|
|
154
|
+
- dev
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Here are the steps for building docs in *Read the Docs*. See [here](https://docs.readthedocs.com/platform/stable/intro/add-project.html) for detailed instructions:
|
|
158
|
+
- From *Read the Docs* dashboard, click on **Add project**.
|
|
159
|
+
- For automatic configuration, select **Configure automatically** and type the name of the repo. A repo with public visibility should appear as you type.
|
|
160
|
+
- Follow the subsequent steps.
|
|
161
|
+
- For manual configuration, select **Configure manually** and follow the subsequent steps
|
|
162
|
+
|
|
163
|
+
Once a project is created successfully, you will be able to configure/modify the project's settings; such as **Default version**, **Default branch** etc.
|