-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGMFCWMDB_Pre_made_Int_and_Pos.m
67 lines (49 loc) · 2.39 KB
/
GMFCWMDB_Pre_made_Int_and_Pos.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
clear; clc;
close all %closes all open figures
folder = '';
posfilename = '';
intfilename = '';
name = 'name';
name = [folder name];
posfilename = [folder posfilename '.xlsx'] ;
intfilename = [folder intfilename '.xlsx'] ;
%%Percent values
percent = 0.3;
%percent = 0.4;
%NBPK skp value - base value is 4 -
%skp is the number of frames to look at the cross correlations (i.e. how many frames to plot after an "event"
skp = 4;
% Default useing 85 pixels calculate distance between cells if dis< 85 pixel then flag as neighbor and set to 1
NxtCeldis=85; %85 value works best for cell culture - miight need to altered for wing cells and basal cells
%NxtCeldis=85*2; %pixel; value for wings cells - maybe doubled what the
%default is from cell culture
%NxtCeldis=85*.5; pixel value for basal cells - maybe halfed or
%quartered what is default for cell culture
%%
%Calling PKcorr function
[position,txt,raw] = xlsread(posfilename);
[intensity,txt,raw] = xlsread(intfilename);
Pkcorr(intensity,position,percent,skp,NxtCeldis,name);
%heatmap, detected events, and returned values and NBPKdata excel file
%NBPKdata produces the individual cell total peak (totpk), nearby peaks
%(NBPK) and the probability a signal was nearby signal (prbNB)
%Pkcorr2(intensity,position,percent,skp);
%plot event triggered average traces of neighbors and
%plot event triggered average traces of that cell and
%comparison between two graph
Pkcorr3(intensity,position,percent,skp);
%intensity graphs, peak graphs, detected events over time
%Pkcorr4(intensity,position,skp); %intensity graphs
%%
%addation of the hierarchiacal clustering code developed by K. Segars
%Outputs a dendrogram, a histogram, and a Cophenetic correlation coefficinet
%representing the cells that have different signaling phenotypes
%For Cophenetic correlation coefficinet the closer the otput is to 1 the
%better - .90s are what you want and .80s can be tolerated
Hierarchical_Clustering(name, intensity);
%Hierarchical_Clustering_Independent for the independent version of the
%code --- for more control over the defined frames of intrest and etc. Use
%the independent version for the publication graphs because it produces
%graphs and values with a higher correlation coefficient --- could not
%figure out the exact cause of why independent version of code produced
%better values and grahs then the attahed