Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate cellfinder into this package #29

Merged
merged 355 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
355 commits
Select commit Hold shift + click to select a range
4e16700
update travis config
adamltyson May 4, 2020
555b19c
update readme link
adamltyson May 4, 2020
8a5d94f
Update brainio req
adamltyson May 4, 2020
520962d
update imlib version
adamltyson May 4, 2020
718c598
Delete CNAME
adamltyson May 4, 2020
96072d8
Create CNAME
adamltyson May 4, 2020
47db365
Delete CNAME
adamltyson May 4, 2020
2c62e3b
update docs
adamltyson May 5, 2020
f93d9c3
badges
adamltyson May 5, 2020
aea8692
Merge branch 'master' of https://github.com/SainsburyWellcomeCentre/c…
adamltyson May 5, 2020
f56ff9c
update docs
adamltyson May 6, 2020
8551565
v0.3.13 notes
adamltyson May 6, 2020
3799e1a
rcbump
adamltyson May 7, 2020
548a1a4
update requirements
adamltyson May 7, 2020
e32ccc3
update requirements
adamltyson May 7, 2020
8c686ba
bump
adamltyson May 7, 2020
f7af3da
add xenial tests
adamltyson May 7, 2020
35ae74d
fix cell_standard import bugs
adamltyson May 10, 2020
7f19813
bump
adamltyson May 10, 2020
a977ece
remove unused code
adamltyson May 11, 2020
9d9a895
remove unused code
adamltyson May 11, 2020
38d4a1c
remove docs
adamltyson May 11, 2020
1fa70e0
update link to docs
adamltyson May 11, 2020
80d76ab
remove 3D viewer
adamltyson May 11, 2020
45e0d41
update reqs
adamltyson May 11, 2020
9b7a91e
start napari 0.3.0 compatibility
adamltyson May 11, 2020
2afb401
update curation to napari 0.3.0
adamltyson May 11, 2020
06aaa60
bump
adamltyson May 11, 2020
58d4c1a
fix deleting files issue on windows
adamltyson May 12, 2020
6f51f8f
update tf version
adamltyson May 12, 2020
fddecac
Merge branch 'master' of https://github.com/SainsburyWellcomeCentre/c…
adamltyson May 13, 2020
c4d779f
update urls
adamltyson May 13, 2020
3b1e7d7
bump
adamltyson May 13, 2020
d64aae5
update contributing
adamltyson May 13, 2020
658e39c
bump
adamltyson May 13, 2020
cc779ef
PR template
adamltyson May 15, 2020
0b411da
update PR template
adamltyson May 15, 2020
6ffda54
update PR template
adamltyson May 15, 2020
abb405b
gitter link in issues
adamltyson May 15, 2020
86017c3
gitter link in issues
adamltyson May 15, 2020
da56d16
troubleshooting link in issues
adamltyson May 15, 2020
17e2676
update issue template
adamltyson May 15, 2020
4ca7c7a
update issue template
adamltyson May 15, 2020
85df7b4
add pytest config
adamltyson May 15, 2020
9f4fbfe
registration test and new atlas compatibility
adamltyson May 15, 2020
f52f4a3
bump
adamltyson May 15, 2020
1d4e289
remove osx testing
adamltyson May 15, 2020
6bbd194
bump
adamltyson May 27, 2020
5985de8
registration compatibility
adamltyson May 27, 2020
d0799c9
update reqs
adamltyson May 27, 2020
f958fa5
bump
adamltyson May 27, 2020
d3dc2c0
update badge
adamltyson Jun 2, 2020
ed9d021
add probe fig
adamltyson Jun 11, 2020
17a63c6
neuro docs link
adamltyson Jun 11, 2020
5363691
update readme
adamltyson Jun 11, 2020
a8795d0
update readme
adamltyson Jun 11, 2020
5398bf9
update readme
adamltyson Jun 11, 2020
d38eb6c
bump reqs
adamltyson Jun 11, 2020
2654cfa
update reqs
adamltyson Jun 11, 2020
88f9c06
bump
adamltyson Jun 11, 2020
39e3fb2
rcbump
adamltyson Jun 11, 2020
d98a1c7
update reqs
adamltyson Jun 12, 2020
357074d
update reqs
adamltyson Jun 12, 2020
e26512c
rc bump
adamltyson Jun 12, 2020
ac00379
update reqs
adamltyson Jun 12, 2020
a4e9e21
merge conflicts
adamltyson Jun 12, 2020
fa42076
update deployment
adamltyson Jun 12, 2020
3b8c327
update deployment
adamltyson Jun 12, 2020
353959a
bump
adamltyson Jun 12, 2020
044d7be
update reqs
adamltyson Jun 12, 2020
de124f6
bump
adamltyson Jun 12, 2020
917d8db
Update readme
adamltyson Jun 13, 2020
08c4b86
fix cells to standard space tool
adamltyson Jun 18, 2020
1b6d52f
Merge branch 'master' of https://github.com/SainsburyWellcomeCentre/c…
adamltyson Jun 18, 2020
5507e01
black formatting
adamltyson Jul 3, 2020
b2126b4
Update training w logging etc. (#125)
adamltyson Jul 6, 2020
fe874d9
update readme
adamltyson Jul 6, 2020
fe28397
add --version cli flag
adamltyson Jul 8, 2020
8031fde
update required imlib version
adamltyson Jul 8, 2020
5577c08
update license
adamltyson Jul 11, 2020
7605a73
brainreg integration (#142)
adamltyson Oct 6, 2020
86fb19b
update cli docs
adamltyson Oct 6, 2020
b4b7c8f
remove pyside import
adamltyson Oct 6, 2020
fc92b37
pyqt -> pyside
adamltyson Oct 6, 2020
3af8ccd
Update readme
adamltyson Oct 7, 2020
a935844
Update DOI
adamltyson Oct 7, 2020
4a1ef1e
update urls
adamltyson Oct 7, 2020
222e498
update readme
adamltyson Oct 7, 2020
266ebef
V0.4.0 - brainglobe compatibility (#146)
adamltyson Oct 13, 2020
6c3658d
Update wheelbuilding (#147)
adamltyson Oct 13, 2020
a3ab56e
Bump version: 0.4.1 → 0.5.0
adamltyson Oct 13, 2020
2376495
Bump version: 0.5.0 → 0.6.0
adamltyson Oct 13, 2020
586b0d1
revert version
adamltyson Oct 13, 2020
ef93f6d
Bump version: 0.4.1 → 0.4.2
adamltyson Oct 13, 2020
b519101
voxel size bug fix
adamltyson Oct 13, 2020
e8bdd5e
Bump version: 0.4.2 → 0.4.3
adamltyson Oct 13, 2020
c6ecee7
update citation
adamltyson Oct 22, 2020
4f4272d
brainrender 1.1 compatibility
adamltyson Oct 27, 2020
0ef0544
Bump version: 0.4.3 → 0.4.4
adamltyson Oct 27, 2020
b9e2948
update cube extraction
adamltyson Oct 29, 2020
5781ddf
Bump version: 0.4.4 → 0.4.5
adamltyson Oct 29, 2020
b3db60f
Allow zero borders of image (#153)
adamltyson Nov 6, 2020
0112783
Bump version: 0.4.5 → 0.4.6
adamltyson Nov 6, 2020
84973bb
Cell export (#155)
adamltyson Nov 19, 2020
4cca31d
Migrate to GH actions and fix brainrender export (#156)
adamltyson Nov 25, 2020
f88183c
Bump version: 0.4.6 → 0.4.7
adamltyson Nov 25, 2020
6ffef0f
update badhes
adamltyson Nov 25, 2020
b2e6422
Update issue links
adamltyson Dec 9, 2020
9e4eb3f
update dependencies (#161)
adamltyson Jan 11, 2021
3093166
Bump version: 0.4.7 → 0.4.8
adamltyson Jan 11, 2021
b7356e5
remove docs issue template
adamltyson Jan 19, 2021
e2e100c
Update README.md
adamltyson Mar 3, 2021
fd1adb5
Update README.md
adamltyson Mar 3, 2021
668e9c8
Update citation.
adamltyson Mar 6, 2021
20b7db8
Update test_and_deploy.yml
adamltyson Mar 6, 2021
abeaa48
Extract computation to cellfinder-core (#164)
adamltyson Mar 10, 2021
890e180
Bump version: 0.4.8 → 0.4.9
adamltyson Mar 10, 2021
e72b22d
Update versioning (#166)
adamltyson Mar 11, 2021
a9590de
Bump version: 0.4.11-rc6 → 0.4.11
adamltyson Mar 11, 2021
980576a
Move to brainglobe-napari-io (#167)
adamltyson Mar 12, 2021
f3e0f8e
Update docs (#171)
adamltyson Apr 16, 2021
dafedbf
Fix #172 (#173)
adamltyson Apr 19, 2021
ea4be79
Bump version: 0.4.12-rc0 → 0.4.12
adamltyson Apr 19, 2021
d451d0a
update readme
adamltyson Apr 27, 2021
98ae751
Update readme & bundle cellfinder-napari (#177)
adamltyson Apr 29, 2021
a33be0c
Emphasise link to the data requirements
adamltyson Apr 29, 2021
3419b97
only analyse cells if points exist
adamltyson May 2, 2021
9e0a586
Merge branch 'master' of https://github.com/brainglobe/cellfinder
adamltyson May 2, 2021
50559e0
Bump version: 0.4.12 → 0.4.13-rc0
adamltyson May 2, 2021
d6db872
Bump version: 0.4.13-rc0 → 0.4.13
adamltyson May 4, 2021
76c57c2
fix analysis bug
adamltyson May 5, 2021
35d2e0e
Bump version: 0.4.13 → 0.5.0-rc0
adamltyson May 5, 2021
c72a665
Bump version: 0.5.0-rc0 → 0.5.0
adamltyson May 5, 2021
38c5f84
revert version
adamltyson May 5, 2021
4b8fd17
Bump version: 0.4.14 → 0.4.15-rc0
adamltyson May 5, 2021
e4c8009
Bump version: 0.4.15-rc0 → 0.4.15
adamltyson May 5, 2021
ea9af5e
Update README.md
adamltyson May 7, 2021
91becb7
Update README.md
adamltyson May 7, 2021
a9d8449
update url
adamltyson May 13, 2021
d58965e
update readme
adamltyson May 19, 2021
b3e1a84
update readme
adamltyson May 19, 2021
2e59988
Export to abc4d (#183)
adamltyson Jun 10, 2021
932960f
pin to latest version of cellfinder-core
adamltyson Jun 10, 2021
c7af64c
Bump version: 0.4.15 → 0.4.16-rc0
adamltyson Jun 10, 2021
38c3911
Bump version: 0.4.16-rc0 → 0.4.16
adamltyson Jun 10, 2021
7cd7d73
update citation
adamltyson Jun 10, 2021
424412f
update supported python versions
adamltyson Jun 10, 2021
b4b8ccd
Bump version: 0.4.16 → 0.4.17-rc0
adamltyson Jun 10, 2021
78bede2
Bump version: 0.4.17-rc0 → 0.4.17
adamltyson Jun 10, 2021
a43eb3f
update testing
adamltyson Jun 10, 2021
8853dc4
run tests on PR
adamltyson Jun 21, 2021
69d317f
update twitter
adamltyson Jun 22, 2021
bce18b6
Update environment.yml
adamltyson Jul 2, 2021
c128cbf
Update license.
adamltyson Jul 2, 2021
a16a70f
Update website badge
adamltyson Aug 31, 2021
30b8a75
Update README.md
adamltyson Sep 22, 2021
1e3bed9
Add credits (#187)
adamltyson Sep 22, 2021
22cbbee
Update README.md
adamltyson Sep 22, 2021
5746cd2
figures bug
adamltyson Oct 15, 2021
a29e819
Bump version: 0.4.17 → 0.4.18-rc0
adamltyson Oct 15, 2021
60f85cf
Bump version: 0.4.18-rc0 → 0.4.18
adamltyson Oct 15, 2021
eaf2006
remove cython from setup
adamltyson Oct 15, 2021
44ce4bf
Bump version: 0.4.18 → 0.4.19-rc0
adamltyson Oct 15, 2021
0466e94
Bump version: 0.4.19-rc0 → 0.4.19
adamltyson Oct 15, 2021
ec0c0c4
Update README.md
adamltyson Nov 10, 2021
a642d32
Create Dockerfile
adamltyson Jan 19, 2022
5545f56
Update test_and_deploy.yml
adamltyson Jan 19, 2022
c611c8f
Bump version: 0.4.19 → 0.4.20-rc0
Jan 19, 2022
6cfa7ed
update GH actions workflow
Jan 19, 2022
9ac0707
Bump version: 0.4.20-rc0 → 0.4.20-rc1
Jan 19, 2022
e452823
Update README.md
adamltyson Jan 19, 2022
fa0cad8
Bump version: 0.4.20-rc1 → 0.4.20
Jan 19, 2022
89d68a0
Update README.md
adamltyson Feb 15, 2022
624cc1f
Expand pre commit and ci (#192)
paddyroddy Feb 21, 2022
fe2478b
Use relative paths for test data directories
dstansby Mar 14, 2022
9ccb023
Merge pull request #197 from brainglobe/test-paths
paddyroddy Mar 21, 2022
6493ca7
Fix black version in pre-commit-config
dstansby Apr 11, 2022
fec089f
Use re-usable GH actions to run CI
dstansby Apr 11, 2022
276b391
Merge pull request #198 from brainglobe/reusable-actions
paddyroddy Apr 11, 2022
56c3014
Allow easy testing with dev version of cellfinder-core
dstansby Apr 25, 2022
2b3e32e
Merge pull request #199 from brainglobe/coredev-testing
dstansby Apr 25, 2022
0dcba1c
Set input_coredev environment variable
dstansby Apr 25, 2022
275bdcb
Ignore direnv
paddyroddy May 5, 2022
892d6b7
Introduce some typing to understand the code
paddyroddy May 5, 2022
00851db
Merge pull request #202 from brainglobe/add-typing-to-analyse
dstansby May 6, 2022
9132772
Fix typing
paddyroddy May 6, 2022
cd59c2d
Add some docstrings to analyse
dstansby May 19, 2022
66911fc
Don't specify QT backend in requirements
dstansby May 19, 2022
38ed97a
Merge pull request #205 from dstansby/napari-backend
paddyroddy May 23, 2022
cebfb5c
Merge pull request #204 from dstansby/analyse-docstrings
paddyroddy May 23, 2022
5144676
Update CODE_OF_CONDUCT.md
adamltyson May 24, 2022
2fc3bb1
Use standard BrainGlobe code of conduct.
adamltyson May 26, 2022
189e547
Revert "Don't specify QT backend in requirements" (#206)
dstansby May 27, 2022
5bf417f
Delete CONTRIBUTING.md
adamltyson May 31, 2022
617a694
Add contributing link
adamltyson May 31, 2022
c46e0d8
remove repo-specific templates
adamltyson Jun 9, 2022
d4fa729
Change readme badge to codecov.
adamltyson Jul 27, 2022
6d2f684
Modify setup for napari and tensorflow (#215)
niksirbi Oct 24, 2022
1392d68
Update tooling (#218)
adamltyson Dec 9, 2022
f37a27d
Update brainreg API use (#219)
adamltyson Dec 13, 2022
e3b48c0
Bump version: 0.4.21-rc0 → 0.4.21
adamltyson Dec 13, 2022
2dfecda
Improve performance of create_all_cell_csv (#220)
stegiopast Jan 30, 2023
1f9a022
Test on macOS (#222)
dstansby Feb 13, 2023
6a2f596
Add logging of multiple processes (#224)
adamltyson Feb 14, 2023
23dfce7
Use standard pre-commit config (#223)
dstansby Feb 21, 2023
2bbc52c
Clean requirements (#225)
dstansby Feb 27, 2023
0f90608
Update README.md
adamltyson Apr 24, 2023
b34cea5
Merge pull request #227 from brainglobe/readme-fix
dstansby Apr 24, 2023
890b892
Test that planes are saved
dstansby Apr 24, 2023
2a149bf
Make sure planes are saved
dstansby Apr 24, 2023
460af92
Merge pull request #228 from dstansby/test-saved-planes
alessandrofelder May 11, 2023
6ee939e
Update links (#229)
adamltyson Jun 19, 2023
7277cfd
[pre-commit.ci] pre-commit autoupdate (#230)
pre-commit-ci[bot] Jun 20, 2023
5566df3
[pre-commit.ci] pre-commit autoupdate (#232)
pre-commit-ci[bot] Jun 27, 2023
d7d13ab
[pre-commit.ci] pre-commit autoupdate (#233)
pre-commit-ci[bot] Jul 4, 2023
2330826
Update dependency (imlib -> brainglobe-utils) (#231)
adamltyson Jul 7, 2023
8942de3
[pre-commit.ci] pre-commit autoupdate (#234)
pre-commit-ci[bot] Jul 11, 2023
f6630bc
[pre-commit.ci] pre-commit autoupdate (#237)
pre-commit-ci[bot] Jul 18, 2023
fa58429
[pre-commit.ci] pre-commit autoupdate (#238)
pre-commit-ci[bot] Jul 25, 2023
557b57b
[pre-commit.ci] pre-commit autoupdate (#239)
pre-commit-ci[bot] Aug 1, 2023
2f468f3
Update setup.py (#240)
willGraham01 Aug 2, 2023
7787e38
Update manual version (#241)
willGraham01 Aug 2, 2023
33add85
[pre-commit.ci] pre-commit autoupdate (#243)
pre-commit-ci[bot] Aug 8, 2023
0ae31d4
[pre-commit.ci] pre-commit autoupdate (#244)
pre-commit-ci[bot] Aug 17, 2023
80f01d4
Migrate to pyproject (#247)
willGraham01 Aug 21, 2023
20fbec1
[pre-commit.ci] pre-commit autoupdate (#248)
pre-commit-ci[bot] Aug 22, 2023
0ee382f
[pre-commit.ci] pre-commit autoupdate (#249)
pre-commit-ci[bot] Aug 29, 2023
3d1f773
Set pre-commit autoupdate frequency to monthly (#250)
adamltyson Aug 29, 2023
a0debd7
[pre-commit.ci] pre-commit autoupdate (#252)
pre-commit-ci[bot] Sep 5, 2023
21f724b
[pre-commit.ci] pre-commit autoupdate (#253)
pre-commit-ci[bot] Oct 3, 2023
0d517ed
Update to brainreg v1 compliance (#255)
willGraham01 Nov 6, 2023
0e3301c
[pre-commit.ci] pre-commit autoupdate (#256)
pre-commit-ci[bot] Nov 7, 2023
e5f3b6c
Replace `pandas.df.append` with `safe_concat` (#259)
alessandrofelder Nov 15, 2023
0087633
Change cellfinder to brainglobe-workflows everywhere
willGraham01 Sep 1, 2023
9d31eb9
Keep cellfinder alias for CLI script
willGraham01 Sep 1, 2023
4a95ca4
Merge branch 'main' into dev.
willGraham01 Nov 15, 2023
413b6f8
Ruff works
willGraham01 Nov 15, 2023
171c8f6
Hard-depend on pooch
willGraham01 Nov 15, 2023
9a88862
Adapt pandas fix from cellfinder
willGraham01 Nov 15, 2023
34c8a22
Comply with asv run specs
willGraham01 Nov 15, 2023
9591757
Purge Docker-related things (#30)
willGraham01 Nov 20, 2023
6e7bf30
Add note on dependency information
willGraham01 Nov 20, 2023
0022777
Update README with cellfinder name
willGraham01 Nov 27, 2023
7846cd7
Convert cellfinder mention to a stub, and direct to documentaiton online
willGraham01 Nov 27, 2023
e4f64a0
Apply suggestions from code review
willGraham01 Nov 27, 2023
dacb6e2
Fix double link sentence
willGraham01 Nov 27, 2023
ee322e5
Remove asv config file from MANIFEST and build
willGraham01 Nov 27, 2023
8d8dc16
Ship default napari backend with optional dependency
willGraham01 Nov 27, 2023
c70d6f7
Group cellfinder tests to make it clear where they are
willGraham01 Nov 27, 2023
ef35de9
Update pyproject.toml
willGraham01 Dec 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 30 additions & 18 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,30 @@ name: tests
on:
push:
branches:
- '*'
- "main"
tags:
- '*'
- "*"
pull_request:
workflow_dispatch:
inputs:
coredev:
description: 'Tests with development version of cellfinder-core?'
willGraham01 marked this conversation as resolved.
Show resolved Hide resolved
required: true
default: 'false'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v2

manifest:
name: Check Manifest
name: Check manifest
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/check_manifest@v2
Expand All @@ -24,20 +35,21 @@ jobs:
needs: [linting, manifest]
name: ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
env:
INPUT_COREDEV: ${{ github.event.inputs.coredev }}
strategy:
fail-fast: false
matrix:
# Run all supported Python versions on linux
python-version: ["3.8", "3.9", "3.10"]
# Run tests on ubuntu across all supported versions
python-version: ["3.9", "3.10"]
os: [ubuntu-latest]
# Include one windows and macos run
# Include at least one MacOS and Windows test
include:
- os: macos-latest
python-version: "3.10"
- os: windows-latest
python-version: "3.10"

steps:
# Run tests
- uses: neuroinformatics-unit/actions/test@v2
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -48,19 +60,19 @@ jobs:
if: github.event_name == 'push' && github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/build_sdist_wheels@v2

- uses: neuroinformatics-unit/actions/build_sdist_wheels@v2

upload_all:
name: Publish build distributions
needs: [build_sdist_wheels]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref_type == 'tag'
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.TWINE_API_KEY }}
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.TWINE_API_KEY }}
64 changes: 57 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# Custom config files
*.conf.custom

# Byte-compiled / optimized / DLL files
__pycache__/
**/__pycache__/**
*.py[cod]
*$py.class

# Cython
*.c
*.cpp

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
Expand All @@ -20,9 +26,11 @@ lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
Expand All @@ -42,8 +50,9 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
*,cover
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
Expand All @@ -52,22 +61,30 @@ coverage.xml
# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask instance folder
# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/
doc/build/

# pydocmd
_build/
mkdocs.yml

# MkDocs documentation
/site/
site/

# PyBuilder
target/

# Pycharm and VSCode
.idea/
venv/
.vscode/

# IPython Notebook
Expand All @@ -76,9 +93,42 @@ venv/
# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
.envrc

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mypy
.mypy_cache/

*.~lock.*

pip-wheel-metadata/

# OS
.DS_Store

# written by setuptools_scm
**/_version.py
benchmarks/results/*

# Benchmarking with ASV
.asv/
14 changes: 9 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Configuring https://pre-commit.ci/
ci:
autoupdate_schedule: monthly

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-docstring-first
- id: check-executables-have-shebangs
Expand All @@ -12,20 +15,21 @@ repos:
args: [--fix=lf]
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.272
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
hooks:
- id: ruff
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.10.1
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
rev: v1.6.1
hooks:
- id: mypy
additional_dependencies:
- types-setuptools
- types-requests
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
Expand Down
5 changes: 3 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BSD 3-Clause License

Copyright (c) 2023, BrainGlobe developers
Copyright (c) 2023, BrainGlobe developers.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand All @@ -12,7 +13,7 @@ modification, are permitted provided that the following conditions are met:
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of brainglobe-scripts nor the names of its
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

Expand Down
25 changes: 17 additions & 8 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
include LICENSE
include README.md
include LICENSE
include brainglobe_workflows/cellfinder/default_config.json

willGraham01 marked this conversation as resolved.
Show resolved Hide resolved
exclude .pre-commit-config.yaml
exclude *.yaml
exclude *.yml
exclude Dockerfile
exclude *.ini
exclude asv.conf.json

recursive-include brainglobe_workflows *.py
include brainglobe_workflows/cellfinder/default_config.json

recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-exclude docs *
recursive-exclude tests *

include *.json
recursive-include benchmarks *.json
recursive-include benchmarks *.py
recursive-exclude benchmarks/results *
global-include *.pxd

prune benchmarks
prune docs
prune tests
prune resources

prune .github
prune .tox
75 changes: 74 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,74 @@
# brainglobe-workflows
[![Python Version](https://img.shields.io/pypi/pyversions/brainglobe-workflows.svg)](https://pypi.org/project/brainglobe-workflows)
[![PyPI](https://img.shields.io/pypi/v/brainglobe-workflows.svg)](https://pypi.org/project/brainglobe-workflows)
[![Downloads](https://pepy.tech/badge/brainglobe-workflows)](https://pepy.tech/project/brainglobe-workflows)
[![Wheel](https://img.shields.io/pypi/wheel/brainglobe-workflows.svg)](https://pypi.org/project/brainglobe-workflows)
[![Development Status](https://img.shields.io/pypi/status/brainglobe-workflows.svg)](https://github.com/brainglobe/brainglobe-workflows)
[![Tests](https://img.shields.io/github/workflow/status/brainglobe/brainglobe-workflows/tests)](
https://github.com/brainglobe/brainglobe-workflows/actions)
[![codecov](https://codecov.io/gh/brainglobe/brainglobe-workflows/branch/master/graph/badge.svg?token=s3MweEFPhl)](https://codecov.io/gh/brainglobe/brainglobe-workflows)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Contributions](https://img.shields.io/badge/Contributions-Welcome-brightgreen.svg)](https://brainglobe.info/developers/index.html)
[![Website](https://img.shields.io/website?up_message=online&url=https%3A%2F%2Fbrainglobe.info)](https://brainglobe.info/documentation/brainglobe-workflows/index.html)
[![Twitter](https://img.shields.io/twitter/follow/brain_globe?style=social)](https://twitter.com/brain_globe)

# BrainGlobe Workflows

`brainglobe-workflows` is a package that provides users with a number of out-of-the-box data analysis workflows employed in neuroscience, implemented using BrainGlobe tools.
You can find the [full documentation](https://brainglobe.info/documentation/brainglobe-workflows/index.html), including that for the workflow tools provided, [on our website](https://brainglobe.info/documentation/brainglobe-workflows/index.html).

willGraham01 marked this conversation as resolved.
Show resolved Hide resolved
At present, the package currently offers the following workflows:

willGraham01 marked this conversation as resolved.
Show resolved Hide resolved
- [cellfinder](#cellfinder): Whole-brain detection, registration, and analysis.

## Installation

If you want to install BrainGlobe workflows as a standalone tool, you can run `pip install` in your desired environment:

```bash
pip install brainglobe-workflows
```

`brainglobe-workflows` is built using BrainGlobe tools, and it will automatically fetch the tools that it needs and install them into your environment.
Once BrainGlobe version 1 is available, this package will fetch all BrainGlobe tools and handle their install into your environment, to prevent potential conflicts from partial-installs.

## Contributing

Contributions to BrainGlobe are more than welcome.
Please see the [developers guide](https://brainglobe.info/developers/index.html).

## Citing `brainglobe-workflows`

**If you use any tools in the [brainglobe suite](https://brainglobe.info/documentation/index.html), please [let us know](mailto:[email protected]?subject=cellfinder), and we'd be happy to promote your paper/talk etc.**

If you find [`cellfinder`](#cellfinder) useful, and use it in your research, please cite the paper outlining the cell detection algorithm:
> Tyson, A. L., Rousseau, C. V., Niedworok, C. J., Keshavarzi, S., Tsitoura, C., Cossell, L., Strom, M. and Margrie, T. W. (2021) “A deep learning algorithm for 3D cell detection in whole mouse brain image datasets’ PLOS Computational Biology, 17(5), e1009074
[https://doi.org/10.1371/journal.pcbi.1009074](https://doi.org/10.1371/journal.pcbi.1009074)
>
If you use any of the image registration functions in `cellfinder`, please also cite [`brainreg`](https://github.com/brainglobe/brainreg#citing-brainreg).

---

## Cellfinder

Whole-brain cell detection, registration and analysis.

If you want to just use the cell detection part of `cellfinder`, please see the standalone [cellfinder-core](https://github.com/brainglobe/cellfinder-core) package, or the [cellfinder plugin](https://github.com/brainglobe/cellfinder-napari) for [napari](https://napari.org/).

`cellfinder` is a collection of tools developed by [Adam Tyson](https://github.com/adamltyson), [Charly Rousseau](https://github.com/crousseau) and [Christian Niedworok](https://github.com/cniedwor) in the [Margrie Lab](https://www.sainsburywellcome.org/web/groups/margrie-lab), generously supported by the [Sainsbury Wellcome Centre](https://www.sainsburywellcome.org/web/).

`cellfinder` is a designed for the analysis of whole-brain imaging data such as [serial-section imaging](https://sainsburywellcomecentre.github.io/OpenSerialSection/) and lightsheet imaging in cleared tissue.
The aim is to provide a single solution for:

- Cell detection (initial cell candidate detection and refinement using deep learning) (using [cellfinder-core](https://github.com/brainglobe/cellfinder-core)),
- Atlas registration (using [brainreg](https://github.com/brainglobe/brainreg)),
- Analysis of cell positions in a common space.

Basic usage:

```bash
cellfinder -s signal_images -b background_images -o output_dir --metadata metadata
```

Full documentation can be found [here](https://brainglobe.info/documentation/cellfinder/index.html).
10 changes: 7 additions & 3 deletions brainglobe_workflows/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
from importlib.metadata import PackageNotFoundError, version
from importlib.metadata import PackageNotFoundError, metadata

try:
__version__ = version("brainglobe-workflows")
__version__ = metadata("brainglobe_workflows")["version"]
__author__ = metadata("brainglobe_workflows")["author-email"]
__license__ = metadata("brainglobe_workflows")["license"]
except PackageNotFoundError:
# package is not installed
# Package not installed
pass

del metadata
Empty file.
Loading