MesKit error message - Join columns must be present in data.
0
1
Entering edit mode
15 months ago
CH1374 ▴ 10

I keep getting the following error message when running

maf <- readMaf(mafFile = maf.File,
              clinicalFile  = clin.File, ccfFile = NULL,
               refBuild = "hg19")

Error message:

Error in `dplyr::left_join()`:
! Join columns must be present in data.
✖ Problem with `Tumor_Sample_Barcode`.
Run `rlang::last_error()` to see where the error occurred.

Have checked the maf file and all the headings match the required headings.

colnames(maf.File)
 [1] "Hugo_Symbol"            "Chromosome"             "Start_Position"        
 [4] "End_Position"           "Variant_Classification" "Variant_Type"          
 [7] "Reference_Allele"       "Tumor_Seq_Allele2"      "Ref_allele_depth"      
[10] "Alt_allele_depth"       "VAF"                    "Tumor_Sample_Barcode"

clin.File includes

Tumor_Sample_Barcode
Tumor_ID
Patient_ID
Tumor_Sample_Label

Anyone have any ideas how to overcome this error?

MesKit R • 2.5k views
ADD COMMENT
0
Entering edit mode

Error is clear, can you provide the column names project_maf/C2.maf.tsv ?

ADD REPLY
0
Entering edit mode

column names for the maf are:

[1] "Hugo_Symbol" "Chromosome" "Start_Position"
[4] "End_Position" "Variant_Classification" "Variant_Type"
[7] "Reference_Allele" "Tumor_Seq_Allele2" "Ref_allele_depth"
[10] "Alt_allele_depth" "VAF" "Tumor_Sample_Barcode"

(have updated this above as well :))

ADD REPLY
0
Entering edit mode

OK, so you do have "Tumor_Sample_Barcode" in both datasets. Post as an issue at github: https://github.com/Niinleslie/MesKit/issues

ADD REPLY
0
Entering edit mode

When you use a custom variants text file (instead of an original maf) it gives the same error message if the data is space separated (such as standard with e.g. in R with readr::write_delim). It should be tab separated, which solves the issue.

ADD REPLY

Login before adding your answer.

Traffic: 1779 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6