-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge_mafs error #722
Comments
Hi, It seems like it is a known I think for now a quick fix would be to manually perform merging on selected/necessary columns. Below is a possible solution: # only use following columns. Add other column names if you would like; for example, `HGVSp`
required.fields = c(
'Hugo_Symbol',
'Chromosome',
'Start_Position',
'End_Position',
'Reference_Allele',
'Tumor_Seq_Allele2',
'Variant_Classification',
'Variant_Type',
'Tumor_Sample_Barcode'
)
mafs = lapply(X = list_path_LAML_MAF, function(x){
data.table::fread(file = x, sep = "\t", select = required.fields, skip = "Hugo_Symbol")
})
mafs = data.table::rbindlist(l = mafs, use.names = TRUE, fill = TRUE, idcol = "Source_MAF")
mafs = maftools::read.maf(maf = mafs) I haven't tested the above code but I am guessing it should work fine. Let me know if this helps. |
Thank you for your quick feedback. |
Hi,
I'm trying to run merge_mafs on TCGA MAF files, but I get the error below.
I was wondering if there is something wrong about column equivalence between the MAF files, or if I should use some parameter to ignore some columns?
Thank you
The text was updated successfully, but these errors were encountered: