search_bio_samples: Search for Bio Samples

Description Usage Arguments Examples

View source: R/search.R

Description

Search for Bio Samples

Usage

1
2
search_bio_samples(client, dataset_id, individual_id = NULL, name = NULL,
  page_size = NULL, page_token = NULL)

Arguments

client

A ga4gh_client object

dataset_id

The ID of the Dataset to search within

individual_id

Return BioSamples for the provided Individual ID

name

Return BioSamples with the given name found by case-sensitive string matching.

page_size

Specifies the maximum number of results to return in a single page. If unspecified, the client default will be used.

page_token

The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
ref_client <- ga4gh_client("http://1kgenomes.ga4gh.org", api_location = "")

## Not run: 
library(magrittr)
## Find a dataset to search in
datasets <- ref_client %>% search_datasets() %>% content()
d_id <- datasets$datasets[[1]]$id

## Search for bio samples in the dataset
bio_samples <- ref_client %>% search_bio_samples(d_id) %>% content()
bio_samples


## End(Not run)

Rga4gh documentation built on May 29, 2017, 9:12 a.m.