powered by
Reads a GDC segmetnation file and extract the segmetnation data.
freadGDCfile(file, fread_skip = NULL, format = "TARGET", CN_colname = "log2", sample_pattern = "[^_]+", sample_colname = NULL)
GDC file to be read
The number of metadata lines to be skipped(typically 14)
The format of the files (TCGA,TARGET, or custom).
The name of the column containing the copy number values.
Regex pattern to obtain the sample ID from the filename.
Alternatively, a column can be specified with the sample ID on each line.
input_tsv_with_sample_info A data frame containing the sample information extracted from the filename, including sample name & comparison type.
https://docs.gdc.cancer.gov/Encyclopedia/pages/TCGA_Barcode/
# NOT RUN { freadGDCfile(file = system.file("extdata","somaticCnvSegmentsDiploidBeta_TARGET-30-PANRVJ_NormalVsPrimary.tsv", package = "CNVScope")) # }
Run the code above in your browser using DataLab