Mercurial > repos > davidvanzessen > mutation_analysis
comparison sequence_overview.r @ 77:c5c86d15cb94 draft
Uploaded
| author | davidvanzessen | 
|---|---|
| date | Mon, 09 May 2016 03:56:38 -0400 | 
| parents | becea91089ed | 
| children | b523ce95d857 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 76:becea91089ed | 77:c5c86d15cb94 | 
|---|---|
| 36 tr = function(val) { capture.output(cat("<tr>", td(val), "</tr>", sep="")) } | 36 tr = function(val) { capture.output(cat("<tr>", td(val), "</tr>", sep="")) } | 
| 37 make.link = function(id, clss, val) { paste("<a href='", clss, "_", id, ".html'>", val, "</a>", sep="") } | 37 make.link = function(id, clss, val) { paste("<a href='", clss, "_", id, ".html'>", val, "</a>", sep="") } | 
| 38 tbl = function(df) { res = "<table border='1'>"; for(i in 1:nrow(df)){ res = paste(res, tr(df[i,]), sep=""); }; res = paste(res, "</table>"); } | 38 tbl = function(df) { res = "<table border='1'>"; for(i in 1:nrow(df)){ res = paste(res, tr(df[i,]), sep=""); }; res = paste(res, "</table>"); } | 
| 39 | 39 | 
| 40 cat("<table border='1'>", file=main.html, append=F) | 40 cat("<table border='1'>", file=main.html, append=F) | 
| 41 cat("<caption>CDR1+CDR2+CDR3+FR2+FR3 sequences that show up more than once</caption>", file=main.html, append=T) | |
| 41 cat("<tr><th>Sequence</th><th>ca1</th><th>ca2</th><th>cg1</th><th>cg2</th><th>cg3</th><th>cg4</th><th>cm</th></tr>", file=main.html, append=T) | 42 cat("<tr><th>Sequence</th><th>ca1</th><th>ca2</th><th>cg1</th><th>cg2</th><th>cg3</th><th>cg4</th><th>cm</th></tr>", file=main.html, append=T) | 
| 42 | 43 | 
| 43 for(i in 1:nrow(dat)){ | 44 for(i in 1:nrow(dat)){ | 
| 44 ca1 = IDs[IDs$seq_conc == dat[i,c("seq_conc")] & IDs$best_match == "ca1",] | 45 ca1 = IDs[IDs$seq_conc == dat[i,c("seq_conc")] & IDs$best_match == "ca1",] | 
| 45 ca2 = IDs[IDs$seq_conc == dat[i,c("seq_conc")] & IDs$best_match == "ca2",] | 46 ca2 = IDs[IDs$seq_conc == dat[i,c("seq_conc")] & IDs$best_match == "ca2",] | 
