Skip to content

Commit

Permalink
single sample edge case in plotAndReport
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Oct 24, 2018
1 parent 1851764 commit 81b1508
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions bin/plotAndReport
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ if __name__ == "__main__":

maxratio = max(y)
minratio = min(y)
if minratio == maxratio and minratio > 0:
minratio = -1
maxratio = maxratio
elif minratio == maxratio and minratio < 0:
minratio = minratio
maxratio = 1

step = round((maxratio - minratio) / 10, 1)
if minratio < 0:
Expand Down
2 changes: 1 addition & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ if (params.bowtie == 'very-fast'){
//Library setting check

if ((params.library != 'classic' && params.library != 'UDGhalf' ) && (params.h == false || params.help == false) ){
println 'ERROR: You did not specify --blabla'
println 'ERROR: You did not specify --library'
exit(1)
}
if (params.library == 'classic'){
Expand Down

0 comments on commit 81b1508

Please sign in to comment.