Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. c("00_11242T1.bmp", "00_7T.bmp", "01_677T.bmp", "106T.bmp", "106TV.bmp",
  2. "108T.bmp", "108TV.bmp", "124T.bmp", "124TV.bmp", "40T.bmp",
  3. "4497T.bmp", "44T.bmp", "44TV.bmp", "511T.bmp", "511TV.bmp",
  4. "514T.bmp", "514TV.bmp", "56T.bmp", "92_11145T.bmp", "94_10917T1.bmp",
  5. "95_549T.bmp", "97_12714T1.bmp", "97_7999T.bmp", "97_8073T2.bmp",
  6. "99_2221T.bmp", "99_6669T.bmp", "99_7417T1.bmp", "99_7417T2.bmp",
  7. "R01_80418T2.bmp", "R01_81197T.bmp", "R02_80456T2.bmp", "R03_80356T.bmp",
  8. "R03_80586T.bmp", "R04_80227T.bmp", "R04_80577T.bmp", "R04_80584T.bmp",
  9. "R04_81371T.bmp", "R04_81372T1.bmp", "R04_81449T.bmp", "R05_80479T.bmp",
  10. "R05_80481T.bmp", "R05_80611T.bmp")
  11.  
  12. for( i in (1:ncol(data.lair))) {
  13. bmp(filename = bitlist[i], width = 1200, height = 1200, units = "px",bg = "white")
  14. par(mfrow=c(1,2))
  15. plot(density(assayData(data.lair)$lair.predicted[,i],na.rm=TRUE),main = bitlist[i])
  16. plot(density(assayData(data.lair)$predicted[,i],na.rm=TRUE),main = bitlist[i])
  17. cat(i,"n")
  18. dev.off()
  19. }
  20.  
  21. i <- 2
  22. dat <- assayData(data.lair)$lair.predicted[ , i]
  23. any(!is.na(dat))
  24. # [1] FALSE
  25.  
  26. for( i in (1:ncol(data.lair))) {
  27. bmp(filename = bitlist[i], width = 1200, height = 1200, units = "px",bg = "white")
  28. if (sum(!(is.na(assayData(data.lair)$lair.predicted[,i]))) > 1) {
  29. par(mfrow=c(1,2))
  30. plot(density(assayData(data.lair)$lair.predicted[,i],na.rm=TRUE))
  31. }
  32. plot(density(assayData(data.lair)$predicted[,i],na.rm=TRUE))
  33. cat(i,"n")
  34. dev.off()
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement