-
Notifications
You must be signed in to change notification settings - Fork 67
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
Visualize Insertion #129
Comments
Hey, thanks for pointing this out. We'll improve handling for this situation where the region is so small. However, samplot doesn't support insertions because they only exist at one reference point as shown here |
Hello, |
@clairemerot @jbelyeu
|
I tried to visualize Insertion (SV). I used SVIM as a sv caller and they give same location for start and end position. Therefore, I can't visualize the insertion. how do i handle it?
samplot plot \
-n SRR8599836
-b samplot/test/new.SRR8599836.md.bam
-o 4_16468301_16468301.png
-c NC_003282.8
-s 16468301
-e 16468301
-t INS
Traceback (most recent call last):
File "/Users/miniconda3/bin/samplot", line 10, in
sys.exit(main())
File "/Users/miniconda3/lib/python3.8/site-packages/samplot/main.py", line 31, in main
args.func(parser)
File "/Users/miniconda3/lib/python3.8/site-packages/samplot/samplot.py", line 3587, in plot
current_axis_idx = create_variant_plot(
File "/Users/miniconda3/lib/python3.8/site-packages/samplot/samplot.py", line 1771, in create_variant_plot
plot_variant(sv, sv_type, ax, ranges)
File "/Users/miniconda3/lib/python3.8/site-packages/samplot/samplot.py", line 1695, in plot_variant
map_genome_point_to_range_points(ranges, sv[0].chrm, sv[0].start),
File "/Users/miniconda3/lib/python3.8/site-packages/samplot/samplot.py", line 150, in map_genome_point_to_range_points
float(point - ranges[range_hit].start)
ZeroDivisionError: float division by zero
The text was updated successfully, but these errors were encountered: