Skip to content

Commit

Permalink
start on melt for ssdna
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Feb 11, 2025
1 parent c242259 commit 4e6c3a8
Show file tree
Hide file tree
Showing 6 changed files with 621 additions and 2,641 deletions.
14 changes: 7 additions & 7 deletions src/pydna/crispr.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ class cas9(_cas):
fst5 ===protospacer===-=== fst3
___PAM
___/
5-NNGGAAGAGTAATACACTA-AAANGGNN-3
||||||||||||||||||| ||||||||
3-NNCCTTCTCATTATGTGAT-TTTNCCNN-5
5-..GGAAGAGTAATACACTA-AAANGGNN-3
||||||||||||||||| ||||||||
3-..CCTTCTCATTATGTGAT-TTTNCCNN-5
||||||||||||||||| |||
5-GGAAGAGTAATACACTA-AAAg-u-a-a-g-g Scaffold
5-GGAAGAGTAATACACTA-AAAg-u-a-a-g-g Scaffold in lower case
u-a
u-a
u-a
Expand Down Expand Up @@ -117,16 +117,16 @@ def search(self, dna, linear=True):
if linear:
dna = dna
else:
dna = dna + dna[1 : self.size]
dna = dna + dna[: self.size - 1]

results = []

for mobj in self.compsite.finditer(dna):
w, c = mobj.groups()
if w:
results.append(mobj.start("watson") + self.fst5)
results.append(mobj.start("watson") + self.fst5 + 1)
if c:
results.append(mobj.start("crick") - self.fst3)
results.append(mobj.start("crick") - self.fst3 + 1)

return results

Expand Down
Loading

0 comments on commit 4e6c3a8

Please sign in to comment.