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

get_column_iterator SEGV #66

Open
diekhans opened this issue Aug 23, 2024 · 2 comments
Open

get_column_iterator SEGV #66

diekhans opened this issue Aug 23, 2024 · 2 comments

Comments

@diekhans
Copy link

  1. get https://hgwdev.gi.ucsc.edu/~markd/cactus/bugs/taffy-column_iterator.tar.gz
  2. untar
  3. python taffyplay.py
  4. Segmentation fault

meg9.taf was built with:

  taffy view -i output/meg9.maf -o output/meg9.taf                                
  taffy index -i output/meg9.taf                                                  
 
@glennhickey
Copy link
Contributor

Yeah, looks like there are still some issues regarding errors in the input. The script has two problems:

  • incorrect input file name: meg9.tafy instead of meg9.taf
  • invalid coordinate range:1010643617 + 100. (the range in the file from taffy stats -b is hg38.chr14 101064367 101072358

The first one is triggering the segfault. I guess it's related to a bug in AlignmentReader() where when the taf_index parameter is not set, it's somehow opening the index of test_taf_file[:-1] + '.tai' (which exists) but failing after.

Your work-around is to follw the examples, where the index is passed in via

taf_index = TafIndex(test_taf_file + ".tai", is_maf=False)
with AlignmentReader(test_taf_file, taf_index=taf_index, ...

This way you can give it correct paths for both the taf and .tai file and get an exception for your invalid coordinate.

@diekhans
Copy link
Author

diekhans commented Aug 23, 2024 via email

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