-
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
Showing
3,137 changed files
with
1,035,120 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Binary file not shown.
Empty file.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# install packages if missing | ||
# install.packages("lmerTest") | ||
|
||
# other related packages if needed | ||
# install.packages("readxl") | ||
# install.packages("lme4") | ||
# install.packages("nlme") | ||
# library(readxl) | ||
# library(nlme) | ||
|
||
# load libraries | ||
library(lmerTest) | ||
library(bestNormalize) | ||
|
||
# Read Data | ||
Brain.df <- read.csv("C:/Users/ANUP/Desktop/DMN_Final_Submission/LME_Analysis/CorrIncorr_PTE_DMN_HIPP_Encode_Recall.csv", fileEncoding="UTF-8-BOM") | ||
x = as.numeric(Brain.df$PTE) | ||
xx = bestNormalize(x) | ||
xxt = xx[["x.t"]] | ||
Brain.df$PTE = xxt | ||
# Run Model with subjects as random effects | ||
ieegmodel = lmer(PTE ~ Condition + (1|Subject), data=Brain.df) | ||
|
||
# Stats | ||
anova(ieegmodel) | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
%Anup Das | ||
%26 September, 2018 | ||
%This program finds the channel indices in the pairs.json files | ||
|
||
close all; | ||
clear all; | ||
clc; | ||
|
||
load('FileListBipolar.mat'); | ||
Njson = size(FileList,1); | ||
ChID = cell(Njson,1); | ||
|
||
for i=1:Njson | ||
|
||
d = dir(FileList(i).folder); | ||
B = jsondecode(fileread(strcat(FileList(i).folder,'\',d(4).name))); | ||
dynamicPath = {char(fieldnames(B)) 'pairs'}; | ||
D = getfield(B, dynamicPath{:}); | ||
Nelec = size(fieldnames(D),1); | ||
E = fieldnames(D); | ||
ChIDTemp = zeros(Nelec,2); | ||
|
||
for j=1:Nelec | ||
|
||
dynamicPath1 = {char(E{j}) 'channel_1'}; | ||
dynamicPath2 = {char(E{j}) 'channel_2'}; | ||
ChIDTemp(j,1) = getfield(D, dynamicPath1{:}); | ||
ChIDTemp(j,2) = getfield(D, dynamicPath2{:}); | ||
|
||
end | ||
|
||
ChID{i,1} = ChIDTemp; | ||
|
||
end | ||
|
||
save('ChIDBipolar.mat','ChID'); | ||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
%Anup Das | ||
%13 June, 2019 | ||
%This program finds the channel indices in the pairs.json files excluding the artifactual channels | ||
|
||
close all; | ||
clear all; | ||
clc; | ||
|
||
Str = '/oak/stanford/groups/menon/projects/a1das/2018_ECoG_DMN_Project/scripts/Release_20171012_scripts/scripts_rest/Release_Metadata_20171010/electrode_categories/'; | ||
|
||
load('FileListBipolarSherlock.mat'); | ||
Njson = size(FileList,1); | ||
ChID = cell(Njson,1); | ||
|
||
for i=1:Njson | ||
|
||
d = dir(FileList(i).folder); | ||
Folder = FileList(i).folder; | ||
|
||
elec_categ_data = upper(importdata(strcat(Str,Folder(114:119),'_electrode_categories.txt'))); | ||
elec_categ_data = strrep(elec_categ_data,' ',''); | ||
elec_categ_data = strrep(elec_categ_data,'-','_'); | ||
|
||
B = jsondecode(fileread(strcat(FileList(i).folder,'/',d(4).name))); | ||
dynamicPath = {char(fieldnames(B)) 'pairs'}; | ||
D = getfield(B, dynamicPath{:}); | ||
Nelec = size(fieldnames(D),1); | ||
E = fieldnames(D); | ||
ChIDTemp = zeros(Nelec,2); | ||
|
||
for j=1:Nelec | ||
|
||
dynamicPath1 = {char(E{j}) 'channel_1'}; | ||
dynamicPath2 = {char(E{j}) 'channel_2'}; | ||
|
||
dynamicPath3 = {char(E{j}) 'code'}; | ||
newStr = upper(split(getfield(D, dynamicPath3{:}),'-')); | ||
|
||
if (isempty(find(ismember(elec_categ_data,newStr{1,1})))==1 && isempty(find(ismember(elec_categ_data,newStr{2,1})))==1) | ||
|
||
ChIDTemp(j,1) = getfield(D, dynamicPath1{:}); | ||
ChIDTemp(j,2) = getfield(D, dynamicPath2{:}); | ||
|
||
else | ||
|
||
ChIDTemp(j,1) = 0; | ||
ChIDTemp(j,2) = 0; | ||
|
||
end | ||
|
||
end | ||
|
||
ChID{i,1} = ChIDTemp; | ||
|
||
end | ||
|
||
save('ChIDBipolarArtifactRemove.mat','ChID'); | ||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+918 Bytes
...las/Inter_7/DistanceVals_interDMN_1_Yeo2011_Brainnetome_HIPP_Corrected_ArtifactRemove.mat
Binary file not shown.
Binary file added
BIN
+6.66 KB
...las/Inter_7/DistanceVals_interDMN_2_Yeo2011_Brainnetome_HIPP_Corrected_ArtifactRemove.mat
Binary file not shown.
Binary file added
BIN
+4.45 KB
...las/Inter_7/DistanceVals_interDMN_3_Yeo2011_Brainnetome_HIPP_Corrected_ArtifactRemove.mat
Binary file not shown.
Binary file added
BIN
+12.8 KB
...las/Inter_7/DistanceVals_interDMN_4_Yeo2011_Brainnetome_HIPP_Corrected_ArtifactRemove.mat
Binary file not shown.
Binary file added
BIN
+9.2 KB
...las/Inter_7/DistanceVals_interDMN_5_Yeo2011_Brainnetome_HIPP_Corrected_ArtifactRemove.mat
Binary file not shown.
Binary file added
BIN
+9.55 KB
...las/Inter_7/DistanceVals_interDMN_6_Yeo2011_Brainnetome_HIPP_Corrected_ArtifactRemove.mat
Binary file not shown.
Binary file added
BIN
+5.55 KB
...atlas/Intra_7/DistanceVals_intraDMN_Yeo2011_Brainnetome_HIPP_Corrected_ArtifactRemove.mat
Binary file not shown.
Binary file added
BIN
+6.76 KB
...ance_Results/Yeo_atlas/Intra_7/DistanceVals_intraDMN_Yeo2011_Corrected_ArtifactRemove.mat
Binary file not shown.
Oops, something went wrong.