this is for holding javascript data
Antonino Ingargiola edited smFRET data analysis.tex
over 9 years ago
Commit id: 276dc536abc19640f987d9036157d327c6b7468c
deletions | additions
diff --git a/smFRET data analysis.tex b/smFRET data analysis.tex
index dc2c009..1dac0dd 100644
--- a/smFRET data analysis.tex
+++ b/smFRET data analysis.tex
...
We encourage adopting HDF5-Ph-Data format beacuse it is relatively simple, scalable, well documented, space efficient and very fast[Link]. All the FRETBursts example data files are in HDF5-Ph-Data. An additional file-set can be found here[multi-spot paper data files].
Functions All the functions to load
data files the different file formats are defined in the \verb|loader| module. In particular, to load an HDF5-Ph-Data file use:
\verb|d = loader.hdf5(file_name)|
where \verb|file_name| is a string containing the file path. In the previous command, the variable `d`
(that (of type `Data`) is
an the fundamental object
of type Data) in FRETBursts that contains the measurement data and several methods to process it.
If you have smFRET In case the data
is available in
another format, you can a format not directly supported it is possible to manually create a `Data` variable. For example, for non-ALEX smFRET data,
you need to create two arrays of same
length: length are needed: the timestamps and
the acceptor-mask. The timestamps is an int64 numpy array containing the recorded photon timestamps in arbitrary units (usually dictated by the acquisition hardware clock period). The acceptor-mask is a numpy boolean array that is True when the corresponding timestamps comes from the acceptor channel and False when it comes from the donor channel. Once you have these arryas you can manually create a `Data` object with:
\verb|d = Data(ph_times_m=[timestamps], A_em=[acceptor_mask], clk_p=10e-9, ALEX=False)|