Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.08 KB | None | 0 0
  1. library("RCurl")
  2. connectivityMap_detailed_results <- function(up_grp, down_grp){
  3. params <- list('j_username' = 'username',
  4. 'j_password' = 'password')
  5. cmap <- postForm("http://www.broadinstitute.org/cmap/signature?servletAction=edit",
  6. .params=params, style="POST")
  7.  
  8. print(cmap)
  9.  
  10. tmp <- getURL("http://www.broadinstitute.org/cmap/signature?servletAction=edit",
  11. userpwd = "user:pwd",verbose=TRUE)
  12.  
  13. [1] "
  14. <html>
  15. <head>
  16. <link href="styles/stylesheet.css" rel="stylesheet" type="text/css">
  17. <link rel="SHORTCUT ICON" href="favicon.ico" >
  18. <title>Connectivity Map sign-in</title>
  19. <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  20. </head>
  21. <body>
  22.  
  23.  
  24.  
  25. <div style="overflow: hidden;"><a href="displayServlet?servletAction=mainMenu"><img border="0" src="images/banner1.jpg" alt="cmap" title="cmap"></a></div>
  26.  
  27. <div align="right" style="text-align: right;" width="100%">
  28.  
  29. </div>
  30.  
  31. <div id="tabContainer" class="tabContainer"><span id="tabSpace" class="tabSpace">&nbsp;</span></div>
  32. <div class="error"></div>
  33.  
  34. <br><br>
  35.  
  36. <form name="login2" target="_top" method="POST" action="j_security_check">
  37. <table>
  38. <tr>
  39. <td align="right" valign="top">
  40. username:
  41. </td>
  42. <td valign="top">
  43. <input name="j_username" size="50" value="">
  44. </td>
  45. </tr>
  46. <tr>
  47. <td align="right" valign="top">
  48. password:
  49. </td>
  50. <td valign="top">
  51. <input type="password" name="j_password" size="50">
  52. </td>
  53. </tr>
  54. <tr>
  55. <td align="right" valign="top">
  56. </td>
  57. <td valign="top">
  58. <input type="submit" name="submit" value="sign in" class="little">&nbsp;&nbsp;&nbsp;&nbsp;
  59. <br/><br/>
  60. <a href="sendPassword.jsp">email me my password</a> |
  61. <a href="userServlet?servletAction=editProfile&userId=0">register as a new user</a>
  62.  
  63. </td>
  64. </tr>
  65. </table>
  66. </form>
  67. <hr/>
  68. <p class="intro">The Connectivity Map (also known as cmap) is a collection of genome-wide transcriptional expression data from cultured human cells treated with bioactive small molecules and simple pattern-matching algorithms that together enable the discovery of functional connections between drugs, genes and diseases through the transitory feature of common gene-expression changes. You can learn more about cmap from our papers in <a target="_blank" href="http://www.sciencemag.org/cgi/content/full/313/5795/1929?ijkey=ylc.v/5sDLGKI&keytype=ref&siteid=sci"><i>Science</i></a> and <a target="_blank" href="http://www.nature.com/nrc/journal/v7/n1/pdf/nrc2044.pdf"><i>Nature Reviews Cancer</i></a>.
  69. <!--table>
  70. <tr><td align="right"><img src="images/scienceMag.png" height="25" style="padding-left: 25px;"></td><td> read our paper in <a href="http://www.sciencemag.org/cgi/content/full/313/5795/1929?ijkey=ylc.v/5sDLGKI&keytype=ref&siteid=sci">Science Magazine</a><br/>&nbsp;</td></tr>
  71. <tr><td align="right"><img src="http://www.broad.mit.edu/images/homelogo.gif" height="25" style="padding-left: 25px;"></td><td> an <a href="http://www.broad.mit.edu/cgi-bin/news/display_news.cgi?id=2141">article about cmap</a> at The Broad Institute website<br/>&nbsp;</td></tr>
  72. <tr><td align="right"><img src="images/audio.gif" style="padding-left: 25px;"></td><td> <a href="http://www.npr.org/templates/story/story.php?storyId=6167294&ft=1&f=1027">listen to an interview</a> on National Public Radio with Todd Golub about cmap<br/>&nbsp;</td></tr>
  73. </table-->
  74. </p>
  75. <p class="intro">This web interface provides access to the current version (<b>build 02</b>) of Connectivity Map which contains more than 7,000 expression profiles representing 1,309 compounds. It is designed to allow biologists, pharmacologists, chemists and clinical scientists to use cmap without the need for any specialist ability in the analysis of gene-expression data. The previous version (<b>build 01</b>) of Connectivity Map can be accessed <a href="http://www.broad.mit.edu/cmap_build01">here</a>.</p>
  76. <p class="intro">A brief tutorial can be found by clicking 'getting started' under the 'help' tab after log in. Detailed help and a definition of cmap terms can be found by clicking 'topics', also under the 'help' tab. For everything else, please <a href="mailto:cmap-help@broad.mit.edu">contact us</a>.</p>
  77. <p class="intro">The Connectivity Map is based at The Broad Institute of MIT and Harvard in Cambridge, Massachusetts. The cmap team is Justin Lamb, Xiaodong Lu, Dave Peck, Matt Wrobel, Aravind Subramanian, Irene Blat, Josh Modell, Jim Lerner, Elizabeth Liu and Emily Crawford. Jean-Philippe Brunet, Ken Ross, Michael Reich, Paul Clemons, Kathy Seiler, Steve Haggarty, Bang Wong, Maria Nemchuk, Ru Wei, Steve Carr, Christopher Johnson, Stephen Johnson, the MSigDB curation team, and the Genetic Analysis Platform contribute invaluable expertise and assistance. Todd Golub and Eric Lander provide institutional leadership for the project.</p>
  78. <hr/>
  79. <a href="privacy.jsp">privacy statement</a> | <a href="terms_and_conditions.jsp">terms and conditions</a><br/>
  80. <a href="http://www.broad.mit.edu"><img src="images/homelogo.gif" border="0"/></a>
  81. <br/>&copy; 2006 Broad Institute
  82. <!--p class="intro">The Broad Institute is a research collaboration of MIT, Harvard and its affiliated Hospitals, and the Whitehead Institute, created to bring the power of genomics to medicine.</p-->
  83. <script language="javascript">
  84. document.login2.j_username.focus()
  85. </script>
  86. </body>
  87. </html>
  88. "
  89. attr(,"Content-Type")
  90. charset
  91. "text/html" "ISO-8859-1"
  92.  
  93. library(RCurl)
  94. url <- "http://www.broadinstitute.org/cmap/j_security_check"
  95. params <- list('j_username' = 'username',
  96. 'j_password' = 'password')
  97. cmap <- postForm(url, .params=params, style="POST")
  98.  
  99. library(XML)
  100. doc <- htmlTreeParse(cmap, useInternalNodes=T)
  101. xmlValue(doc["//head/title"][[1]]) # page title
  102. # [1] "login failure"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement