Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CogBrainHealthLab committed Nov 9, 2024
1 parent 2ebf24c commit cc4dc4a
Show file tree
Hide file tree
Showing 34 changed files with 3,936 additions and 18 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Imports:
parallel,
png,
ggplotify,
plotly,
psych,
stringr,
reshape2

17 changes: 17 additions & 0 deletions FCtools.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export(reorder_subcortical)
export(vectorizeFC)
export(vizChord)
export(vizConnectogram)
export(vizGlassbrain)
export(vizHeatmap)
importFrom(caret,createFolds)
importFrom(ciftiTools,ciftiTools.setOption)
Expand Down Expand Up @@ -73,6 +74,9 @@ importFrom(igraph,get.edgelist)
importFrom(igraph,graph_from_adjacency_matrix)
importFrom(parallel,makeCluster)
importFrom(parallel,stopCluster)
importFrom(plotly,add_trace)
importFrom(plotly,layout)
importFrom(plotly,plot_ly)
importFrom(png,readPNG)
importFrom(psych,fisherz)
importFrom(reshape2,melt)
Expand Down
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,31 @@ different atlas parcellation schemes, as a result, the lengths of the
input vectors (N x N FC/SC matrix stringed out into a single vector) are
contingent upon the atlas parcellation schemes used.

### **2. Connectogram**

**a. Install packages**
### **1. Glassbrain (New!)**
**A. Install packages**

If you have not previously installed this package:

``` r
install.packages("devtool")
devtools::install_github("CogBrainHealthLab/FCtools")
```
**B. Plotting the glassbrain**

``` r
library(FCtools)

mask=sample(c(1,0), 7021, replace = TRUE, prob = c(0.001, 0.999))
data=runif(7021,min = -1,max=1)*mask

vizGlassbrain(data,orientation_labels = T)
```
![](man/figures/plotly.png)


### **2. Connectogram**


**A. Plotting the connectogram**

Expand Down Expand Up @@ -221,7 +232,7 @@ vizChord(data=rbind(network1,network2,network3,network4),
```
![](man/figures/4xFCchord_119.png)

### **3. Heatmap**
### **4. Heatmap**

The connectogram and chord diagram cannot be use to visualize edge-level statistics for all edges in the connectome. Instead a heatmap should be used

Expand All @@ -240,3 +251,4 @@ sub4=get("demomat")[4,]
vizHeatmap(data=rbind(sub1,sub2,sub3,sub4),title=c("sub1","sub2","sub3","sub4"), filename = "4xheatmap219.png", ncol=2, nrow=2)
```
![](man/figures/4xheatmap219.png)

24 changes: 18 additions & 6 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ pandoc: 3.1.11
pkgdown: 2.0.9
pkgdown_sha: ~
articles: {}
last_built: 2024-09-06T18:24Z
last_built: 2024-11-09T07:32Z

Binary file modified docs/reference/FC_chord119.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion docs/reference/extract_headmotion.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/reference/figures/plotly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/reference/intersubject_similarity-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 97 additions & 0 deletions docs/reference/labels_dat.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/libs/crosstalk-1.2.1/css/crosstalk.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cc4dc4a

Please sign in to comment.