Skip to content

Commit

Permalink
convert to 0-based coordinates for pysam compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
pfh committed Oct 14, 2016
1 parent 25db38e commit ee7ab3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions nesoni/peaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ def consider(start,end):

return result


@config.help(
'Call peaks that are higher than everything within "radius", '
'and higher than some minimum depth.\n'
Expand Down
4 changes: 2 additions & 2 deletions nesoni/sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ def query_name(self): return self.qname
def reference_name(self): return self.rname

@property
def reference_start(self): return self.pos
def reference_start(self): return self.pos-1

@property
def reference_end(self): return self.pos+get_length(self.cigar)
def reference_end(self): return self.pos-1+get_length(self.cigar)

@property
def next_reference_name(self): return self.mrnm
Expand Down

0 comments on commit ee7ab3e

Please sign in to comment.