get_final_signature: Filter cancer-specific dysfunction pathways.

Description Usage Arguments Value Examples

View source: R/main.R

Description

The function 'get_final_signature' , using to filter cancer-specific dysfunction pathways (a potential marker for cancer prognostic and immunotherapy), is the main function of our analysis.

Usage

1

Arguments

PTMB

The pathway tumor mutation burden matrix,generated by'get_PTMB'.

sur

A nx2 data frame of samples' survival data,the first line is samples' survival event and the second line is samples' overall survival.

Value

Return the final PTMB signature,could be a potential marker for prognostic and immunotherapy prediction.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#get the path of the mutation annotation file and samples' survival data
maf<-system.file("extdata","data_mutations_extended.txt",package = "pathwayTMB")
sur_path<-system.file("extdata","sur.csv",package = "pathwayTMB")
sur<-read.csv(sur_path,header=TRUE,row.names = 1)
#perform the function 'get_mut_matrix'
mut_matrix<-get_mut_matrix(maffile=maf,mut_fre = 0.01,is.TCGA=FALSE,sur=sur)
#perform the function `get_PTMB`
PTMB_matrix<-get_PTMB(freq_matrix=mut_matrix,genesmbol=genesmbol,gene_path=gene_path)
set.seed(1)
final_character<-get_final_signature(PTMB=PTMB_matrix,sur=sur)

pathwayTMB documentation built on Oct. 10, 2021, 5:07 p.m.