๐Ÿ“Š maftools์—์„œ oncoplot์„ ๋งŒ๋“ค์–ด ๋ณด์•˜์Šต๋‹ˆ๋‹ค.

9453 ๋‹จ์–ด RbioinformaticsmaftoolsBioconductor
์ž‘์€ ์žฌ๋ฃŒ์ž…๋‹ˆ๋‹ค.
์ถœ๋ ฅํ•˜์ง€ ์•Š์œผ๋ฉด ์•„๋ฌด๊ฒƒ๋„ ๊ธฐ์–ตํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ ์”๋‹ˆ๋‹ค. R ์ดˆ๋ณด์ž ๋•Œ๋ฌธ์— ๋‚ฎ์€ ํ€„๋ฆฌํ‹ฐ์ž…๋‹ˆ๋‹ค.

TCGA์˜ ๋…ผ๋ฌธ์ด๋ผ๋“ ์ง€ ๋‚˜์˜ค๋Š”, ์•”์˜ ๊ฒŒ๋†ˆ ๋ณ€์ด์˜ ์ผ๋žŒ ๊ฐ™์€ ๊ทธ๋ฆผ์„ OncoPlot์ด๋ผ๊ณ  ํ•œ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.


์ด๊ฒƒ์„ ๋งŒ๋“ค์–ด์ฃผ๋Š” R ํŒจํ‚ค์ง€๊ฐ€ maftools์ž…๋‹ˆ๋‹ค. bioconductor์—์„œ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.
htps // ๋น„์˜ค ๊ณค์ฆˆ c์™€ r. ์˜ค rg / Pac ๊ฐ€๊ฒŒ s / Ree Ase / Bio c / HTML / Ma f์™€ ls. HTML

maftools์—๋Š” maf ํŒŒ์ผ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. VCF ํŒŒ์ผ์—์„œ vcf2maf์ด๋ผ๋Š” ์‚ฌ์šฉํ•˜๊ธฐ ์–ด๋ ค์šด ๋„๊ตฌ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ƒ์„ฑํ•˜๋Š” ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ด์ง€๋งŒ TCGA ์‚ฌ์ดํŠธ์—์„œ maf ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œํ•˜๋Š” ๋ฐฉ๋ฒ•๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ์œ„ํ•œ ํŒจํ‚ค์ง€๊ฐ€ TCGAbiolinks์ž…๋‹ˆ๋‹ค.

๊ทธ๋ ‡๋‹ค๋ฉด TCGAbiolinks ํŠœํ† ๋ฆฌ์–ผ๊ณผ ๋˜‘๊ฐ™์€ ์žฌ๋ฃŒ์ด์ง€๋งŒ ๋‹ด๊ด€์•” Oncoplot์„ ๋งŒ๋“ค์–ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.
library(TCGAbiolinks)
library(maftools)
library(dplyr)
maf <- GDCquery_Maf("CHOL", pipelines = "varscan2") %>% read.maf

R ์œ ์ €์—๊ฒŒ๋Š” ์ƒ์‹์˜ ์ข…๋ฅ˜๋ผ๊ณ  ์ƒ๊ฐ๋˜์ง€๋งŒ, %>% ๋Š” magitrtr๊ฐ€ ์ œ๊ณตํ•˜๋Š” ๊ธฐ๋Šฅ์ด๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ํ™•์‹คํ•˜์ง€ ์•Š์ง€๋งŒ ๋ช…๋ น ์ค„ |๊ณผ ๋น„์Šทํ•œ ๊ธฐ๋Šฅ์ด๋ผ๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.
mode(maf)

๊ทธ๋Ÿฌ๋ฉด [1] "S4"๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์ด maf์˜ ์ค‘๋ฏธ๋Š” S4 ํด๋ž˜์Šค๋ผ๋Š” ๋…€์„์ผ ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐ๋ฉ๋‹ˆ๋‹ค.
ํƒˆ์„ ํ–ˆ์ง€๋งŒ oncoplot์„ ๊ทธ๋ฆฝ๋‹ˆ๋‹ค.
oncoplot(maf = maf)



๊ฐ„๋‹จํ•˜๋„ค์š”.

์ž„์ƒ ๋ฐ์ดํ„ฐ์™€ ๊ฒฐํ•ฉํ•  ๋•Œ,
library(TCGAbiolinks)
library(maftools)

tcgacode = "CHOL"

barcode2simple <- function(x) {
   ar = strsplit(x , "-")
   paste(ar[[1]][1:3], collapse = "-")
 }

maf = GDCquery_Maf(tcgacode, pipelines = "varscan2")
maf["Tumor_Sample_Barcode"] = apply(maf["Tumor_Sample_Barcode"], 1, barcode2simple)

clinicalData = GDCquery_clinic(project = paste("TCGA", tcgacode, sep="-"), type='clinical')
names(clinicalData)[names(clinicalData)=="submitter_id"] = "Tumor_Sample_Barcode"
clinicalData["Tumor_Sample_Barcode"] = apply(clinicalData["Tumor_Sample_Barcode"], 1, barcode2simple)

head(clinicalData)
maf = read.maf(maf = maf, clinicalData = clinicalData)

oncoplot(maf = maf,
    clinicalFeatures = c('gender','tumor_stage'),
    additionalFeature = c("Tumor_Seq_Allele2", "C"),
    draw_titv = TRUE,
    top = 30)

๊ฐ™์€ ๋Š๋‚Œ์œผ๋กœ ํ•˜๋ฉด ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. (R์˜ ์ดˆ๋ณด์ž์ด๋ฏ€๋กœ ์œ„์˜ ์ฝ”๋“œ๋Š” ๋ญ”๊ฐ€ ๋น„ํšจ์œจ์ ์ธ ์ผ์„ ํ•  ๊ฐ€๋Šฅ์„ฑ์ด ๋†’์Šต๋‹ˆ๋‹ค.



์ด ๊ธฐ์‚ฌ๋Š” ์ด์ƒ์ž…๋‹ˆ๋‹ค.

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ