Closed ghost closed 3 years ago
Haven't tried it but that's possibly the same issue as the previous one: you are using biopython's FeatureLocation
class instead of DnaChisel's Location
.
Haven't tried it but that's possibly the same issue as the previous one: you are using biopython's
FeatureLocation
class instead of DnaChisel'sLocation
.
the related issue was solved by using DnaChisel's Location
. However, using it here (for EnforcePatternOccurence
) doesn't work!
Sorry for this @FadiBakoura , this spec uses a special algorithm. It works for strand=1, but you must be the first in a long time to try it for strand=-1 and it doesn't have a test for that value :disappointed:.
@veghp I can't test it right now but my best guess is that the faulty line should read lend - i - 1
? Really hope that one won't be a headache :crossed_fingers: :smile:
Thanks! That solves the problem apparently, but I will have to review the logic flow to make sure everything is okay. This is a separate issue but for example if I specify no location, then there is error because in https://github.com/Edinburgh-Genome-Foundry/DnaChisel/blob/9c72428ae822c1e5afba480232158e604c355699/dnachisel/builtin_specifications/EnforcePatternOccurence.py#L67 from_data() returns a None
as location, and a value is assigned to its attribute in: https://github.com/Edinburgh-Genome-Foundry/DnaChisel/blob/9c72428ae822c1e5afba480232158e604c355699/dnachisel/builtin_specifications/EnforcePatternOccurence.py#L73
related to #51