Skip to main content

C++ spatial scan wrapper for Python

Project description

pyscan

This is a python wrapper around a large number of anomaly detection algorithms written in c++. These algorithms are from several papers:

If you are interested in using any of these for comparison studies, finding disease outbreaks, collaberations, etc please reach out and email me. I am happy to be of assistance.

To compile this you will need:

  • python python 3.x
  • cgal
  • gsl
  • cmake

Instructions

> git submodule update --init
> mkdir build
> cd build
> cmake ..
> make

You should then be able to use this library as a standard python module by doing: import pyscan

For Mac M1 Chip User

In CMakeLists.txt, you need to comment out

set(CMAKE_CXX_FLAGS_RELEASE "-fPIC -w -O2 -march=native -DNDEBUG")
set(CMAKE_C_FLAGS_RELEASE "-fPIC -w -O2 -march=native -DNDEBUG")

and uncomment

set(CMAKE_CXX_FLAGS_RELEASE "-fPIC -w -O2 -mcpu=apple-m1 -DNDEBUG")
set(CMAKE_C_FLAGS_RELEASE "-fPIC -w -O2 -mcpu=apple-m1 -DNDEBUG")

Make sure use this library on arm64 running Python with the same Python version that built the library.

Website

https://michaelmathen.github.io/pyscan/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyscan_stats-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyscan_stats-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyscan_stats-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyscan_stats-0.1.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyscan_stats-0.1.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyscan_stats-0.1.1-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file pyscan_stats-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyscan_stats-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a19e8b7ec5e3904d1f4b08e247c1a81f2863826eb92cd96e5e9312b336c0c358
MD5 afc88d18a64b9f814135bef424d59d96
BLAKE2b-256 0ded91aa0233705b746c50ebeb4fca90f0353039d16d129e417093e7037dd9db

See more details on using hashes here.

File details

Details for the file pyscan_stats-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyscan_stats-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 65f7013d26aaf9bbb2994aa64a8164878cc5d28339e7b52679d38b96172e2c6d
MD5 09c12f34634d5b805fa65ce1bc35d281
BLAKE2b-256 c7f65f51fa4431264e9d7bdb3ba265e8eaafae950e863f58d76ac02ee2174f3a

See more details on using hashes here.

File details

Details for the file pyscan_stats-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyscan_stats-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3650ad85303802f6f031f4e33e12da4e1a2a28f19d0a7daa81624518275a9fb2
MD5 18b42426f3f79bb8d923c7b6b0b341c2
BLAKE2b-256 385b3993431aea3dbae8c973abd90ef9ccdfb2f138adcf86c259012d0e693473

See more details on using hashes here.

File details

Details for the file pyscan_stats-0.1.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyscan_stats-0.1.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d2fbb66968a79036c143bd0bbd29595baba03933255685990e3be824ae707adc
MD5 be8c92cff045ec21cac22a72db95973f
BLAKE2b-256 5cc5672df5a88c95e379f44fa3f896c1fdb5dc56da87875bf3146df7723a7472

See more details on using hashes here.

File details

Details for the file pyscan_stats-0.1.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyscan_stats-0.1.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b176fa29e4c9741d7fe3b9c1e2168df1b20d0e58043244007ab2ccf441f702cb
MD5 e4a72da687bc0c1cfe786e903a766879
BLAKE2b-256 23c00a25f757ffeb6d4c45d065cf72b8be2453feece936b2b89c9d26612bbd1d

See more details on using hashes here.

File details

Details for the file pyscan_stats-0.1.1-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyscan_stats-0.1.1-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cd0684d6353cacc30a63063aa1781850918a2230eec1e3b764f7f620f9dcb6b7
MD5 1c45308138d926d261aa2cf29264f4ea
BLAKE2b-256 ac5869b7aff84008551915ed199e7a0c709254f0ca49910a29e022c53782e261

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page