50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


cbioportalR (version 1.1.0)

get_samples_by_patient: 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)

Value

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

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>)

Examples

Run this code
if (FALSE) {
get_samples_by_patient(patient_id = c("P-0000034", "P-0000036"))
}

Run the code above in your browser using DataLab