Skip to content

Commit

Permalink
Incorporate gh issue suggestion for start/stoptrim
Browse files Browse the repository at this point in the history
  • Loading branch information
seina001 committed Mar 18, 2024
1 parent 0de1542 commit 8cc8769
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion itsxpress/Dedup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ def _map_func(ziprecord):
repseq = self.matchdict[record1.id]
start, stop, tlen = itspos.get_position(repseq)
r2start = tlen - stop
return record1[start:], record2[r2start:]
r2end = tlen - start #calculate end of R2
return record1[start:stop], record2[r2start:r2end] #trim both R1 and R2 three-prime ends based on stop sites


def _split_gen(gen):
gen_a, gen_b = tee(gen, 2)
Expand Down

0 comments on commit 8cc8769

Please sign in to comment.