Skip to content

Commit

Permalink
folder for script created
Browse files Browse the repository at this point in the history
  • Loading branch information
ahryhorzhevska committed Apr 12, 2022
1 parent 6742792 commit 3193b1d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/plot.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
library(ggplot2)

gene <- read.csv2(snakemake@input[[1]], dec = ",")
colnames(gene) <- "id"
gene$id <- as.numeric(gene$id)

print(paste0("I'm plotting the file ", snakemake@wildcards[["file"]]))

pdf(file = snakemake@output[[1]])

ggplot(gene, aes(x = id)) +
geom_density(alpha = .2, fill = "#FF6666") +
ggtitle(paste0("Plot "), snakemake@wildcards[["file"]])

dev.off()

0 comments on commit 3193b1d

Please sign in to comment.