# %% Libraries ----------------------
import gl
import os

# %% General----------------------
#gl.resetdefaults()
gl.backcolor(255, 255, 255)

# %% background image ----------------------
gl.loadimage('mni152')

# %% overlay ----------------------
FILESPATH='D:\\GD_UNICAMP\\IC_NeuroFisica\\Projetos\\fMRI_TLE_2020\\Seed_based_analysis'
os.chdir(FILESPATH)

networks_names=['DMN','SMOTOR','VISUAL','AUDIT','ECN_L','ECN_R']
netfile_sufx= ['_Group1X','_Group2L','_Group3R','_Group4N']

for net in networks_names:
    savefolder=FILESPATH + '\\' + net + '\\'
    for i in netfile_sufx:
    
        FILENAME=net+i
        SEEDFILENAME=net+"_seed"
    
        gl.overlaycloseall()
        gl.overlayload(FILENAME)
        gl.overlayload(SEEDFILENAME)
        gl.colorname (2,"3blue")
        
        #gl.opacity(1,50)
Esempio n. 2
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 26 14:25:09 2021

@author: Bryce

--- deSCRIPTION ---
"""

# Testing - run this from 00_Multiple_files directory

import gl
gl.resetdefaults()
gl.backcolor(0, 0, 0)
gl.colorbarsize(0.02)
gl.cameradistance(0.6)

# load main image
gl.loadimage('./outputs/LCT1/LCT1_brain.nii.gz')
gl.shadername('Standard')
gl.shaderadjust('surfaceColor', 1)
gl.shaderadjust('brighten', 5)

# load overlay 1
gl.overlayload(
    '/Users/Bryce/Desktop/Postdoc_Scripts/GitHub/04_mosaics_data/00_Multiple_files/outputs/LCT1/LCT1_heatmap.nii.gz'
)
gl.overlayloadsmooth(1)
gl.minmax(1, 1, 50)
gl.colorname(1, "4hot")