-
Notifications
You must be signed in to change notification settings - Fork 25
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
Cant manage to get working with alternative FASTA #13
Comments
Can I second this issue? I want to use this to visualize reads of SARS-CoV-2 with reference MN908947.3 The command:
The error:
|
Looking at the code, this part seems to be source of the error:
Where we can see already that start and end-position take the provided position and shift by 500bp + the given margin (default 50bp) in order to find anything to plot at all. Will have to go back to mine and see whether that applies - certainly not for all which I tested..... |
This still did not work:
I was reading #11 (comment) and finally got bamsnap working for me:
I guess I just need to be wary of the edges. |
Encountered similar issues when drawing short chromosomes and also near chromosome edges. I made some edits in a branch in a fork. (branch cli_margin) An example synthetic fasta sequence and synthetic alignment:
The current version gives IndexError on this data. In the edits, setting When The examples on readthedocs also seem to generate images (sometimes with one base different on the right). Does this seem reasonable? @danielmsk - I'd be happy to send a pull request with this. There is potential these changes may break other things that I may not be aware of. It would be great to get your input. |
This is still an issue and really undermines bamsnap scope and usefulness. |
We added 1000 to the start and subtracted 1000 from the end position and I really really hate that this worked. |
I was eager to try your tool and the examples in the repository work well.
I tried directly plotting from your examples as well as re-alignment (minimap2) on hg38 with subsequent plotting.
In that case both without and with provided fasta sequence worked.
Whenever I try though to use a non-human reference genome, I get an error :
In order to assure that is should work I took really headers such as ">sequence1",">sequence2" and so on and verified that reads mapped actually on provided positions but it always gave the same error.
Any hints how to fix that, or plans to add to your test repository some user reference sequences to make it easier to understand what is the proper syntax in that case ?
The text was updated successfully, but these errors were encountered: