parse_gdc_file_uuid: Parse Sample ID from GDC Portal File UUID

View source: R/parse_gdc_uuid.R

parse_gdc_file_uuidR Documentation

Parse Sample ID from GDC Portal File UUID

Description

Parse Sample ID from GDC Portal File UUID

Usage

parse_gdc_file_uuid(
  x,
  legacy = FALSE,
  fields = "cases.samples.submitter_id,cases.samples.sample_type,file_id",
  token = NULL,
  max_try = 5L
)

Arguments

x

a GDC manifest file or a vector of file UUIDs.

legacy

if use GDC legacy data.

fields

a list of fields to query. If it is a string, then fields should be separated by comma. It could also be a vector. See https://docs.gdc.cancer.gov/API/Users_Guide/Appendix_A_Available_Fields/#file-fields for list.

token

the token used for querying.

max_try

maximum try time.

Value

a data.frame

Examples


parse_gdc_file_uuid("fe522fc8-e690-49b9-b3b6-fa3658705057")
parse_gdc_file_uuid(
  c(
    "fe522fc8-e690-49b9-b3b6-fa3658705057",
    "2c16506f-1110-4d60-81e3-a85233c79909"
  )
)

IDConverter documentation built on March 31, 2023, 10:25 p.m.