Skip to content

Commit 6bb3c54

Browse files
Update plot_helpers.R
1 parent 194dae1 commit 6bb3c54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/plot_helpers.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ plot_activation_panel <- function(pp, plot_data_list, threshold_category = NA) {
343343

344344

345345
# get template for later data->nifti
346-
template <- readNIfTI(system.file("data/plotting/template_nifti.nii.gz", package = "BrainEffeX.utils")) # assumes MNI - TODO: get actual ref
346+
template <- readNIfTI(system.file("inst/extdata/plotting/template_nifti.nii.gz", package = "BrainEffeX.utils")) # assumes MNI - TODO: get actual ref
347347

348348
# make plot object
349349
# p <- ggplot()
@@ -363,7 +363,7 @@ plot_activation_panel <- function(pp, plot_data_list, threshold_category = NA) {
363363
}
364364

365365
if (length(data) == 10) { # need atlas for network-level - currently Shen only - TODO: un-hard-code and pass the actual atlas
366-
atlas <- readNIfTI(system.file("data/parcellations/shen_2mm_268_parcellation__in_subnetworks.nii.gz", package = "BrainEffeX.utils"))
366+
atlas <- readNIfTI(system.file("inst/extdata/parcellations/shen_2mm_268_parcellation__in_subnetworks.nii.gz", package = "BrainEffeX.utils"))
367367
for (j in 1:10) {
368368
atlas@.Data[atlas@.Data == j] <- data[j]
369369
}
@@ -579,10 +579,10 @@ plot_connectivity_panel <- function(pp, plot_data_list, threshold_category = NA)
579579
# mapping_path <- "inst/data/parcellations/map268_subnetwork.csv"
580580
# pooled <- TRUE
581581
# } else { # unpooled
582-
mapping_path <- system.file("data/parcellations/map268_subnetwork.csv", package = "BrainEffeX.utils")
582+
mapping_path <- system.file("inst/extdata/parcellations/map268_subnetwork.csv", package = "BrainEffeX.utils")
583583
# }
584584
} else if (plot_data_list[[i]]$extra_study_details$ref[[1]] == "ukb_55") {
585-
mapping_path <- system.file("data/parcellations/map55_ukb.csv", package = "BrainEffeX.utils")
585+
mapping_path <- system.file("inst/extdata/parcellations/map55_ukb.csv", package = "BrainEffeX.utils")
586586
} else {
587587
mapping_path <- NA
588588
}

0 commit comments

Comments
 (0)