Skip to content
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

Error when using simulated reads from ecSimulator #18

Open
uretaj opened this issue Feb 28, 2024 · 1 comment
Open

Error when using simulated reads from ecSimulator #18

uretaj opened this issue Feb 28, 2024 · 1 comment

Comments

@uretaj
Copy link

uretaj commented Feb 28, 2024

Hi,

I'm getting this error whenever I try to use simulated reads from ecSimulator

$ /CycleViz/CycleViz.py --ref GRCh38 --cycles_file test_amplicon1_BPG_converted_cycles.txt --cycle 1 -g est_amplicon1_graph.txt --rotate_to_min --figure_size_style small

CycleViz 0.1.10 Using resources in CycleViz/resources/ Plots will use reference hg38 Using figure_size_style=small Bar width scaled up 1.5x to 1.05 Gene fontsize scaled up 2x to 14 Tick fontsize scaled up 1.5x to: 6.0 checking adjacency plotting structure Reading genes plotting genes Traceback (most recent call last): File "/CycleViz/CycleViz.py", line 1418, in <module> plot_bpg_connection(ref_placements, total_length, prev_seg_index_is_adj, bpg_dict, seg_end_pos_d) File "/CycleViz/CycleViz.py", line 106, in plot_bpg_connection bpg_dict, seg_end_pos_d) File "/CycleViz/VizUtil.py", line 294, in pair_is_edge rObj1_end = seg_end_pos_d[a_id][-1] if a_dir == "+" else seg_end_pos_d[a_id][0] KeyError: '14'

@jluebeck
Copy link
Member

Hi,

Thanks for sending this error. The cause is likely because you shouldn't use the BPG-converted version of the cycles file when using input from ecSimulator, simply use the simulated graph and cycles files as given in that case.

I plan to simplify this process in the future to avoid confusion.

Thanks and sorry for the confusion!
Jens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants