Open Oliwans opened 1 year ago
Hi @Oliwans sorry for the delayed response. You're hitting up against a part of the code that isn't very well documented and hasn't been used by anyone outside of Teselagen as far as I know. I've just added some functionality that should allow you to use the built in alignmentTool:
To use that functionality you'll need to pass a prop to the <Editor/>
like so:
<Editor
handleAlignment={async function handleAlignment({
sequencesToAlign,
isPairwiseAlignment,
isAlignToRefSeq
}) {
//your logic here
...
//return an object like:
return {
//one of the following should be defined depending on the type of alignment you're doing:
alignedSequences //should conform to the documented alignmentData object type
pairwiseAlignments
alignmentsToRefSeq
}
}}
/>
Lemme know if that works for you.
Hello, I read the documentation carefully and found out that the documentation uses
window.createAlignmentView
to create a sequence alignment.I use react to develop and use the tag to display the sequence. If I want to use the sequence Alignment function, I saw the demo and checked the source code, but I still don't know how to use it in react? Click the button in the picture below, where should the method triggered by it be written? The following is my code example, but it doesn’t work,I hope to use some fake data, just show it, and I will use other tools to generate real data, thank you!