Beispiel #1
0
def plotandsavescatterplot_poolrois(fname, keylist, fdir='.', ylim=10):
    """Plots bar graph from data in 'peakf_pooled.txt' and saves it in the summary directory. Run from a 
    data/ or summary/ folder."""
    
    dictdata = genplotlib.gendict(fname)
    dictmeans = genplotlib.genlist(dictdata)
    #~ keylist = genplotlib.genkeylist(dictdata)
    genplotlib.plotdata(dictdata, dictmeans, keylist, 's', ylabel='Hz', ftitle='Mean frequency', 
    ylim=ylim)
    plt.savefig('dftf_freq_scatter_pooled')
Beispiel #2
0
def plotandsavescatterplot(roiname, keylist, fdir='.', ylim=10):
    """Plots scatter plot from data in 'peakf.txt' and saves it in the summary directory. Run from a 
    data/ or summary/ folder."""
    
    dictdata = genplotlib.gendict(genpeakffname_roi(roiname, fdir))
    dictmeans = genplotlib.genlist(dictdata)
    #~ keylist = genplotlib.genkeylist(dictdata)
    genplotlib.plotdata(dictdata, dictmeans, keylist, 's', ylabel='Hz', ftitle='Mean pumping ' + 
    'frequency '+roiname, ylim=ylim)
    savegraph('dftf_freq_scatter_'+roiname, roiname)
Beispiel #3
0
def plotandsavepooledscatterplot(p_peakf_file, roi):
    """Plots scatter plot from data in 'peakf.txt' and saves it in the summary directory. Run from a 
    data/ or summary/ folder."""
    
    dictdata = genplotlib.gendict(p_peakf_file)
    dictmeans = genplotlib.genlist(dictdata)
    keylist = genplotlib.genkeylist(dictdata)
    genplotlib.plotdata(dictdata, dictmeans, keylist, 's', ylabel='Hz', ftitle='Mean pumping ' + 
    'frequency '+roi)
    plt.savefig('pooled_freq_scatter_'+roi)
Beispiel #4
0
def bg_key(p_peakf_file, keyfile, roi):
    dictdata = genplotlib.gendict(p_peakf_file)
    dictmeans = genplotlib.genlist(dictdata)
    keylist = cmn.load_keys(keyfile)
    
    dictdata2 = {}
    for k in keylist:
        dictdata2[k] = dictdata[k]
    
    genplotlib.plotdata(dictdata2, dictmeans, keylist, 'b', ylabel='Hz', 
            ftitle='Mean pumping frequency', xlabelsize = 'medium')
    plt.savefig('pooled_dftf_freq_bar_'+roi)
Beispiel #5
0
def plotandsavepooledscatterplot(p_peakf_file, roi):
    """Plots scatter plot from data in 'peakf.txt' and saves it in the summary directory. Run from a 
    data/ or summary/ folder."""

    dictdata = genplotlib.gendict(p_peakf_file)
    dictmeans = genplotlib.genlist(dictdata)
    keylist = genplotlib.genkeylist(dictdata)
    genplotlib.plotdata(dictdata,
                        dictmeans,
                        keylist,
                        's',
                        ylabel='Hz',
                        ftitle='Mean pumping ' + 'frequency ' + roi)
    plt.savefig('pooled_freq_scatter_' + roi)
Beispiel #6
0
def bg_key(p_peakf_file, keyfile, roi):
    dictdata = genplotlib.gendict(p_peakf_file)
    dictmeans = genplotlib.genlist(dictdata)
    keylist = cmn.load_keys(keyfile)

    dictdata2 = {}
    for k in keylist:
        dictdata2[k] = dictdata[k]

    genplotlib.plotdata(dictdata2,
                        dictmeans,
                        keylist,
                        'b',
                        ylabel='Hz',
                        ftitle='Mean pumping frequency',
                        xlabelsize='medium')
    plt.savefig('pooled_dftf_freq_bar_' + roi)
Beispiel #7
0
import scipy.stats as stats
import mn.plot.genplotlib as gpl


x = gpl.gendict('peakf_roi1_corr.txt')
print(x)

tstat, prob = stats.ttest_ind(x['721-GAL4'], x['721 x TNT'])
print(prob)
probstr = str(prob)

with open('ttest_results.txt', 'w') as f:
    f.write('prob\t' + probstr)
Beispiel #8
0
import scipy.stats as stats
import mn.plot.genplotlib as gpl


x = gpl.gendict('peakf_roi1.txt')
print(x)

tstat, prob = stats.ttest_ind(x['762-GAL4'], x['762 x TNT'])
print(prob)
probstr = str(prob)

with open('ttest_results.txt', 'w') as f:
    f.write('prob\t' + probstr)
Beispiel #9
0
import scipy.stats as stats
import mn.plot.genplotlib as gpl

x = gpl.gendict('peakf_roi1_corr.txt')
print(x)

tstat, prob = stats.ttest_ind(x['721-GAL4'], x['721 x TNT'])
print(prob)
probstr = str(prob)

with open('ttest_results.txt', 'w') as f:
    f.write('prob\t' + probstr)