Skip to content

Commit d2b5e3b

Browse files
committed
fixed issue w. snakemake variable
1 parent 490e3d0 commit d2b5e3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

workflow/scripts/plot_mapping_rates.R

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ sink(slog, type = "message")
77
library(tidyverse)
88
library(cowplot)
99

10-
log.files <- snakemake@input["log"]
11-
10+
log.files <- snakemake@input[["log"]]
1211
# Data frame to store mapping rates of all experiments
1312
mapping.rates.all <- data.frame(sample = character(),
1413
overall_mapping_rate = numeric())
@@ -22,7 +21,7 @@ for (i in seq_along(log.files)) {
2221
sample <- str_replace(paste0(dir, "_",basename(log.files[[i]])), ".log", "")
2322

2423
# Read log file
25-
log <- readLines(con = log.files[i])
24+
log <- readLines(log.files[[i]])
2625

2726
# Extract mapping rate
2827
rate <- log[grepl("% overall alignment rate", log)]

0 commit comments

Comments
 (0)