Skip to content
Snippets Groups Projects
Select Git revision
  • 9425b07a88487b5e909d53ac6659c9969cc4137a
  • master default protected
  • develop protected
  • cmake_boost_refactor
  • ubuntu_ci
  • mmtf
  • non-orthogonal-maps
  • no_boost_filesystem
  • data_viewer
  • 2.11.1
  • 2.11.0
  • 2.10.0
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.0
  • 2.6.1
  • 2.6.0
  • 2.6.0-rc4
  • 2.6.0-rc3
  • 2.6.0-rc2
  • 2.6.0-rc
  • 2.5.0
  • 2.5.0-rc2
  • 2.5.0-rc
  • 2.4.0
  • 2.4.0-rc2
29 results

surface_impl.hh

Blame
  • labkey_api.py 1.04 KiB
    # This script targets the client api version 0.4.0 and later
    
    #
    #  Check the page: https://github.com/LabKey/labkey-api-python/blob/master/samples/query_examples.py
    #  for example about filtering in queries.
    #  A starting point to investigate further is here:
    #  https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.Query.Filter.html
    
    import labkey
    import pandas as pd
    import sys
    
    # for convenience, load QueryFilter explicitly (avoids long lines in filter definitions)
    from labkey.query import QueryFilter
    
    if __name__ == "__main__":
      # These are values of variables for which the script works
      # project_name = "TEST_ABOERSCH"
      # query_name = "RNA_Seq_data_template"
      project_name = sys.argv[1]
      query_name = sys.argv[2]
      server_context = labkey.utils.create_server_context('labkey.scicore.unibas.ch', '/Zavolan Group/'+project_name, 'labkey', use_ssl=True)
      schema_name = "lists"
      results = labkey.query.select_rows(server_context,schema_name,query_name)
      table_of_data = pd.DataFrame(results["rows"])
      print(table_of_data)