Skip to content

Commit a2ebe5b

Browse files
committed
automated commit by vosslab linux
1 parent 1c5c3d7 commit a2ebe5b

File tree

9 files changed

+6297
-17
lines changed

9 files changed

+6297
-17
lines changed

code/core/acc_new.R

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,20 @@ main <- function() {
2222
# Assign variables
2323
ProjectDir <- opt$project_dir
2424
ProjectDerivDir <- opt$deriv_dir
25+
last_folder <- basename(ProjectDir)
26+
27+
# Determine correct filename
28+
if (last_folder == "act-obs-test") {
29+
SleepLog <- normalizePath(file.path(ProjectDir, "sleep_log_observational.csv"), mustWork = FALSE)
30+
} else if (last_folder == "act-int-test") {
31+
SleepLog <- normalizePath(file.path(ProjectDir, "sleep_log_intervention.csv"), mustWork = FALSE)
32+
} else {
33+
stop("Unrecognized project directory. Exiting.")
34+
}
2535

26-
# Print values to verify
2736
print(paste("Project Directory:", ProjectDir))
2837
print(paste("Derivatives Directory:", ProjectDerivDir))
38+
print(paste("Sleep Log Location:", SleepLog))
2939

3040
# Helper functions
3141
SubjectGGIRDeriv <- function(x) {
@@ -91,7 +101,7 @@ main <- function() {
91101
overwrite = FALSE,
92102
desiredtz = "America/Chicago",
93103
print.filename = TRUE,
94-
idloc = 2,
104+
idloc = 6,
95105

96106
# ==== Part 1: Data loading and basic signal processing ====
97107
do.report = c(2, 4, 5, 6),
@@ -104,11 +114,10 @@ main <- function() {
104114
ignorenonwear = FALSE,
105115

106116
# ==== Part 3: Sleep detection ====
107-
# Uncomment the below if using external sleep log:
108-
# loglocation = "/mnt/nfs/lss/vosslabhpc/Projects/BOOST/InterventionStudy/3-experiment/data/act-int-test/sleep.csv",
109-
# colid = 1,
110-
# coln1 = 2,
111-
# sleepwindowType = "SPT",
117+
loglocation = SleepLog,
118+
colid = 1,
119+
coln1 = 2,
120+
sleepwindowType = "TimeInBed",
112121

113122
# ==== Part 4: Physical activity summaries ====
114123
timewindow = c("WW", "MM", "OO"),

code/core/gg.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ def __init__(self, matched, intdir, obsdir):
1717
self.matched = matched
1818
self.INTDIR = intdir.rstrip('/') + '/'
1919
self.OBSDIR = obsdir.rstrip('/') + '/'
20-
<<<<<<< HEAD
21-
self.DERIVATIVES = "derivatives/GGIR-3.2.6-test/" # Defined within the class
22-
=======
2320
self.DERIVATIVES = "derivatives/GGIR-3.2.6-test-ncp/" # Defined within the class
24-
>>>>>>> 980cb432186a05579a47e1f97a030b68b7e1c741
2521

2622
def run_gg(self):
2723
"""

code/logs/log.txt

Lines changed: 6275 additions & 0 deletions
Large diffs are not rendered by default.

code/plots/group/avg_plot_all.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

code/plots/group/avg_plot_ses-1.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

code/plots/group/avg_plot_ses-2.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

code/plots/group/avg_plot_ses-3.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

code/plots/group/avg_plot_ses-4.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

code/plots/group/avg_plot_ses-5.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)