Skip to content

Commit

Permalink
check file isn't empty
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-wells committed Mar 10, 2019
1 parent 3cdd301 commit 486d3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ compute_likelihood = function(r1, r2, g, alpha1, alpha2, beta, return_slim=TRUE)

get_frag_overlap_counts <- function(posfiles = c(posfileA, posfileB, posfileG), infiles = c(infile1, infile2, infile3), windowfilepath=windowfile, chromosomes=chrs, bedtools=btpath, recalculate_coverage=TRUE){

if(all(file.exists(infiles)) & !recalculate_coverage){
if(all(file.exists(infiles)) & all(file.size(infiles)>1) & !recalculate_coverage){
print("Skipping recalculation of coverage")
}else{
print("Calculating coverage")
Expand Down

0 comments on commit 486d3c1

Please sign in to comment.