Skip to content

Commit

Permalink
add argparse back
Browse files Browse the repository at this point in the history
  • Loading branch information
kcotto committed Jan 8, 2020
1 parent 17f5742 commit b79da70
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions scripts/compare_junctions_hist_v2.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ library(tidyverse)

debug = F

# system.time({
# if (debug){
# tag = paste("_", "default", sep="")
# } else {
# # get options tag
# args = commandArgs(trailingOnly = TRUE)
# tag = args[1]
# input_file = args[2]
# if ( substr(tag, 2, 3) == "--"){
# stop("Please specify an option tag (e.g. \"default\", \"i20e5\")")
# }
# }

tag = 'E'
input_file = 'all_splicing_variants_E.bed'
system.time({
if (debug){
tag = paste("_", "default", sep="")
} else {
# get options tag
args = commandArgs(trailingOnly = TRUE)
tag = args[1]
input_file = args[2]
if ( substr(tag, 2, 3) == "--"){
stop("Please specify an option tag (e.g. \"default\", \"i20e5\")")
}
}

# tag = 'E'
# input_file = 'all_splicing_variants_E.bed'

# All splicing relevant variants (union of rows from variants.bed files; add column with comma-separated list of sample names)
all_splicing_variants = unique(data.table::fread(input_file), sep = '\t', header = T, stringsAsFactors = FALSE)
Expand Down Expand Up @@ -253,4 +253,4 @@ regtools_data = regtools_data %>% distinct()

write.table(regtools_data, file=paste(input_file, "_out.tsv", sep=""), quote=FALSE, sep='\t', row.names = F)

# })
})

0 comments on commit b79da70

Please sign in to comment.