Skip to content

Cannot generate output files with juicebox_assembly_converter.py #32

@mixiaoluo88

Description

@mixiaoluo88

Hi,
I tried to use the juicebox_assembly_converter.py script to generate the fasta file, but there seems to be something wrong in the assembly file to prevent this process.

The assembly file was generated from Juicerbox_1.11.08.

here is the command line:
python juicebox_assembly_converter.py -a new_assembly_file -f cx_geno.fasta

Processing assembly file. Details:
Assembly:                       new_assembly_file
Fasta:                         cx_geno.fasta
Output prefix:                  new_assembly_file
Contig mode:                    False
Simple Chromosome Names:        False

Reading sequences from cx_geno.fasta...
.
Sequences read

Reading .assembly file new_assembly_file...
.assembly read

Traceback (most recent call last):
  File "/home/20092008/software/juicebox_scripts/juicebox_scripts/juicebox_assembly_converter.py", line 872, in <module>
    processed_assembly = JuiceboxConverter().process(fasta, assembly,
  File "/home/20092008/software/juicebox_scripts/juicebox_scripts/juicebox_assembly_converter.py", line 91, in process
    sequences = self._add_breaks(sequences, assembly_map)
  File "/home/20092008/software/juicebox_scripts/juicebox_scripts/juicebox_assembly_converter.py", line 255, in _add_breaks
    assembly_map.sort(key=functools.cmp_to_key(cmp_assembly_map_entries))
  File "/home/20092008/software/juicebox_scripts/juicebox_scripts/juicebox_assembly_converter.py", line 331, in cmp_assembly_map_entries
    names1 = extract_contig_info(frag1[0])
  File "/home/20092008/software/juicebox_scripts/juicebox_scripts/juicebox_assembly_converter.py", line 368, in extract_contig_info
    names["index"] = int(frag_fiel
[cx_geno_hic.final.review.assembly.txt](https://github.com/phasegenomics/juicebox_scripts/files/7834628/cx_geno_hic.final.review.assembly.txt)
ds[-1].replace("fragment_", ""))
ValueError: invalid literal for int() with base 10: '122:prefix'

cx_geno_hic.final.review.assembly.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions