Skip to main content

A collection of pre-computed searchlights.

Project description

codecov PyPI PyPI - Downloads PyPI - Python Version

searchlights is a Python package that provides precomputed searchlights for surface-based analysis of fMRI data. It only depends on NumPy.

Installation

The package can be installed with pip:

python -m pip install searchlights

Example usage

The surface-based fMRI data we usually use (e.g., Feilong et al., 2018) are in fsaverage space, downsampled to a lower resolution (icoorder5, approximately 3 mm vertex spacing). The surface has 9372 vertices for the left hemisphere, and 9370 vertices for the right hemisphere. The code below shows how to get the searchlights for the left hemisphere with a 20 mm radius.

import numpy as np
from searchlights import get_searchlights
sls = get_searchlights('l', 20, 'fsaverage')

See the documentation for more examples and details.

Project details


Download files

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

Source Distribution

searchlights-0.2.0.tar.gz (30.7 MB view hashes)

Uploaded Source

Built Distribution

searchlights-0.2.0-py3-none-any.whl (30.7 MB view hashes)

Uploaded Python 3

Supported by

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