Skip to content

Commit

Permalink
Fix img display in MRIreduce.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinyao Tian committed Jan 27, 2025
1 parent 5d4a437 commit 93d06d3
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 23 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .Rproj.user/6A9A55E1/pcs/files-pane.pper
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"ascending": true
}
],
"path": "~/Desktop/MRIreduce/R"
"path": "~/Desktop/MRIreduce/man"
}
2 changes: 1 addition & 1 deletion .Rproj.user/6A9A55E1/pcs/source-pane.pper
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"activeTab": 5
"activeTab": 3
}
12 changes: 6 additions & 6 deletions .Rproj.user/6A9A55E1/pcs/windowlayoutstate.pper
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"left": {
"splitterpos": 290,
"splitterpos": 177,
"topwindowstate": "NORMAL",
"panelheight": 663,
"windowheight": 701
"panelheight": 653,
"windowheight": 691
},
"right": {
"splitterpos": 195,
"splitterpos": 529,
"topwindowstate": "NORMAL",
"panelheight": 663,
"windowheight": 701
"panelheight": 653,
"windowheight": 691
}
}
2 changes: 1 addition & 1 deletion .Rproj.user/6A9A55E1/pcs/workbench-pane.pper
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"TabSet1": 0,
"TabSet1": 1,
"TabSet2": 0,
"TabZoom": {}
}
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: MRIreduce
Type: Package
Title: MRIreduce: An R Package for ROI-Based Transformation of Neuroimages into High-Dimensional Data Frames
Version: 0.6.0
Version: 1.0.0
Authors@R: c(
person("Joshua", "Milstein", email = "[email protected]", role = c("aut")),
person("Jinyao", "Tian", email = "[email protected]", role = c("aut", "cre"))
Expand Down Expand Up @@ -38,4 +38,4 @@ Suggests:
knitr,
rmarkdown
VignetteBuilder: knitr
URL: https://github.com/USCbiostats/MRIreduce
URL:https://uscbiostats.github.io/MRIreduce/
7 changes: 7 additions & 0 deletions R/funcs.R
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,13 @@ process_indep_variables <- function(indep_list, tissue_type, tind, roi, main_dir
saveRDS(volume_dat, file = file.path(save_dir, paste0("volume.rds")))
}

# main_dir = '/Users/jinyaotian/Downloads/whims_test'
# roi = 'inferior_frontal_gyrus_left'
# indep_list_path = file.path(main_dir, "indep_list", paste0(roi,'.rds'))
# indep_list <- readRDS(indep_list_path)
# process_indep_variables(indep_list = indep_list, tissue_type = 2, tind = 5,
# roi = roi, main_dir = main_dir)

#Combine independent variables with reduced variables by tissue type by roi
Cmb_indep_with_dep <- function(tissue_type, roi, thresh, main_dir){
if (tissue_type == 3){
Expand Down
22 changes: 11 additions & 11 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
url: https://uscbiostats.github.io/MRIreduce/
template:
bootstrap: 5
bootswatch: cosmo # Using the Flatly theme from Bootswatch

bootswatch: cosmo
navbar:
title: MRIreduce
left:
- text: Home
href: index.html
- text: Get Started
href: articles/MRIreduce.html # Link directly to your vignette
- text: Reference
href: reference/index.html
- text: Home
href: index.html
- text: Get Started
href: articles/MRIreduce.html
- text: Reference
href: reference/index.html
right:
- text: View on source code
href: https://github.com/USCbiostats/MRIreduce
icon: fab fa-github
- text: View on source code
href: https://github.com/USCbiostats/MRIreduce
icon: fab fa-github

3 changes: 2 additions & 1 deletion vignettes/MRIreduce.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,5 @@ map2_eve(mask_img_path = "~/mask_nifti_GM_Volume_pm25_test1_avg_red.nii.gz",
Note: `mask_img_path` should point to `loc_df` data generated by function `map_feature2_loc`.


![Mask Image on the EVE Template with three cuts performed in orthogonal directions]("man/figures/test.png")
![Mask Image on the EVE Template with three cuts performed in orthogonal directions](../man/figures/test.png)

0 comments on commit 93d06d3

Please sign in to comment.