Skip to content

IndexError: list index out of range #3

@Asrix

Description

@Asrix

Hi,

I would really like to make this code work, but I am getting IndexError: list index out of range at line 160. I am using python 3.10.8.

My command is:python p2c.py /nobackup/qtwh28/SnowPet/Genome/PenguinGenome/SnowPeng.minimap2.paf /nobackup/qtwh28/SnowPet/Genome/FullAssembly/SNPE_L3_nomito_purged2.np2_HiC_2_scaffolds_final.fa /nobackup/qtwh28/SnowPet/Genome/PenguinGenome/Spheniscus_humboldti.fa /nobackup/qtwh28/SnowPet/Genome/PenguinGenome/input.bed ./Snow_Peng_p2c/ --templates ./

All of my input files look to be properly formatted and complete. The template files haven't been modified, but if I don't include them then I get this error "Exception: ERROR: Invalid template file directory".

WARNING: Directory already exists
Query: /nobackup/qtwh28/SnowPet/Genome/FullAssembly/SNPE_L3_nomito_purged2.np2_HiC_2_scaffolds_final.fa
Reference: /nobackup/qtwh28/SnowPet/Genome/PenguinGenome/Spheniscus_humboldti.fa
Targets: /nobackup/qtwh28/SnowPet/Genome/PenguinGenome/input.bed
PAF: /nobackup/qtwh28/SnowPet/Genome/PenguinGenome/SnowPeng.minimap2.paf
Outdir: /nobackup/qtwh28/SnowPet/Genome/PenguinGenome/Snow_Peng_p2c
Templates: /nobackup/qtwh28/SnowPet/Genome/PenguinGenome
s: Spheniscus_humboldti.fa
Traceback (most recent call last):
File "/nobackup/qtwh28/SnowPet/Genome/PenguinGenome/p2c.py", line 472, in
main()
File "/nobackup/qtwh28/SnowPet/Genome/PenguinGenome/p2c.py", line 463, in main
targets_to_plot = readTargets(iFH.targets, correspondance, contigs_lengths)
File "/nobackup/qtwh28/SnowPet/Genome/PenguinGenome/p2c.py", line 160, in readTargets
start = int(s[1])
IndexError: list index out of range

Any ideas on what I should fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions