Toolkit for working with EMDB-SFF and other segmentation file formats
Project description
Introduction
sfftk is a set of utilities that facilitate creation, conversion and modification of Electron Microscopy Data Bank - Segmentation File Format (EMDB-SFF) files. EMDB-SFF is an open, community-driven file format to handle annotated segmentations and subtomogram averages that facilitates segmentation file interchange. It is written in Python and provides both a command-line suite of commands and a Python API.
Audience
sfftk is primarily targeted but not restricted to biological electron microscopists and developers of image segmentation software.
License
sfftk is free and open source software released under the terms of the Apache License, Version 2.0. Source code is copyright EMBL-European Bioinformatics Institute (EMBL-EBI) 2017.
Data Model
sfftk is built to handle EMDB-SFF files. The corresponding schema (v0.8.0.dev1) may be found at https://emdb-empiar.github.io/EMDB-SFF. Changes to the schema are welcome for discussion at the Segmentation Working Group at https://listserver.ebi.ac.uk/mailman/listinfo/segtrans-wg.
Supported Formats
The following file formats are currently supported (in alphabetical order of extensions):
Amira Mesh (.am)
SuRVoS (.h5; experimental support)
CCP4 Masks (.map)
IMOD (.mod)
Segger (.seg)
Stereolithography (.stl)
Amira HyperSurface (.surf)
Contact
Any questions or comments should be addressed to pkorir at ebi dot ac dot uk.
Publications
The EMDB-SFF data model is the result of various community consultations which are published in the following articles:
Getting Started
Obtaining and Installing sfftk
Dependencies
As with any Python software, we recommend installing it in a virtual environment (of your choice). The only dependency that may be needed is numpy which can be installed with
pip install numpy
PyPI
sfftk is available on PyPI meaning that all that one needs to do is run:
pip install sfftk
Source
The sfftk source is available from Github https://github.com/emdb-empiar/sfftk.
Features
sfftk has two principal functions:
convert application-specific segmentation file format (AS-SFF) files to EMDB-SFF;
annotate EMDB-SFF files against known ontologies.
Conversion
Segmentation files may be converted to EMDB-SFF files using the convert command.
sff convert file.am -o file.sff
For a full description of how to perform conversion, please see the guide to format conversion.
Annotation
Annotation is performed using the notes utility on EMDB-SFF files.
sff notes show -H file.sff
sfftk provides a simple set of tools to allow viewing, searching and modifying annotations associated with the segmentation and individual segments. The added annotations should be either from a public ontology or be an accession from a public database.
See the guide to annotating segmentations for a full treatment.
Miscellaneous
sfftk may also be used for several miscellaneous operations such as:
Prepping segmentations before conversion to EMDB-SFF
Setting configurations that affect how sfftk works
Running unit tests with the tests command
More information on this can be found in the guide to miscellaneous operations.
Developing with sfftk
sfftk is developed as a set of decoupled packages providing the various functionality. The main classes involved are found in the sfftkrw package. There is also a guide to developing with sfftk which provides useful instructions.
Extending sfftk
sfftk has built with extensibility in mind. It is anticipated that most extension will take the form of supporting additional file formats. Please read the guide to extending sfftk to learn how to do this.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for sfftk-0.5.5.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e95fe72fd6020367bc7503991f275e49cef2920c2dcbb8d70f738e13b83c7b4 |
|
MD5 | 506e2d02fe931d8b2d35060c28901ed7 |
|
BLAKE2b-256 | 0a189d077fccba36a63315c84b040c1a455a95a09939dde2a45f1ac7a2828ac8 |
Hashes for sfftk-0.5.5.dev1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85cf5fad1d3525a03d5edb2f40a18097d12a03ff38624b6d07f6a5c0d778caf3 |
|
MD5 | 6078c0bb46a67c5d0e99770c37ed7ba4 |
|
BLAKE2b-256 | 695b2f0b9d42c1dd80e79a090c7102d66195e41599244bea3c7965c57c9ae9ae |