Skip to content

Commit

Permalink
fix typo related to dangling ends
Browse files Browse the repository at this point in the history
  • Loading branch information
fidelram committed Jul 18, 2017
1 parent 3b19e19 commit e92e001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hicexplorer/hicBuildMatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,13 @@ def check_dangling_end(read, dangling_sequences):
ds = dangling_sequences
# skip forward read that stars with the restriction sequence
if not read.is_reverse and \
read.seq.upper().starswidth(ds['pat_forw']):
read.seq.upper().startswith(ds['pat_forw']):
# read.seq.upper()[0:len(ds['pat_forw'])] == ds['pat_forw']:
return True

# skip reverse read that ends with the restriction sequence
if read.is_reverse and \
read.seq.upper().endswidth(ds['pat_rev']):
read.seq.upper().endswith(ds['pat_rev']):
# read.seq.upper()[-len(ds['pat_rev']):] == ds['pat_rev']:
return True

Expand Down

0 comments on commit e92e001

Please sign in to comment.