Skip to content

Commit 75b3f49

Browse files
upd
1 parent e31fe7e commit 75b3f49

File tree

3 files changed

+74
-2
lines changed

3 files changed

+74
-2
lines changed

R/functions.r

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

man/extract.participant.Rd

Lines changed: 18 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/extract.tissue.Rd

Lines changed: 18 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)