@@ -9,6 +9,25 @@ my.write.table <- function(x, filename) {
99}
1010
1111# ' Extract participant ID from TCGA barcode
12+ # '
13+ # ' The format of sample identifiers/barcodes is described here:
14+ # ' https://docs.gdc.cancer.gov/Encyclopedia/pages/TCGA_Barcode/
15+ # '
16+ # ' Here is a summary:
17+ # ' e.g. TCGA-3C-AAAU-01A-11D-A41Q-05
18+ # ' project TCGA
19+ # ' tissue source site 3C
20+ # ' participant AAAU
21+ # ' sample 01 (01-09 tumor, 10-19 normal, 20-29 controls)
22+ # ' vial A
23+ # ' portion 11
24+ # ' analyte D (as in DNA)
25+ # ' plate A41Q
26+ # ' analysis center 05
27+ # '
28+ # ' The following function extracts the participant identifier
29+ # ' from a sample id/barcode.
30+ # '
1231# ' @param id TCGA barcode
1332# ' @return participant ID
1433# ' @export
@@ -17,6 +36,25 @@ extract.participant <- function(id) {
1736}
1837
1938# ' Extract tissue code from TCGA barcode
39+ # '
40+ # ' The format of sample identifiers/barcodes is described here:
41+ # ' https://docs.gdc.cancer.gov/Encyclopedia/pages/TCGA_Barcode/
42+ # '
43+ # ' Here is a summary:
44+ # ' e.g. TCGA-3C-AAAU-01A-11D-A41Q-05
45+ # ' project TCGA
46+ # ' tissue source site 3C
47+ # ' participant AAAU
48+ # ' sample 01 (01-09 tumor, 10-19 normal, 20-29 controls)
49+ # ' vial A
50+ # ' portion 11
51+ # ' analyte D (as in DNA)
52+ # ' plate A41Q
53+ # ' analysis center 05
54+ # '
55+ # ' The following function extracts the participant identifier
56+ # ' from a sample id/barcode.
57+
2058# ' @param id TCGA barcode
2159# ' @return tissue code
2260# ' @export
0 commit comments