The only thing I have done with the cwa files is to extract the start-dates from the headers . To do this for a single file, I browsed the bulk folder to find the application-specific EID-based filename for a particular participant that has cwa accelerometry data, such as mmnnnnn_90001_4_0.cwa , where mmnnnnn is the EID. Then I started a JupyterLab, waited for it to launch, opened an R terminal,
Hello Rachael W ? I haven't worked on this recently. I will have to check back. I believe I had some issues with the installation of the packages but I will have to check back. I will see and get back to them if there is anything useful.
Comments
6 comments
If you want to use the raw cwa files, you might find the R package GGIRread helpful,
see https://cran.r-project.org/web/packages/GGIRread/index.html .
The only thing I have done with the cwa files is to extract the start-dates from the headers . To do this for a single file, I browsed the bulk folder to find the application-specific EID-based filename for a particular participant that has cwa accelerometry data, such as mmnnnnn_90001_4_0.cwa , where mmnnnnn is the EID. Then I started a JupyterLab, waited for it to launch, opened an R terminal,
install.packages(?GGIRread?)
library(GGIRread)
cwa_mmnnnnn <- readAxivity(?/mnt/project/Bulk/Activity/Raw/mm/mmnnnnn_90001_4_0.cwa?)
print(cwa_mmnnnnn$header$start)
Category 1008 on Showcase links to four Resources which might be useful,
particularly Resource 169649 at https://biobank.ndph.ox.ac.uk/showcase/refer.cgi?id=169649 .
Thank you so much for the help. I will look into it and get back here if any more questions.
@Akhil ? you may also find this tutorial useful.
https://www.youtube.com/watch?v=kBSHDjYJYG0
Rosemary also shared her notebook in github mentioned in video.
Particularly see timepoints 18:30, 22:15, 22:40, 23:30, and
Hi @Akhil ? ,
if you got the accelerometer package working, would you be able to share any insights on this new post https://community.dnanexus.com/s/question/0D582000004nS6uCAE/polite-inquiry-about-how-to-efficiently-analyze-the-huge-raw-data-of-accelerometry-on-rap .
(It took me ages to get the JRE working, and I suspect there are better ways to approach the situation)
Rachael.
Hello Rachael W ? I haven't worked on this recently. I will have to check back. I believe I had some issues with the installation of the packages but I will have to check back. I will see and get back to them if there is anything useful.
Please sign in to leave a comment.