Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider OffTargetDetector._to_amplicons specifying alignment strand for primer pairs #76

Open
ameynert opened this issue Oct 28, 2024 · 1 comment

Comments

@ameynert
Copy link

If the primer pair is oriented with the left primer on the positive strand and right primer negative, the amplicon span should have Strand.POSITIVE.

GGTCCAGTTCAAGTGCTGGGAGAGCATCCTCCACAAGGTCTAGTGGTATGGTGGT
L>>>>>>>>>>                                                                                    <<<<<<<<<<R

If the primer pair is oriented with the left primer on the negative strand and the right primer positive, the amplicon span should have Strand.NEGATIVE.

ACCACCATACCACTAGACCTTGTGGAGGATGCTCTCCCAGCACTTGAACTGGACC
R>>>>>>>>>>                                                                                    <<<<<<<<<<L

(randomly generated sequence used as example).

@clintval
Copy link
Member

clintval commented Oct 30, 2024

I would support this

From what I can tell, when generating an amplicon span from a PrimerPair, we inherit the strand of the primers during replacement of the end property of the left primer span:

return replace(self.left_primer.span, end=self.right_primer.span.end)

But we don't account for strand when generating an amplicon span from a pair hit:

amplicons.append(Span(refname=plus.refname, start=plus.start, end=minus.end))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants