getFields: extract available fields from MAF object

Description Usage Arguments Value Examples

Description

extract available fields from MAF object

Usage

1
2
3
4
getFields(x)

## S4 method for signature 'MAF'
getFields(x)

Arguments

x

An object of class MAF

Value

Field names in MAF file

Examples

1
2
3
laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools")
laml <- read.maf(maf = laml.maf)
getFields(x = laml)

Example output

-Reading
-Validating
-Silent variants: 475 
-Summarizing
-Processing clinical data
--Missing clinical data
-Finished in 0.750s elapsed (0.477s cpu) 
 [1] "Hugo_Symbol"            "Entrez_Gene_Id"         "Center"                
 [4] "NCBI_Build"             "Chromosome"             "Start_Position"        
 [7] "End_Position"           "Strand"                 "Variant_Classification"
[10] "Variant_Type"           "Reference_Allele"       "Tumor_Seq_Allele1"     
[13] "Tumor_Seq_Allele2"      "Tumor_Sample_Barcode"   "Protein_Change"        
[16] "i_TumorVAF_WU"          "i_transcript_name"     

maftools documentation built on Feb. 6, 2021, 2 a.m.