Closed lwaldron closed 5 years ago
suppressPackageStartupMessages(library(TCGAutils)) fullBarcodes <- c("TCGA-B0-5117-11A-01D-1421-08", "TCGA-B0-5094-11A-01D-1421-08", "TCGA-E9-A295-10A-01D-A16D-09") barcodeToUUID(fullBarcodes, id_type = c("case_id", "file_id")) #> submitter_id case_id #> 1 TCGA-B0-5117 ae55b2d3-62a1-419e-9f9a-5ddfac356db4 #> 2 TCGA-B0-5094 8aaa4e25-5c12-4ace-96dc-91aaa0c4457c #> 3 TCGA-E9-A295 fec0da58-1047-44d2-b6d1-c18cceed43dc barcodeToUUID(fullBarcodes, id_type = c("file_id", "case_id")) #> Error in match.arg(id_type): 'arg' must be of length 1
This has been resolved after re-working the barcodeToUUID function.
barcodeToUUID