NSRR staff
Boston, MA
0000-0002-0506-8368
Top Topics
Recent Topics
(Moving things down so they don't get so nested)
Yes, I agree the blank cells are likely some quirk then of opening the XML in Excel. You can open the XML in a text editor and the beginning of the SleepStages element should look like what I posted above.
I pinged the creator of this Luna vignette with your question - https://zzz.bwh.harvard.edu/luna/vignettes/rcox/ (in the vignette the Status column is ignored)
Can you clarify what you mean by "several blank cells" and provide example filenames for me to look at? I opened mesa-sleep-0085-profusion.xml and see this at the beginning of the <SleepStages> section, which corresponds to the first 3 epochs of the recording being scored as wake.
<SleepStages><SleepStage>0</SleepStage><SleepStage>0</SleepStage><SleepStage>0</SleepStage>
Note the reference for the Profusion XML stage coding can be found here: https://github.com/nsrr/edf-editor-translator/wiki/Compumedics-Annotation-Format
Sleep stages: hypnogram is broken into periods of 30 seconds (epoch). 0 is wake stage, 1-4: sleep stage 1-4 and 5 is REM sleep. 9 is Active.
The total recording time (TRT) for PSG is available: https://sleepdata.org/datasets/mesa/variables/stdurm5 (column is present in 'mesa-sleep-dataset' CSV file here: https://sleepdata.org/datasets/mesa/files/datasets)
Yes, the PSG was only one night and it was intended to overlap with the first night of actigraphy.
The XML sleep staging section begins at the PSG recording start time (starttime_psg). Most PSG files will have varying periods of wake before the first epoch of scored sleep (N1/N2/N3/REM). As part of this "overlapping" process you should include all epochs from the XML file (though you may only ultimately concern yourself with staged NREM/REM sleep).
Please submit a data request to obtain access to the STAGES datasets and PSG files. The file are restricted to approved users. You can start a data request here: https://sleepdata.org/data/requests/stages/start
Thanks for using the NSRR!
I suggest reading more in the literature about the device used in MESA, the Actiwatch Spectrum. I did find this link, https://www.labfront.com/article/comparing-motionlogger-with-actiwatch-2, which suggests the Philips Actiwatch-2 (a precursor to the Spectrum) used proportional-integrating mode (PIM).
The Philips devices output the data in a single format, so to my knowledge it's not possible to go back and re-output/re-derive the watch data using other methods (e.g., ZCM).
Thanks for using the site!
I'm guessing it's a problem with the pasting. Try both "CTRL+V" and clicking the Command Prompt icon in the upper left of the window, then going to Edit, and then Paste.
I upgraded to the latest Ruby 3.1.3 to confirm the download process still works, which it did for me.
Another option is to include your token in the nsrr download command itself. Instead of running nsrr download nchsdb try the following:
nsrr download nchsdb --token=<insert token here>
That is, if your token was 12345 the command could look like nsrr download nchsdb --token=12345
Thanks for checking out the site.
The information I emailed to the user in that old forum thread is available in the Actigraphy and polysomnography overlap section on the other documentation link you provided (https://sleepdata.org/datasets/mesa/pages/actigraphy-introduction.md).
Yes, the process could "more or less be a cut and paste". The Profusion XML files contain a SleepStaging section that provides 30-second by 30-second sleep staging output (https://sleepdata.org/datasets/mesa/pages/polysomnography-introduction.md). You could take those staging indicators and paste/insert them into the actigraphy CSV files at the epoch line number indicated in the special overlap dataset. The rpoints files utilized the staging information from the XML files, so you could also merge them with the actigraphy CSVs.
I can't think of any other variables to give sleep/wake to compare with the actigraphy data.
The token is not shown when pasted or typed at the command prompt. Try pressing enter and continuing in the process.
Hi - thanks for letting us know. Please let us know if you're unable to (ultimately) download specific files. We haven't had any other reports of download problems, so the occasional timeout/failure wouldn't concern me.