How to download the sample data of the specified Primary Site in TCGA
This article mainly introduces the relevant knowledge of "how to download the sample data of Primary Site specified in TCGA". The editor shows you the operation process through an actual case. The method of operation is simple, fast and practical. I hope that this article "how to download sample data of Primary Site specified in TCGA" can help you solve the problem.
Code:
# screening cancer samples library (GenomicDataCommons) resp = cases ()% >% filter (~ project.project_id=='TCGA-HNSC' & primary_site = = 'Larynx')% >% GenomicDataCommons::select (c (default_fields (cases ()),' samples.sample_type'))% >% response_all () resp% >% count () case_name