fgcz / bfabricShiny

Manage life sciences data using R and b-fabric - a WSDL/REST interface and a tool box; main focus on MS data
http://fgcz-bfabric.uzh.ch
GNU General Public License v3.0
8 stars 1 forks source link

[2Grp] add json example for fetching sample annotation in 2Gr #18

Open cpanse opened 4 years ago

cpanse commented 4 years ago
cp@fgcz-148:~ > bfabric_read.py sample projectid 3003 && bfabric_read.py sample id 205417 && bfabric_read.py annotation id 549
--- webbase https://fgcz-bfabric.uzh.ch/bfabric; login; cpanse ---
bfabricPy version 0.10.7 (2019-09-03) -- "suds-py3"    
Copyright (C) 2019 Functional Genomics Center Zurich

--- query = {'projectid': '3003'} ---
--- possible attributes are: _id, created, createdby, modified, modifiedby, name, groupingvar, project, resource, samplingdate, species, type. ---
205417  jonas   2019-10-17 09:44:18.275000+02:00        ComboCourse_Glucose
205418  jonas   2019-10-17 09:44:43.010000+02:00        ComboCourse_EtOH
--- number of query result items = 2 ---
--- query time = 0.24 seconds ---
--- webbase https://fgcz-bfabric.uzh.ch/bfabric; login; cpanse ---
bfabricPy version 0.10.7 (2019-09-03) -- "suds-py3"    
Copyright (C) 2019 Functional Genomics Center Zurich

--- query = {'id': '205417'} ---
(xmlSample){
   _id = 205417
   created = 2019-10-17 09:44:18.275000+02:00
   createdby = "jonas"
   modified = 2019-10-17 09:44:18.275000+02:00
   modifiedby = "jonas"
   name = "ComboCourse_Glucose"
   groupingvar = 
      (xmlAnnotation){
         _id = 2499
      }
   project = 
      (xmlProject){
         _id = 3003
      }
   resource[] = 
      (xmlResource){
         _id = 1360703
      },
      (xmlResource){
         _id = 1360702
      },
      (xmlResource){
         _id = 1360701
      },
      (xmlResource){
         _id = 1360699
      },
   samplingdate = 2019-10-17 00:00:00+02:00
   species = 
      (xmlAnnotation){
         _id = 549
      }
   type = "Biological Sample - Proteomics"
 }
--- possible attributes are: _id, created, createdby, modified, modifiedby, name, groupingvar, project, resource, samplingdate, species, type. ---
205417  jonas   2019-10-17 09:44:18.275000+02:00        ComboCourse_Glucose
--- number of query result items = 1 ---
--- query time = 0.15 seconds ---
--- webbase https://fgcz-bfabric.uzh.ch/bfabric; login; cpanse ---
bfabricPy version 0.10.7 (2019-09-03) -- "suds-py3"    
Copyright (C) 2019 Functional Genomics Center Zurich

--- query = {'id': '549'} ---
(xmlAnnotation){
   _id = 549
   created = 2007-02-03 16:12:18.878000+01:00
   createdby = "system"
   modified = 2017-07-11 14:56:57.520000+02:00
   modifiedby = "admin"
   comment[] = 
      (xmlComment){
         _id = 5220
      },
   name = "Saccharomyces cerevisiae (bakers yeast)"
   common = True
   na = False
   released = True
   top = True
   type = "Species"
 }
--- possible attributes are: _id, created, createdby, modified, modifiedby, comment, name, common, na, released, top, type. ---
549     system  2017-07-11 14:56:57.520000+02:00        Saccharomyces cerevisiae (bakers yeast)
--- number of query result items = 1 ---
--- query time = 0.11 seconds ---