-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c639d19
commit 3cf00ff
Showing
5 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[{"path":"https://rahulvenugopal.github.io/Kumbogram/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Rahul Venugopal. Author, maintainer.","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Venugopal R (2022). Kumbogram: Calculates Sleep Macro Architecture Parameters. https://github.com/rahulvenugopal/Kumbogram, https://rahulvenugopal.github.io/Kumbogram/.","code":"@Manual{, title = {Kumbogram: Calculates Sleep Macro Architecture Parameters}, author = {Rahul Venugopal}, year = {2022}, note = {https://github.com/rahulvenugopal/Kumbogram, https://rahulvenugopal.github.io/Kumbogram/}, }"},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"kumbogram-","dir":"","previous_headings":"","what":"Calculates Sleep Macro Architecture Parameters","title":"Calculates Sleep Macro Architecture Parameters","text":"goal Kumbogram spit sleep macro architecture parameters hypnogram file","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Calculates Sleep Macro Architecture Parameters","text":"can install development version Kumbogram GitHub :","code":"# install.packages(\"devtools\") devtools::install_github(\"rahulvenugopal/Kumbogram\")"},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"Calculates Sleep Macro Architecture Parameters","text":"basic example shows use function:","code":"library(Kumbogram) library(reader) filename = 'data_full_6hrs_100Hz_hypno_30s.txt' hypnogram_file <- n.readLines(paste(filename, sep = \"\\n\"), header = FALSE, n=720) sleep_data <- fetch_sleep_parametres(hypnogram_file = hypnogram_file, epoch_duration = 30)"},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"kumbogram-package-has-many-useful-functions-to","dir":"","previous_headings":"Example","what":"Kumbogram package has many useful functions to:","title":"Calculates Sleep Macro Architecture Parameters","text":"Gather sleep architecture related parameters scored hypnogram file fetch_sleep_params functions extracts 32 sleep variables","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"sleep-stage-durations-percentages-and-efficiency","dir":"","previous_headings":"Example","what":"Sleep stage durations, percentages and efficiency","title":"Calculates Sleep Macro Architecture Parameters","text":"Wake_duration N1_duration N2_duration N3_duration R_duration Wake_percentage N1_percentage N2_percentage 9 N3_percentage R_percentage, sleep_efficiency","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"onsets-and-total-sleep-time","dir":"","previous_headings":"Example","what":"Onsets and total sleep time","title":"Calculates Sleep Macro Architecture Parameters","text":"Wake_onset N1_onset N2_onset N3_onset R_onset TST","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"longest-streak-of-each-sleep-stage-by-epochs-count","dir":"","previous_headings":"Example","what":"Longest streak of each sleep stage by epochs count","title":"Calculates Sleep Macro Architecture Parameters","text":"W_longest_streak N1_longest_streak N2_longest_streak N3_longest_streak R_longest_streak","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"longest-streak-of-each-sleep-stage-by-duration","dir":"","previous_headings":"Example","what":"Longest streak of each sleep stage by duration","title":"Calculates Sleep Macro Architecture Parameters","text":"W_mean_length_of_streak N1_mean_length_of_streak N2_mean_length_of_streak N3_mean_length_of_streak R_mean_length_of_streak W_median_length_of_streak N1_median_length_of_streak N2_median_length_of_streak N3_median_length_of_streak R_median_length_of_streak","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 Kumbogram authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/reference/fetch_sleep_params.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate sleep micro architecture parameters — fetch_sleep_params","title":"Calculate sleep micro architecture parameters — fetch_sleep_params","text":"Calculate sleep micro architecture parameters","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/reference/fetch_sleep_params.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate sleep micro architecture parameters — fetch_sleep_params","text":"","code":"fetch_sleep_params(hypnogram_file, epoch_duration)"},{"path":"https://rahulvenugopal.github.io/Kumbogram/reference/fetch_sleep_params.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate sleep micro architecture parameters — fetch_sleep_params","text":"hypnogram_file character array sleep stages epoch_duration Duration sleep epoch seconds","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/reference/fetch_sleep_params.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate sleep micro architecture parameters — fetch_sleep_params","text":"data frame 32 columns","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/reference/fetch_sleep_params.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate sleep micro architecture parameters — fetch_sleep_params","text":"","code":"sleep_data <- fetch_sleep_params(hypnogram_file = c('W' ,'W','N1','N2','N2','N3','R'), epoch_duration = 30)"}] | ||
[{"path":"https://rahulvenugopal.github.io/Kumbogram/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Rahul Venugopal. Author, maintainer.","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Venugopal R (2022). Kumbogram: Calculates Sleep Macro Architecture Parameters. https://github.com/rahulvenugopal/Kumbogram, https://rahulvenugopal.github.io/Kumbogram/.","code":"@Manual{, title = {Kumbogram: Calculates Sleep Macro Architecture Parameters}, author = {Rahul Venugopal}, year = {2022}, note = {https://github.com/rahulvenugopal/Kumbogram, https://rahulvenugopal.github.io/Kumbogram/}, }"},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"kumbogram-","dir":"","previous_headings":"","what":"Calculates Sleep Macro Architecture Parameters","title":"Calculates Sleep Macro Architecture Parameters","text":"goal Kumbogram spit sleep macro architecture parameters hypnogram file","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Calculates Sleep Macro Architecture Parameters","text":"can install development version Kumbogram GitHub :","code":"# install.packages(\"devtools\") devtools::install_github(\"rahulvenugopal/Kumbogram\")"},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"Calculates Sleep Macro Architecture Parameters","text":"basic example shows use function:","code":"library(Kumbogram) library(reader) filename = 'data_full_6hrs_100Hz_hypno_30s.txt' hypnogram_file <- n.readLines(paste(filename, sep = \"\\n\"), header = FALSE, n=720) sleep_data <- fetch_sleep_parametres(hypnogram_file = hypnogram_file, epoch_duration = 30)"},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"kumbogram-package-has-many-useful-functions-to","dir":"","previous_headings":"Example","what":"Kumbogram package has many useful functions to:","title":"Calculates Sleep Macro Architecture Parameters","text":"Gather sleep architecture related parameters scored hypnogram file fetch_sleep_params functions extracts 32 sleep variables","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"sleep-stage-durations-percentages-and-efficiency","dir":"","previous_headings":"Example","what":"Sleep stage durations, percentages and efficiency","title":"Calculates Sleep Macro Architecture Parameters","text":"Wake_duration N1_duration N2_duration N3_duration R_duration Wake_percentage N1_percentage N2_percentage N3_percentage R_percentage, sleep_efficiency","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"onsets-and-total-sleep-time","dir":"","previous_headings":"Example","what":"Onsets and total sleep time","title":"Calculates Sleep Macro Architecture Parameters","text":"Wake_onset N1_onset N2_onset N3_onset R_onset TST","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"longest-streak-of-each-sleep-stage-by-epochs-count","dir":"","previous_headings":"Example","what":"Longest streak of each sleep stage by epochs count","title":"Calculates Sleep Macro Architecture Parameters","text":"W_longest_streak N1_longest_streak N2_longest_streak N3_longest_streak R_longest_streak","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/index.html","id":"longest-streak-of-each-sleep-stage-by-duration","dir":"","previous_headings":"Example","what":"Longest streak of each sleep stage by duration","title":"Calculates Sleep Macro Architecture Parameters","text":"W_mean_length_of_streak N1_mean_length_of_streak N2_mean_length_of_streak N3_mean_length_of_streak R_mean_length_of_streak W_median_length_of_streak N1_median_length_of_streak N2_median_length_of_streak N3_median_length_of_streak R_median_length_of_streak","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 Kumbogram authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/reference/fetch_sleep_params.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate sleep micro architecture parameters — fetch_sleep_params","title":"Calculate sleep micro architecture parameters — fetch_sleep_params","text":"Calculate sleep micro architecture parameters","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/reference/fetch_sleep_params.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate sleep micro architecture parameters — fetch_sleep_params","text":"","code":"fetch_sleep_params(hypnogram_file, epoch_duration)"},{"path":"https://rahulvenugopal.github.io/Kumbogram/reference/fetch_sleep_params.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate sleep micro architecture parameters — fetch_sleep_params","text":"hypnogram_file character array sleep stages epoch_duration Duration sleep epoch seconds","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/reference/fetch_sleep_params.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate sleep micro architecture parameters — fetch_sleep_params","text":"data frame 32 columns","code":""},{"path":"https://rahulvenugopal.github.io/Kumbogram/reference/fetch_sleep_params.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate sleep micro architecture parameters — fetch_sleep_params","text":"","code":"sleep_data <- fetch_sleep_params(hypnogram_file = c('W' ,'W','N1','N2','N2','N3','R'), epoch_duration = 30)"}] |