We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The global_evaluation of the UniquifyAllKmers Specification does not find repeated kmers at the end of the sequence.
For instance, the following code results in a score of 0 (no kmers of size 10 repeated):
sequence = 'AGTTCCCGGTCACCTGAGCTCCGGGTGACGCGGCTGCGGTAGCATGGCGTCCCTCTTCAGTTCCCGGT' problem = DnaOptimizationProblem(sequence=sequence, constraints=[UniquifyAllKmers(k=10)]) for evaluation in problem.constraints_evaluations(): print(evaluation.score)
However, the kmer AGTTCCCGGT is repeated, at the beginning and end of the sequence.
Suggested solution:
DnaChisel/dnachisel/builtin_specifications/UniquifyAllKmers.py
Line 230 in db5ddb0
for i in range(start, end - self.k + 1):
Line 241 in db5ddb0
and (self.location.start <= start_ < end_ <= self.location.end)
The text was updated successfully, but these errors were encountered:
Fix #95
7f7bb09
Many thanks for bringing attention to this and for the proposed solution. I managed to reproduce it and also implemented the change.
Sorry, something went wrong.
No branches or pull requests
The global_evaluation of the UniquifyAllKmers Specification does not find repeated kmers at the end of the sequence.
For instance, the following code results in a score of 0 (no kmers of size 10 repeated):
However, the kmer AGTTCCCGGT is repeated, at the beginning and end of the sequence.
Suggested solution:
DnaChisel/dnachisel/builtin_specifications/UniquifyAllKmers.py
Line 230 in db5ddb0
change to:
for i in range(start, end - self.k + 1):
DnaChisel/dnachisel/builtin_specifications/UniquifyAllKmers.py
Line 241 in db5ddb0
change to:
and (self.location.start <= start_ < end_ <= self.location.end)
The text was updated successfully, but these errors were encountered: