Concordance correlation coefficient and data manipulation
1
0
Entering edit mode
John Herbert ▴ 90
@john-herbert-3373
Last seen 10.1 years ago
Hi All. I want to compare array expression data between arrays and samples of similar test conditions. My data contains NaN and inf values and I want to remove these so they are not included in the tests. How is best to do this? I am a Perl-er and new to R, there does not seem an easy way to do it with subset or grep. Any advice appreciated. I wrote my own concordance routine but there could be a good one in a package somewhere? I am using Agilent single colour data. Thanks a lot for any advice. John.
• 833 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 10 hours ago
United States
Hi John, How you remove things depends on what you want as your end result. If you want to remove all reporters that have an NaN or Inf then you would do something like this: Assuming you have a data.frame or matrix called 'dat' ind <- apply(dat, 1, function(x) any(is.nan(x)) || any(x == Inf)) dat <- dat[!ind,] Will get rid of all rows with NaN or Inf in it. Best, Jim John Herbert wrote: > Hi All. > I want to compare array expression data between arrays and samples of similar test conditions. > My data contains NaN and inf values and I want to remove these so they are not included in the tests. How is best to do this? > I am a Perl-er and new to R, there does not seem an easy way to do it with subset or grep. > > Any advice appreciated. I wrote my own concordance routine but there could be a good one in a package somewhere? I am using Agilent single colour data. > > Thanks a lot for any advice. > > John. > > _______________________________________________ > 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 -- James W. MacDonald, M.S. Biostatistician Douglas Lab 5912 Buhl 1241 E. Catherine St. Ann Arbor MI 48109-5618 734-615-7826
ADD COMMENT

Login before adding your answer.

Traffic: 856 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