Zhengdeng Lei, PhD
Zhengdeng Lei, PhD
2007 - 2009 High Throughput Computational Analyst, Memorial Sloan-Kettering Cancer Center, New York
2003 - 2007 PhD, Bioinformatics, University of Illinois at Chicago
Monday, July 11, 2011
Friday, July 8, 2011
glmnet cox
http://icb.med.cornell.edu/wiki/index.php/Elementolab/R_tutorial
Thursday, June 30, 2011
Wednesday, June 29, 2011
http://www.cic.gc.ca/english/immigrate/skilled/complete-applications.asp
Wednesday, June 8, 2011
SCP without password
http://www.linuxjournal.com/article/8600
copy from your local machine to remote
1. At you local machine (e.g. Steve Server):
ssh-keygen -t rsa
#then enter, enter(default file)
all default (no phrase)
cd /home/leiz/.ssh
scp ~/.ssh/id_rsa.pub NUSSTF\\gmslz@172.25.138.12:/home/gmslz/.ssh/id_ras.pub.FromSteve
PS: get you local ip if no ifconfig in your local machine
netstat -an|grep "tcp"
172.25.136.25
copy from your local machine to remote
1. At you local machine (e.g. Steve Server):
ssh-keygen -t rsa
#then enter, enter(default file)
all default (no phrase)
cd /home/leiz/.ssh
scp ~/.ssh/id_rsa.pub NUSSTF\\gmslz@172.25.138.12:/home/gmslz/.ssh/id_ras.pub.FromSteve
2. At remote machine (e.g. Cluster)
cd /home/gmslz/.ssh/
ls -la
cat id_ras.pub.FromSteve >>authorized_keys
DONE
you can scp from local (steve) to remote (cluster) without password
PS: get you local ip if no ifconfig in your local machine
netstat -an|grep "tcp"
172.25.136.25
Thursday, May 26, 2011
% With iterative feature selection, converged after three runs (consensus clustering)
file = 'E:\Projects\8.ComBAT\ComBat399T\CC_IFS\Run2\K3_consensus_matrix2.txt'
% No iterative feature selection
%file = 'E:\Projects\8.ComBAT\ComBat399T\CC_IFS\K3_consensus_matrix0.txt'
n=399
A = zeros(n, n);
fid = fopen(file, 'r');
row = 1;
% Skip first line
tline = fgetl(fid);
for row=1:n,
tline = fgetl(fid);
LineWith1stCol = regexp(tline, '\t', 'split');
A(row, :) = str2double(LineWith1stCol(1,2:n+1));
end
cd('E:\MATLAB_lib')
v=getcoph(A)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [coph] = getcoph(a)
% a is the consensus matrix
[m,m]=size(a);
uvec=a(1,2:end);
for i=2:m-1;
uvec=[uvec a(i,i+1:end)]; %get upper diagonal elements of consensus
end
y=1-uvec; % consensus are similarities, convert to distances
z=linkage(y,'average'); % use average linkage
coph=cophenet(z,y);
end
file = 'E:\Projects\8.ComBAT\ComBat399T\CC_IFS\Run2\K3_consensus_matrix2.txt'
% No iterative feature selection
%file = 'E:\Projects\8.ComBAT\ComBat399T\CC_IFS\K3_consensus_matrix0.txt'
n=399
A = zeros(n, n);
fid = fopen(file, 'r');
row = 1;
% Skip first line
tline = fgetl(fid);
for row=1:n,
tline = fgetl(fid);
LineWith1stCol = regexp(tline, '\t', 'split');
A(row, :) = str2double(LineWith1stCol(1,2:n+1));
end
cd('E:\MATLAB_lib')
v=getcoph(A)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [coph] = getcoph(a)
% a is the consensus matrix
[m,m]=size(a);
uvec=a(1,2:end);
for i=2:m-1;
uvec=[uvec a(i,i+1:end)]; %get upper diagonal elements of consensus
end
y=1-uvec; % consensus are similarities, convert to distances
z=linkage(y,'average'); % use average linkage
coph=cophenet(z,y);
end
Wednesday, May 25, 2011
Download youtube
Go to youtube URL for a video.
copy and paste the following to your chrome address bar
22 1280x720
javascript:isIE=/*@cc_on!@*/false;isIE ? swfHTML=document.getElementById('movie_player').getElementsByTagName('param')[1].value:swfHTML=document.getElementById("movie_player").getAttribute("flashvars");
w=swfHTML.split("&"); for(i=0;i<=w.length-1;i++) if(w[i].split("=")[0] == "fmt_url_map"){links=unescape(w[i].split("=")[1]);break;}abc = links.split(",");for(i=0;i<=abc.length-1;i++){fmt=abc[i].split("|")[0];if(fmt==22){url = abc[i].split("|")[1];window.location.href = url + '&title=' + (((document.title.replace('#',' ')).replace('@',' ')).replace('*',' ')).replace('|',' ');}}
w=swfHTML.split("&"); for(i=0;i<=w.length-1;i++) if(w[i].split("=")[0] == "fmt_url_map"){links=unescape(w[i].split("=")[1]);break;}abc = links.split(",");for(i=0;i<=abc.length-1;i++){fmt=abc[i].split("|")[0];if(fmt==22){url = abc[i].split("|")[1];window.location.href = url + '&title=' + (((document.title.replace('#',' ')).replace('@',' ')).replace('*',' ')).replace('|',' ');}}
35 854x480
javascript:isIE=/*@cc_on!@*/false;isIE ? swfHTML=document.getElementById('movie_player').getElementsByTagName('param')[1].value:swfHTML=document.getElementById("movie_player").getAttribute("flashvars");
w=swfHTML.split("&"); for(i=0;i<=w.length-1;i++) if(w[i].split("=")[0] == "fmt_url_map"){links=unescape(w[i].split("=")[1]);break;}abc = links.split(",");for(i=0;i<=abc.length-1;i++){fmt=abc[i].split("|")[0];if(fmt==35){url = abc[i].split("|")[1];window.location.href = url + '&title=' + (((document.title.replace('#',' ')).replace('@',' ')).replace('*',' ')).replace('|',' ');}}
34 640x360
18 640x360
javascript:isIE=/*@cc_on!@*/false;isIE ? swfHTML=document.getElementById('movie_player').getElementsByTagName('param')[1].value:swfHTML=document.getElementById("movie_player").getAttribute("flashvars");
w=swfHTML.split("&"); for(i=0;i<=w.length-1;i++) if(w[i].split("=")[0] == "fmt_url_map"){links=unescape(w[i].split("=")[1]);break;}abc = links.split(",");for(i=0;i<=abc.length-1;i++){fmt=abc[i].split("|")[0];if(fmt==18){url = abc[i].split("|")[1];window.location.href = url + '&title=' + (((document.title.replace('#',' ')).replace('@',' ')).replace('*',' ')).replace('|',' ');}}
w=swfHTML.split("&"); for(i=0;i<=w.length-1;i++) if(w[i].split("=")[0] == "fmt_url_map"){links=unescape(w[i].split("=")[1]);break;}abc = links.split(",");for(i=0;i<=abc.length-1;i++){fmt=abc[i].split("|")[0];if(fmt==18){url = abc[i].split("|")[1];window.location.href = url + '&title=' + (((document.title.replace('#',' ')).replace('@',' ')).replace('*',' ')).replace('|',' ');}}
5 320x240
javascript:isIE=/*@cc_on!@*/false;isIE ? swfHTML=document.getElementById('movie_player').getElementsByTagName('param')[1].value:swfHTML=document.getElementById("movie_player").getAttribute("flashvars");w=swfHTML.split("&");for(i=0;i<=w.length-1;i++)if(w[i].split("=")[0] == "fmt_url_map"){links=unescape(w[i].split("=")[1]);break;}abc = links.split(",");for(i=0;i<=abc.length-1;i++){fmt=abc[i].split("|")[0];if(fmt==5){url = abc[i].split("|")[1] + '&title=' + (((document.title.replace('#',' ')).replace('@',' ')).replace('*',' ')).replace('|',' ');window.location.href = url;}}
Subscribe to:
Posts (Atom)