classifier using R
3
0
Entering edit mode
Nadege Nana ▴ 10
@nadege-nana-1776
Last seen 9.7 years ago
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20060623/ 855f3ebf/attachment.pl
• 388 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 13 hours ago
United States
Hi Nadege, Nadege Nana wrote: > I' trying to write a classifier usisn R > > I have microarray data(.xls), i saved the data as .txt, and import them in R with read.table() > I first tried to calcute knn: but i always receive the failure: Data have differents length, when i check their Length there are same. > > How kann i calculate one of these classifiers sing R: > knn- classifier > Bayes-classifer > Hidden Markov Modell > Neural net The problem you are experiencing is due to the fact that classical statistics almost always envision the samples in rows and the observations in columns. For microarray data, the convention is the opposite (samples in columns, genes in rows). In order to use these methods, you have to first transpose your matrix of data, and then things should work. HTH, Jim -- James W. MacDonald University of Michigan Affymetrix and cDNA Microarray Core 1500 E Medical Center Drive Ann Arbor MI 48109 734-647-5623 ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.
ADD COMMENT
0
Entering edit mode
@stephen-henderson-71
Last seen 7.0 years ago
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20060624/ 16cdc038/attachment.pl
ADD COMMENT
0
Entering edit mode
Naomi Altman ★ 6.0k
@naomi-altman-380
Last seen 3.0 years ago
United States
Are the data all numeric? Are you saving the xls file as comma-limited or tab delimited. If the data include characters, you should be aware that some characters such as spaces and slashes in the columns might cause problems. I always use a global search to remove these characters. The most robust way to read the data is to save as tab delimited and use read.delim. --Naomi At 01:36 PM 6/23/2006, Nadege Nana wrote: >I' trying to write a classifier usisn R > > I have microarray data(.xls), i saved the data as .txt, and > import them in R with read.table() > I first tried to calcute knn: but i always receive the > failure: Data have differents length, when i check their Length > there are same. > > How kann i calculate one of these classifiers sing R: > knn- classifier > Bayes-classifer > Hidden Markov Modell > Neural net > > Thanks for your help > > >--------------------------------- > > [[alternative HTML version deleted]] > >_______________________________________________ >Bioconductor mailing list >Bioconductor at stat.math.ethz.ch >https://stat.ethz.ch/mailman/listinfo/bioconductor >Search the archives: >http://news.gmane.org/gmane.science.biology.informatics.conductor Naomi S. Altman 814-865-3791 (voice) Associate Professor Dept. of Statistics 814-863-7114 (fax) Penn State University 814-865-1348 (Statistics) University Park, PA 16802-2111
ADD COMMENT

Login before adding your answer.

Traffic: 761 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6