-
Notifications
You must be signed in to change notification settings - Fork 19
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
Issue 91 #92
base: master
Are you sure you want to change the base?
Issue 91 #92
Conversation
Hi @tnrich see my comments regarding the logs and running test locally in the command line. If you think the use-case is not relevant I can remove them from the PR. Regarding In this case clearly yes // in helperComponents/AddOrEditPrimerDialog/index.js
const { allBasesWithMetaData } = getStructuredBases({
annotationRange: { start: start - 1, end: end - 1 },
forward,
bases: basesToUse,
start: start - 1,
end: end - 1,
fullSequence: sequenceData.sequence,
primerBindsOn,
sequenceLength
}); In this second one, is there a case where annotation.start and annotationRange.start are different and what would it mean in a primer? // RowItem/StackedAnnotations/primerBases.js
export function getBasesToShow({
hidePrimerBases,
annotation,
annotationRange,
charWidth,
bpsPerRow,
fullSequence,
iTree,
sequenceLength
}) {
if (hidePrimerBases) return {};
const basesToShow = {};
if (annotation && annotation.bases) {
const fudge = charWidth - realCharWidth;
const { forward, primerBindsOn } = annotation;
const { basesNoInsertsWithMetaData, inserts, aRange } = getStructuredBases({
...annotation,
fullSequence,
annotationRange,
sequenceLength
}); |
@manulera annotationRange is used when an annotation spans multiple rows. Try changing to this:
And you'll see how your changes aren't quite rendering correctly across rows: I think you'll need to try a slightly different tweaking of the code there that preserves at least some of the annotationRange logic. |
@manulera any luck updating the code based off my comment ? |
Hi @tnrich I was hoping to get this done before the holidays, but I did not manage to slot it in. Will get back to you eventually. |
Hi @tnrich, working on this for #91. First 2 commits include:
getStructuredBases
to handle origin-spanning primerscy.task('log', 'message')
. I can revert this if you want, I used it for debugging the test.