Skip to content

Commit

Permalink
code updating...
Browse files Browse the repository at this point in the history
  • Loading branch information
dagush committed May 30, 2023
1 parent 90eda2e commit 371b44c
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion fMRI_Obs/BOLDFilters.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import warnings
import numpy as np
from scipy.signal import butter, detrend, filtfilt
from WholeBrain.Utils import demean
import demean
from scipy import signal
# from numba import jit

Expand Down
2 changes: 1 addition & 1 deletion fMRI_Obs/FC.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import warnings
import numpy as np
# from numba import jit
from Observables import BOLDFilters
import BOLDFilters

print("Going to use Functional Connectivity (FC)...")

Expand Down
4 changes: 2 additions & 2 deletions fMRI_Obs/GBC.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#--------------------------------------------------------------------------
import numpy as np
# from numba import jit
from Observables import BOLDFilters
import WholeBrain.Observables.FC as FC
import BOLDFilters
import FC

print("Going to use Global Brain Connectivity (GBC)...")

Expand Down
2 changes: 1 addition & 1 deletion fMRI_Obs/Integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Refactored by Gustavo Patow
#
# --------------------------------------------------------------------------------------
from Observables import BOLDFilters
import BOLDFilters

print("Going to use Integration (from FC)...")

Expand Down
4 changes: 2 additions & 2 deletions fMRI_Obs/Metastability.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import numpy as np
from scipy import signal, stats
# from scipy import stats
from Observables import BOLDFilters
from WholeBrain.Utils import demean
import BOLDFilters
import demean

print("Going to use Metastability (Kuramoto order parm)...")

Expand Down
2 changes: 1 addition & 1 deletion fMRI_Obs/OLD_Integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import numpy as np
from scipy import signal, stats
# from scipy import stats
from WholeBrain.Utils import demean
import demean

import WholeBrain.Observables.PhaseInteractionMatrix as PhaseInteractionMatrix

Expand Down
4 changes: 2 additions & 2 deletions fMRI_Obs/PhaseInteractionMatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import numpy as np
from scipy import signal, stats
# from scipy import stats
from Observables import BOLDFilters
from WholeBrain.Utils import demean
import BOLDFilters
import demean

print("Going to use Phase-Interaction Matrix...")

Expand Down
4 changes: 2 additions & 2 deletions fMRI_Obs/Segregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import warnings
import numpy as np
import copy as cp
from WholeBrain.Utils.iGraphTools import Array2iGraph
from iGraphTools import Array2iGraph

import leidenalg as leiden

import WholeBrain.Observables.PhaseInteractionMatrix as PhaseInteractionMatrix
import PhaseInteractionMatrix

print("Going to use Segregation...")

Expand Down
2 changes: 1 addition & 1 deletion fMRI_Obs/filteredPowerSpectralDensity.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import numpy as np
from scipy.signal import butter, detrend, filtfilt
from scipy.stats import zscore
import Observables.BOLDFilters as BOLDFilters
import BOLDFilters


def conv(u,v): # python equivalent to matlab conv 'same' method
Expand Down
4 changes: 2 additions & 2 deletions fMRI_Obs/intrinsicIgnition.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
# from scipy.optimize import curve_fit
from numba import jit

from Observables import BOLDFilters
from WholeBrain.Utils import demean
import BOLDFilters
import demean
# import WholeBrain.Observables.Integration as Integration

# ==================================
Expand Down
2 changes: 1 addition & 1 deletion fMRI_Obs/multi_Measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# --------------------------------------------------------------------------------------
import numpy as np
from scipy import signal, stats
from WholeBrain.Utils import demean
import demean

print("Going to use multi-measurement metrics...")

Expand Down
3 changes: 1 addition & 2 deletions fMRI_Obs/stimulatedIgnition.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import scipy.io as sio
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
from WholeBrain.Utils.decorators import loadOrCompute

print("Going to use Stimulated Ignition...")

Expand Down Expand Up @@ -193,7 +192,7 @@ def setupStimulation(seed, perturb):
stim.amp = perturb


@loadOrCompute
# @loadOrCompute
def simulateTrials(numTrials, N, PERTURB, seed):
neuro_act = np.zeros((numTrials, Tmaxneuronal+1, N))
neuro_actf = np.zeros((int(Tmaxneuronal/20), N))
Expand Down
2 changes: 1 addition & 1 deletion fMRI_Obs/swFCD.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import numpy as np
# from numba import jit
from scipy import stats
from Observables import BOLDFilters
import BOLDFilters

print("Going to use Sliding Windows Functional Connectivity Dynamics (swFCD)...")

Expand Down

0 comments on commit 371b44c

Please sign in to comment.