Skip to content

Commit

Permalink
handle error correctly #643
Browse files Browse the repository at this point in the history
  • Loading branch information
taoliu committed May 7, 2024
1 parent 0fae030 commit 759e100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MACS3/Commands/callvar_cmd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Time-stamp: <2022-09-15 17:25:49 Tao Liu>
# Time-stamp: <2024-05-07 11:47:04 Tao Liu>

"""Description: Call variants directly
Expand Down Expand Up @@ -194,7 +194,7 @@ def run( args ):
else:
ra_collection = RACollection( chrom, peak, tbam.get_reads_in_region( chrom, peak["start"], peak["end"], maxDuplicate=maxDuplicate ) )
except:
info ("No reads found in peak: ", chrom.decode(), peak["start"], peak["end"], ". Skipped!")
info ("No reads found in this peak. Skipped" )
# while there is no reads in peak region, simply skip it.
continue

Expand Down

0 comments on commit 759e100

Please sign in to comment.