Skip to content

Commit

Permalink
Merge pull request #1 from CDCgov/codespace-glowing-barnacle-pprpvrr5…
Browse files Browse the repository at this point in the history
…rjvc766w

Updating to clarify mutation as undetermined and adding a notes column
  • Loading branch information
mrajeev08 committed Jul 25, 2024
2 parents 11f5882 + 60de280 commit a0ab7b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion .Rprofile

This file was deleted.

7 changes: 5 additions & 2 deletions R/snpeff_fun.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ snpeffr <- function(vcf_path,

# get just the samples with mutations
vcf_long <- vcf_long[value == allele | value == ""]
vcf_long[, allele := ifelse(value == "", "undefined", allele)]
vcf_long[, allele := ifelse(value == "", "", allele)]
vcf_long[, HGVS.p := ifelse(value == "", "undetermined", HGVS.p)]
vcf_long[, note := ifelse(value == "", "For this run, MycoSNP was unable to determine the presence/absence of a mutation at this position.", "")]
vcf_long <- unique(vcf_long, by = colnames(vcf_long))
posits <- data.table(region = names(posits), POS = posits)
vcf_long <- posits[vcf_long, on = "POS"]

Expand All @@ -124,7 +127,7 @@ snpeffr <- function(vcf_path,
"mutation"))

return(vcf_long[, c("sample_id", "snpeff_gene_name", "region", "position", "mutation",
"ref_sequence", "sample_sequence")])
"ref_sequence", "sample_sequence", "note")])
}


Expand Down
Binary file added combined.snpeff (1).vcf.gz
Binary file not shown.

0 comments on commit a0ab7b1

Please sign in to comment.