-
Notifications
You must be signed in to change notification settings - Fork 3
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
Upload BLAST output via String dont recognize alignments #12
Comments
i read the README file and converted the BLAST output into a string using JSON.stringify function and fed it to the blasterjs component like so : return ( {/* */} ); |
Hi @Aditya-Upa , I don't remember in the README allow JSON format to input. On the site, the recommendation is outfmt 0 or 5 (XML format) (More details: https://www.ncbi.nlm.nih.gov/books/NBK279684/table/appendices.T.options_common_to_all_blast/). In my code, 'var alignments = {blastResults}' accept the blast output in format descript previously. If you have any questions, send me an email or message. |
Thank you so much! This works ! One last query; can you tell me how to include the html2canvas node module in node_modules/biojs-vis-blasterjs/lib/index.js ? i did it like this : |
Hi @Aditya-Upa , I dont know if necessary using var in index.js. I tried install html2canvas to npm, but dont work. I copied the html2canva.js in node_modules/biojs-vis-blasterjs/lib/ and worked, no need to change any code. Other problem was the BlasterJS package. Was the same steps (Copy .js and move to node_modules/biojs-vis-blasterjs/lib/) If you have any questions, send me an email or message. |
i copied the html2canvas.js in the lib folder. Despite that i am facing the same error as before which is : Call Stack my index.js file in the biojs-vis-blasterjs/lib directory looks like this :
|
Hi @Aditya-Upa , I don't modified index.js. Try install the html2canvas to the NPM (https://html2canvas.hertzen.com/). |
I didn't make any modifications to the index file present in the lib directory of biojs-vis-blasterjs. I deleted the node modules in my next js app and reinstalled all modules including the biojs-vis-blasterjs module and the html2canvas module. I even tried copying https://html2canvas.hertzen.com/dist/html2canvas.js into the lib directory. Neither method worked. I am getting Unhandled Runtime Error |
Hi @abmiguez ,
Congratulations to tool, i utilized in my project and the results so awesome. But i will found the one problem with alignments in 'string option' (Upload BLAST output via String).
In another Issues #8 , i write about the problem, but i create another issue for formality.
Although the results in the input data work perfectly, if you have a file in the back end and use the same file in 'string option', the alignments dont appears.
Below, my code in JS and blast (version 2.12.0 in python), as well the print in my project:
JS:
Blast script:
Image:
I hope this helps, if you have any questions send me an email.
The text was updated successfully, but these errors were encountered: