get_samples_by_patient: Get sample IDs for a given set of patient IDs

View source: R/by_patients.R

get_samples_by_patientR Documentation

Get sample IDs for a given set of patient IDs

Description

Get sample IDs for a given set of patient IDs

Usage

get_samples_by_patient(patient_id = NULL, study_id = NULL, base_url = NULL)

Arguments

patient_id

A character string of sample IDs to query

study_id

A character string indicating which study ID should be searched. Only 1 study allowed. If NULL, we will guess a default study ID based on your database URL.

base_url

The database URL to query If NULL will default to URL set with ⁠set_cbioportal_db(<your_db>)⁠

Value

A dataframe of patient IDs and corresponding sample IDs. If patient has multiple samples, there will be multiple rows per patient.

Examples

## Not run: 
get_samples_by_patient(patient_id = c("P-0000034", "P-0000036"))

## End(Not run)


karissawhiting/cbioportalR documentation built on Nov. 27, 2024, 6:50 a.m.