smacneil1 / cbio-cancer-genomics-portal

Automatically exported from code.google.com/p/cbio-cancer-genomics-portal
0 stars 0 forks source link

Update CGDS-R Web Page #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Ethan,

It just came to my mind that we need to update the R package guidelines because 
of the cange to CancerStudies, could update 
http://www.cbioportal.org/public-portal/cgds_r.jsp with the new tutorial below 

Have a great weekend,
-Anders

===================

     # Create CGDS object                                                                                                                                                            
     mycgds = CGDS("http://www.cbioportal.org/public-portal/")                                                                                                                       

     # Test the CGDS endpoint URL using a few simple API tests                                                                                                                       
     test(mycgds)                                                                                                                                                                    

     # Get list of cancer studies at server                                                                                                                                          
     getCancerStudies(mycgds)                                                                                                                                                        

     # Get available case lists (collection of samples) for a given cancer study                                                                                                     
     mycancerstudy = getCancerStudies(mycgds)[2,1]                                                                                                                                   
     mycaselist = getCaseLists(mycgds,mycancerstudy)[1,1]                                                                                                                            

     # Get available genetic profiles                                                                                                                                                
     mygeneticprofile = getGeneticProfiles(mycgds,mycancerstudy)[4,1]                                                                                                                

     # Get data slices for a specified list of genes, genetic profile and case list                                                                                                  
     getProfileData(mycgds,c('BRCA1','BRCA2'),mygeneticprofile,mycaselist)                                                                                                           

     # Get clinical data for the case list                                                                                                                                           
     myclinicaldata = getClinicalData(mycgds,mycaselist) 

# documentation
help('cgdsr')
help('CGDS')

==========================

Original issue reported on code.google.com by cer...@gmail.com on 27 Sep 2011 at 1:27

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 88e5036f1a20.

Original comment by cer...@gmail.com on 5 Oct 2011 at 8:35