Entering edit mode
Mark Reimers
▴
20
@mark-reimers-509
Last seen 10.2 years ago
Hi Marcus,
You can calculate your own distances, using for example sum(
abs(data[,i]-data[,j], na.rm=T) to compute the 'Manhattan' distance
between samples i & j. If you put these into a symmetric matrix X, the
R
function as.dist(X) will transform these into a distance object you
can
use with hclust().
regards
Mark
>Hmm, your answer left me thinking about how to measure distances. Why
>doesnt a distace function just calculate the distance between the
values
>that are there and leave out the NA:s? I have filtered away with the
>B-test the spots that are supposedly not to be differentially
expressed
>and have only a subset of the total number of spots. Three slides of
my 18
>have many NA:s. Should I exclude them therefor because the distance
is to
>affected?
>
>/ Marcus
>
>
**********************************************************************
*********************
Marcus Gry Bj?rklund
Royal Institute of Technology
AlbaNova University Center
Stockholm Center for Physics, Astronomy and Biotechnology
Department of Molecular Biotechnology
106 91 Stockholm, Sweden
Phone (office): +46 8 553 783 39
Fax: + 46 8 553 784 81
Visiting adress: Roslagstullsbacken 21, Floor 3
Delivery adress: Roslagsv?gen 30B
--
Mark Reimers
Assistant Professor, Biosciences, and
Statistical Lead, Bioinformatics and Expression Analysis Facility,
Karolinska Institute
Stockholm
(by WebMail)