Skip to content

Commit af4ce16

Browse files
Update modules/nf-core/sparsesignatures/templates/main_script.R
Co-authored-by: Simon Pearce <[email protected]>
1 parent b489c2a commit af4ce16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nf-core/sparsesignatures/templates/main_script.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ load_genome = function(genome, input_data) {
7575
if (genome == "GRCh37") {
7676
library(BSgenome.Hsapiens.1000genomes.hs37d5)
7777
bsg = BSgenome.Hsapiens.1000genomes.hs37d5::hs37d5
78-
input_data[["chrom"]] = substring(input_data[["chrom"]], 4, 5)
78+
input_data <- input_data %>% mutate(chrom = str_remove(chrom,"^chr"))
7979

8080
} else if (genome == "GRCh38") {
8181
library(BSgenome.Hsapiens.UCSC.hg38)

0 commit comments

Comments
 (0)