Skip to main content

Flywheel Curation tools

Project description

fw-curation

fw-curation is a python package maintained by Flywheel It provides a set of utilities for writing SDK scripts to perform curation.

Features

  • Validation and Curation: Perform highly configurable curation tasks on a given container or file
  • Traversal Control: Walk the Flywheel Hierarchy depth-first or breadth-first, with configurable stop levels, custom callback functions, and the ability to exclude analyses and/or files
  • Multiprocessing Support: Parallel processing with configurable worker count and shared data between workers
  • Aggregated Logging: Customizable output logging in CSV or JSON format

Installation

Basic Installation

pip install fw-curation

With Optional Dependencies

Install specific extras for additional functionality:

# Install with SDK support
pip install fw-curation[sdk]

Available extras:

  • sdk: Flywheel SDK integration

Quick Start

Create a simple HierarchyCurator script:

from fw_curation.curator import HierarchyCurator
from fw_curation.walker import Walker
import flywheel
import logging

log = logging.getLogger(__name__)

class Curator(HierarchyCurator):
    def curate_acquisition(self, acq):
        log.info(f'Processing acquisition: {acq.label}')

if __name__ == '__main__':
    # Connect to Flywheel
    fw = flywheel.Client(<YOUR_API_KEY>)

    # Get your project
    project = fw.lookup('example/test')

    # Create a walker starting from the project
    walker = Walker.from_container(project)

    # Create and run the curator
    curator = Curator()
    curator.curate(walker)

Documentation

Comprehensive documentation is available at: https://flywheel-io.gitlab.io/scientific-solutions/lib/fw-curation/

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines on contributing.

License

fw-curation is released under the MIT License.

Support

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 Distribution

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

fw_curation-1.0.2-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file fw_curation-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: fw_curation-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.19 Linux/5.15.154+

File hashes

Hashes for fw_curation-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6c8cf4a3fc62e1f2426b0db97f3758d691f0c2346171e1722a3ce8dd8f902ab
MD5 b87e426efaf6500e9fe0cecea6ec2702
BLAKE2b-256 eab4334b5cb4d890a7248d7035892ebab94ccd15ddf3e442b126524e6d1ed039

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