Data Discoverty via API

Global Search allows users to search for vaults, files, folders, and datasets by name, tags, user, date, and other metadata that can be customized. Similarly to Global Search on the web application, the search functionality is available through EDP Python and R clients as well. Users can refer to the EDP Access and Search Programmatic Guide to get started with using EDP clients.

Global Search Basics

The EDP Global Search performs a search based on the provided set of parameters (filters, entities, query, limit, ordering, etc.):

  • query: Advanced search query string

  • filters: Filters to apply

  • entities: List of entity tuples to filter on (entity type, entity)

  • limit: Maximum number of query results to return

Python

from quartzbio import GlobalSearch

# Search returns all objects by default
results = GlobalSearch()
Python

Users may use the limit parameter to limit the number of returned objects:

# No filters applied with limit parameter
results = GlobalSearch(limit = 200)

Advanced Search Query

Users can refer to the Advanced Search documentation to learn how to write their own queries using the Query String syntax. This is also possible to do using Python and R clients by providing query parameters:

Python

from quartzbio import GlobalSearch

# Advanced search (using keyword argument)
results = GlobalSearch(query="TCGA")

# Advanced search (using positional argument)
results = GlobalSearch("test")