Skip to main content

Tests

phconvert

phconvert is a python 3 library that helps writing valid Photon-HDF5 files, a file format for time stamp-based single-molecule spectroscopy. Additionally, phconvert can convert to Photon-HDF5 all the common binary formats used in solution-based single-molecule spectroscopy. These includes PicoQuant's .HT3/.PT3/.PTU/.T3R, Becker & Hickl's .SPC/.SET and the .SM format used by WeissLab and others for µs-ALEX smFRET.

For questions or issues running this software please use the Photon-HDF5 Google Group or open an issue on GitHub.

What's new

** Sep 2026:** PhConvert 0.10.2 released, fixed plotter.alternation_hist

Feb. 2025: PhConvert 0.10 released

Nov. 2018: Phconvert 0.9 released, see the release notes.

Quick-start: Converting files to Photon-HDF5

Converting one of the supported files formats to Photon-HDF5 does not require being able to program in python. All you need is running the "notebook" corresponding to the file format you want to convert from, and follow the instructions therein.

For demonstration purposes, we provide a demo service to run the notebooks online without any installation. With this online service, you can convert data files up to 35MB to Photon-HDF5. To launch the demo click on the following button (see also instructions):

Binder

To execute the phconvert notebooks on your machine, you need to install the Jupyter Notebook App first. A quick-start guide on installing and running the Jupyter Notebook App is available here:

Next, you need to install the phconvert library with the following command (type it in Terminal on OS X or Linux, or in the cmd prompt on Windows):

conda install -c conda-forge phconvert

Finally, you can download one of the provided notebooks and run it on your machine. Simply, download the phconvert zip, which contains all the notebooks in the notebooks subfolder.

For questions or issues:

Project details

What's inside?

phconvert repository contains a python package (library) and a set of notebooks (online viewer). Each notebook can convert a different format to Photon-HDF5 using the phconvert library.

If you have a file format that is not yet supported, please open an new Issue. We are willing add support for as many file formats as possible!

Why phconvert?

When writing Photon-HDF5 files, phconvert saves you time and protects you against common errors that risk to make the file not a valid Photon-HDF5. Also a description is automatically added to each Photon-HDF5 field. The descriptions are extracted from a JSON file which contains the list Photon-HDF5 field names, types, and descriptions.

See also Writing Photon-HDF5 files in the Photon-HDF5 reference documentation.

Read Photon-HDF5 files

In case you just want to read Photon-HDF5 files you don't need to use phconvert. Photon-HDF5 files can be directly opened with a standard HDF5 viewer HDFView.

See also Reading Photon-HDF5 files in the Photon-HDF5 reference documentation.

Installation

The recommended way to install phconvert is using conda:

conda install -c conda-forge phconvert

If you don't have conda installed, please install the free python distribution Anaconda choosing the python 3 version. Starting from version 0.9, the aging python 2.7 is not supported anymore.

Alternatively, you can install phconvert in any python installation using PIP:

pip install phconvert

In this latter case, make sure that numpy and pytables are installed.

See also:

Dependencies

  • python 3.4 or greater (3.6+ recommended)
  • numpy >=1.9
  • pytables >=3.1
  • numba (optional) for faster PicoQuant files decoding

Note when installing via conda all the dependencies are automatically installed.

The phconvert library documentation (for developers)

The phconvert API documentation can be found on ReadTheDocs:

License

phconvert is released under the open source MIT license.

Contributing

As with other Photon-HDF5 subprojects, we encourage contributions in any form, from simple suggestions, typo fix to the addition of new features. Please use GitHub by opening Issues or sending Pull Requests.

All the contributors will be acknowledged in this website, and will included as authors in the next software-paper publication.

For more details see our contribution policy.

Authors & Contributors

List of contributors:

  • Antonino Ingargiola (@tritemio)
  • Ted Laurence (@talaurence)
  • Marco Lamperti (@lampo808) <marco.lampo AT gmail.com>
  • Xavier Michalet (@smXplorer)
  • Anders Barth (@AndersBarth) <anders.barth AT gmail.com>
  • Biswajit Pradhan (@biswajitSM) <biswajitp145 AT gmail.com.
  • Sébastien Weber (@seb5g) <sebastien.weber AT cemes.fr>
  • David Palmer (@dmopalmer)

We thank also @ncodina for providing PTU files and helping in testing the PTU decoder in phconvert.

Acknowledgements

This work was supported by NIH Grant R01-GM95904.

Release 0.9 was supported by Prof. Eitan Lerner.

Metadata

Release files for phconvert 0.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phconvert 0.10.2
File Size Uploaded
phconvert-0.10.2.tar.gz 215.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for phconvert 0.10.2
File Interpreter ABI Platform
phconvert-0.10.2-py3-none-any.whl Python 3 none any Details

Total release size: 299.7 kB

Release files / phconvert-0.10.2.tar.gz

Download URL phconvert-0.10.2.tar.gz
Size 215.5 kB
Tags Source
SHA-256 checksum
How to use checksums
72972e64dfad20b8ccb5a3160c030dc94d46c5361267a2a6496898ea634c53ba
BLAKE2b-256 checksum
How to use checksums
4bc8ed8166360b15aa020ba026e8ef9309df0148e8b0319063832114dd175ffc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / phconvert-0.10.2-py3-none-any.whl

Download URL phconvert-0.10.2-py3-none-any.whl
Size 84.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38f6bc202f983cce5f31facf0803d22c1cdbf38a57230c54da57b60ce5746bf5
BLAKE2b-256 checksum
How to use checksums
5d2887dec32c0d44f8a55673d117033c09d8ccb52bb0a2b8574d7b102f2ffb2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.10.2 This release

2 release files

0.10.1

2 release files

0.9.1

2 release files

0.8.2

1 release file

0.8.1

1 release file

0.8

1 release file

0.7.3

1 release file

0.7.1

1 release file

0.7

1 release file

0.6.9

1 release file

0.6.8

1 release file

0.6.7

1 release file

0.6.5

1 release file

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6

2 release files

0.5.9

2 release files

0.3.1

1 release file

0.2.1

1 release file

0.2.dev0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page