Load libraries
Load data
example_data <- sample.mut.ref # Example from package
jasmine_data <- read.csv("forbreastsdeconsctructSigsSNV.txt", sep = "\t")
The diffrences
[1] "Sample" "chr" "pos" "ref" "alt"
[1] "sample.id" "chr" "pos" "ref" "alt"
- The name of the first column should be
"Sample" and not "sample.id".
- NAs aren’t allowed in the data.
chr
1 chr1
2 chr1
3 chr1
4 chr1
5 chr1
6 chr1
chr
1 1
2 1
3 1
4 1
5 1
6 1
- Chromosome values should start with
chr.
Fix the problems
names(jasmine_data)[1] <- "Sample"
jasmine_data %<>% filter(!is.na(chr))
jasmine_data$chr <- paste0("chr", jasmine_data$chr)
Detect signatures