Skip to content

Refactor code#11

Merged
tare merged 48 commits intomasterfrom
refactor
Oct 25, 2024
Merged

Refactor code#11
tare merged 48 commits intomasterfrom
refactor

Conversation

@tare
Copy link
Copy Markdown
Owner

@tare tare commented Dec 22, 2023

What

Refactor the whole code base.

Why

The code base is old and it was put together without a good structure. Additionally, the use of CmdStan introduced some complicated steps when it comes to input data generation and downstream analysis. Finally, the code was not going to work on Visium data.

How

Here is a list of the main changes:

  • replace CmdStan with NumPyro
  • replace CAR prior using HSGP
  • use Poetry
  • implement unit tests
  • implement graph-based tissue section detection and separation
  • simplify the code base
  • add type hinting
  • add GitHub actions
  • add some pre-commit hooks
  • use ruff

Testing

Experimented with the package and implemented tests to ensure that the package works as expected.

Anything else

There are many breaking changes.

@tare tare merged commit 0473b1a into master Oct 25, 2024
@tare tare deleted the refactor branch October 25, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant