merging multiple .ptu files to a single hdf5
Mattyboi123 opened this issue · 10 comments
Apologies if this is an already answered question or I've missed something obvious but how does one combine multiple .ptu files into a single hdf5 file prior to further analysis withe pycorrelate or fretbursts?
Best
Matt
I suggest keeping your files separate and loading the data into one large DataFrame. For example bursts_all = pd.concat(dataframe_list, ignore_index=True)
.
hi thanks for the suggestion but will that preserve all of the nanotimes and still be navigable using the normal fretbursts commands?
by the by did you sole the issue you were having with no module named phrates_c? I now have the same issue trying to import FRETbursts on a new clean anaconda install on a new machine perhaps it is a python 3.8 issue as when Itried to install fretbursts through conda-forge it said something about that and didn't install so Icloned my version that was working on another machine (python 3.7) then this issue on the new machine
hi thanks for the suggestion but will that preserve all of the nanotimes and still be navigable using the normal fretbursts commands?
Yes, each data object will have the same fields and FRETBursts will work on them in the same way.
by the by did you sole the issue you were having with no module named phrates_c? I now have the same issue trying to import FRETbursts on a new clean anaconda install on a new machine perhaps it is a python 3.8 issue as when Itried to install fretbursts through conda-forge it said something about that and didn't install so Icloned my version that was working on another machine (python 3.7) then this issue on the new machine
I haven't upgraded to python 3.8, so I don't have experience with the compatibility. I would not expect this to be the issue, rather updates in the dependencies could cause issues (e.g. deprecations in numpy).
Please try an “editable” installation:
git clone https://github.com/OpenSMFS/FRETBursts.git
cd FRETBursts
pip install -e .
Ye I did try installing like that, it didn't help. In the end I just checked commented out the line in phrates.py that called for phrates_c. Then another line about normpdf in matplot lib bad something else which I forget now and it works fine on 3.8.
Yes, the phrates_c
module is a C optimized version of phrates
, so it is faster but not necessary for FRETBursts to work.
For the deprecation warning in matplotlib, I have submitted a PR for the normpdf
issue but I haven't been able to figure out why it fails the CI checks so it has not been merged to the master branch.
Could you print a list of your dependencies and versions for reference?
Hello, I still have this issue with cython scritpts not being found when runing FRETbursts even in the dedicated envoronment you suggested and after installing build tools for virtual studio. It just says 'no module named phrates_c' Can you tell me if you are running on a windows machine, how your cython extension scripts/modules are being compiled?
I was able to get it to work now in the manner you suggetsed - there was a path issue becuasue I was opening scripts from Spyder that were in a different folder. creating local copies within the FRETbursts dedicated environment and opening those worked perfectly with the only caveat I've yet found being that the normPPDF from matplotlib needed to be commented out - whihc as Iunderstand it hads been worked around easily.
Thanks