In [1]:
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
from scipy import io
import scipy.io as sio
%matplotlib inline
import pylab
import csv
from Tkinter import Tk
from tkFileDialog import askopenfilename
from tkFileDialog import askdirectory
import nibabel as nb
from scipy import io
#from nifti import NiftiImage
import nibabel as nb
from scipy.interpolate import interp1d
from scipy import ndimage
In [3]:
import pandas as pd
In [2]:
# from http://stackoverflow.com/questions/3579568/choosing-a-file-in-python-with-simple-dialog
Tk().withdraw() # we don't want a full GUI, so keep the root window from appearing
filename = askopenfilename() # show an "Open" dialog box and return the path to the selected file
print(filename)
In [5]:
TS=pd.read_csv(filename)
In [6]:
TS.shape
Out[6]:
In [10]:
TScorr=np.corrcoef(TS.T)
In [11]:
TScorr.shape
Out[11]:
In [13]:
pd.DataFrame(TScorr).to_csv('100106TS80Corr.csv')
In [14]:
import seaborn as sns
In [ ]: