Closed songtaogui closed 3 years ago
Ops, I just found that I was running python3, after changing to python2, bz2 file works just fine.
@songtaogui Python 3 is supposed to work, so this seems a bug, reopening.
@songtaogui Thanks for the detailed bug report, it was very helpful! #70 should fix all the issues you mentioned.
I think bzip-table
was developed on https://bitbucket.org/james_taylor/seek-bzip2 but the repo is gone after BitBucket discontinued Mercurial support in August.
I restored seek-bzip2 from a backup, converted it to git, and have created it on github as https://github.com/galaxyproject/seek-bzip2/
Hi,
I have noticed that bx-python supports maf files compressed with
bzip2
orlzop
. But when practicing, I have encountered some errors:For example, I would like to build index from compressed maf file with maf_build_index.py: When dealing with bzip2, the script suggested that a bz2t should be created with
bzip-table
https://github.com/bxlab/bx-python/blob/1731099ac7e358eb2eced5a02bd4c96ee3c366f0/scripts/maf_build_index.py#L32-L33
However, I could not find tool with the exact name "bzip-table", the most similar one was
seek-bzip-table
cmd in seek-bzipAnd after generating the bz2t file with seek-bzip-table, the build index step failed with error of:
And I could not figure out how to solve this. So I just move to test the lzo compressed MAF, but I was also stucked at generating
lzop
table with lzop_build_offset_table.py :It seems the header of my lzo file did not match with the MAGIC string of
lzop_build_offset_table.py
, but the test.maf.lzo file could be normally manipulated withlzop
.So how could I dealing with compressed MAF files ? My real goal is to use
maf_extract_ranges_indexed.py
to extract subsets from compressed maf files.Best wishes,
Songtao Gui