Skip to content

Commit

Permalink
feat: loosened restriction for End_position MAF column for MAF type t…
Browse files Browse the repository at this point in the history
…o be correctly guessed
  • Loading branch information
selkamand committed Nov 27, 2023
1 parent e2b2004 commit 4eea4db
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions R/fct_filetype_guesser.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ guess_genomic_mutation_filetype <- function(path){
cols_pre_dot <- sub(x=cols, pattern = "\\..*$", replacement = "") # e.g. Func.refGene OR Func.ensGene will become Func.

# Definitions of what to expect in MAFs / ANNOVAR files / VCF
maf_cols <- c("Tumor_Sample_Barcode", "Hugo_Symbol", "Chromosome", "Start_Position",
"End_Position", "Reference_Allele", "Tumor_Seq_Allele2", "Variant_Classification",
"Variant_Type")
maf_cols <- c("Tumor_Sample_Barcode", "Hugo_Symbol", "Chromosome", "Start_Position", #"End_Position",
"Reference_Allele", "Tumor_Seq_Allele2", "Variant_Classification", "Variant_Type")
annovar_cols = c("Chr", "Start", "End", "Ref", "Alt", "Func", "Gene", "GeneDetail", "ExonicFunc", "AAChange")


Expand Down Expand Up @@ -95,7 +94,6 @@ read_maf_flexible <- function(path_mutations, refBuild = NULL, path_clindata = N
filetype <- rlang::arg_match(filetype)
auto_guessed_filetype <- guess_genomic_mutation_filetype(path_mutations)


if(filetype == "AUTO")
filetype <- auto_guessed_filetype

Expand Down

0 comments on commit 4eea4db

Please sign in to comment.