ndx-fret
NWB extension for storing Fluorescence Resonance Energy Transfer (FRET) experimental data. A collaboration with Jaeger Lab, Emory University and The Kavli Foundation.
Python Installation
pip install ndx-fret
Python Usage
from pynwb import NWBFile, NWBHDF5IO
from pynwb.device import Device
from pynwb.ophys import OpticalChannel
from ndx_fret import FRET, FRETSeries
from datetime import datetime
import numpy as np
nwb = NWBFile('session_description', 'identifier', datetime.now().astimezone())
# Create and add device
device = Device(name='Device')
nwb.add_device(device)
# Create optical channels
opt_ch_d = OpticalChannel(
name='optical_channel',
description='optical_channel_description',
emission_lambda=529.
)
opt_ch_a = OpticalChannel(
name='optical_channel',
description='optical_channel_description',
emission_lambda=633.
)
# Create FRET
fs_d = FRETSeries(
name='donor',
fluorophore='mCitrine',
optical_channel=opt_ch_d,
device=device,
description='description of donor series',
data=np.random.randn(100, 10, 10),
rate=200.,
unit='no unit'
)
fs_a = FRETSeries(
name='acceptor',
fluorophore='mKate2',
optical_channel=opt_ch_a,
device=device,
description='description of acceptor series',
data=np.random.randn(100, 10, 10),
rate=200.,
unit='no unit'
)
fret = FRET(
name='FRET',
excitation_lambda=482.,
donor=fs_d,
acceptor=fs_a
)
nwb.add_acquisition(fret)
# Write nwb file
with NWBHDF5IO('test_fret.nwb', 'w') as io:
io.write(nwb)
print('NWB file written')
# Read nwb file and check its content
with NWBHDF5IO('test_fret.nwb', 'r', load_namespaces=True) as io:
nwb = io.read()
print(nwb)
Metadata
Release files for ndx-fret 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ndx-fret-0.2.1.tar.gz | 5.0 kB | Without provenance | Details for ndx-fret-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ndx_fret-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for ndx_fret-0.2.1-py3-none-any.whl |
Total release size: 10.8 kB
Release files / ndx-fret-0.2.1.tar.gz
| Download URL | ndx-fret-0.2.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5eb8eb1135ea41c4c9cf2a8ba8c20aae4b3f23188d974b69d4ffb667ca10752
|
|
BLAKE2b-256 checksum How to use checksums |
93cae10b0299120b2ad1ac4b10cfa85f8480c2e71a3eee0f863d6f2f156d7449
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7
|
Release files / ndx_fret-0.2.1-py3-none-any.whl
| Download URL | ndx_fret-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
507c47871a8738feb90c0fc628ae8b640cc09d8795e35f08c03ead6c4ae020f0
|
|
BLAKE2b-256 checksum How to use checksums |
1a57d46e0603523b894559fd47f6b277d32a98f1d6bffa4d8489df3e384e81a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7
|
Security for ndx-fret 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.