Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pybif6

PyPI - Version

This tiny project rewrites the BIF6 file parsing part of the R package tofsims in Python.

Usage

import pybif6

with pybif6.parse_bif6("path/to/bif6/file") as bif6_file:
    for inteval_image in bif6_file:
        print(
            f'id: {inteval_image.id}, '
            f'mz_lower: {inteval_image.mz_lower}, '
            f'mz_middle: {inteval_image.mz_middle}, '
            f'mz_upper: {inteval_image.mz_upper}, '
            f'image: {inteval_image.image.shape}'
        )
        # The image data is stored in `inteval_image.image`, a 2D numpy array.

About

A tiny ToF-SIMS BIF6 file parsing library

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages