Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import data from GENEActiv device #27

Open
andrectonon opened this issue Jul 10, 2024 · 2 comments
Open

Import data from GENEActiv device #27

andrectonon opened this issue Jul 10, 2024 · 2 comments
Assignees

Comments

@andrectonon
Copy link

Hi everyone,

Great job putting this package together. I am very excited to try it :)

My name is André Comiran Tonon, I am currently working with Dr Benicio Frey at McMaster University and leading the CAN-BIND actigraphy analyses. In all CAN-BIND studies, across multiple sites in Canada, we use the GENEActiv device. This package is a great opportunity for us to conduct multi-site light exposure analyses in our multi-site clinical trials.

GENEActiv relies on GGIR, an R package that pretty much handles data filtering and analysis in a lazy way. However, I managed to export the .csv files that contain 15min epoch data for light exposure. I could use that with LightLogR, I am guessing.

But it would definitely be easier and more practical to import the raw bin files from GENEActiv for such analyses. I would send attached an example of a raw bin file but the format is not supported. I could send it via email. Mine is andrectonon@gmail.com.

I'm happy to discuss this matter in more detail. Thank you so much in advance!

André

@JZauner
Copy link
Collaborator

JZauner commented Jul 24, 2024

Hi André,

to mirror our conversation via email, here are the main takeaways so far:

  • Using the pre-processed data you provided with LightLogR functionality is quite straightforward. I have attached a small script that uses the RData file, prepares it for LightLogR, and does some small stuff like visualization and metric calculations with LightLogR functions. With minimal effort, it can be adjusted for other pre-processed datasets.
    GENEActiv_Script.R.zip

  • Follow-up thought: If the folder structure is always the same, it would be quite simple to write an import function, providing the path to the base folder, and all the rest is done by the function, making it "LightLogR-ready. “

  • Working with the original .bin file is not that easy and I am uncertain at this point if it is reasonably feasible to depend on manufacturers packages to read in the data, but am open to the discussion and suggestions.

Let us discuss this further and see how to tackle this best.
Johannes

@andrectonon
Copy link
Author

andrectonon commented Jul 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants