-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fasta Viewer Imported Into React App Issue #53
Comments
Dear @g12342jn, It does seem as though CSS is not being picked up. How are you importing JavaScript and CSS files? It's usually either
This will help me to further troubleshoot. Regarding your second question, there's a suite of components underneath the hood. Unfortunately there is no documentation at the moment. But you might want to use the Alignment component, which the FastaViewer component you are using mounts as a child component... see: https://github.com/veg/alignment.js/blob/master/src/app/FASTA.jsx. You'd then have to write your own logic for how to get FASTA down to that component in your own parent component. Best, |
Hello Stephen, I used: I think this defaults to webpack version 5, but that did not appear to play nicely, so I knocked it down to webpack version 4.44.2 by updating the package.json file line: If you need any further information, please let me know and thanks again for the assistance. Regards, |
Dear Greg, Thanks. It's been a while since I've used create-react-app, but I could use a refresher. You'll probably need to go with SASS integration: and I need to make sure that all the relevant FWIW I do try to make my JavaScript libraries agnostic to Webpack (or any bundler for that matter) by only Babeling React's JSX. However, it's been a while since I've done a release, so this issue is super helpful for me... with web technologies constantly changing, it's great to hear how users are trying to use this library in 2022. Best, |
Stephen, Thanks for the SASS integration info, I will test this out. Would you be able to hop on a Google Meet this afternoon or some time this week? On there I can provide some additional information into this issue. I would also like to discuss exactly what I am trying to accomplish using alignment.js. Thanks Again, |
Stephen, My current question pertains to the loadFNA function, under ../src/app/FNA.jsx:
I am interested in pulling out the .tree data so I can use it with the Tree component, however I noticed a difference in the returned object before and after the setState call in the function listed above: I am wondering why the same call to the same data would produce two different results, I must be missing something and I am having trouble finding it. Would you be able to point me to where/why this might be occurring? Your assistance with this is much appreciated. Thanks, |
Dear Greg, That actually occurs when
I'm glad you're interested in this package and would be happy to jump on a call. Please feel free to reach out at [email protected]. Best, |
Hello,
I am currently testing the use of MSA Viewers for the use in a react application.
After importing alignment.js to throw away project for testing, the view appears like this:
If I import the sample CD2.fasta data that is included in this repo, I then see this:
Could this be some css/stylization issue after importing?
I am also looking for some functionality where I can pass in a FASTA file as a prop to this component instead of allowing a user to do this via the import button. Is this possible?
Thanks,
Greg
The text was updated successfully, but these errors were encountered: