Skip to content

chep_plot IndexError: string index out of range #2

@warthmann

Description

@warthmann

Hello,
I have provided chep_pileup_to_array with a fasta file and a bam file with illumina reads aligned to said genome fasta file. It ran fine as per example in your README and produced chep_3D.txt. Feeding this into chep_plot, however, again as per example, has issues. First it complained that it wanted a -g and -o, providing this then led to the error below. I hope you can point me in the right direction. My genome has 33 chromosomes, labeled chr01..chr33. Thank you very much!
I am using Python 3.12.6, samplot 1.21, snakemake 8.20.5, seaborn 0.13.2, bedtools 2.31.1, pandas 2.2.3

(chep) norman@Workstation:~/chep-analysis-for-heterozygosity$ chep_plot -f chep_3D.txt -x 0 -X 200 -d \
> -g genome_plus_chloroplast.fa \
> -o test

Traceback (most recent call last):
File "chep_plot", line 380, in
sys.exit(main(args))
^^^^^^^^^^
File "chep_plot", line 366, in main
genome_size = get_genome_size(args["genome"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "chep_plot", line 361, in get_genome_size
if line[0] != ">":
~~~~^^^
IndexError: string index out of range

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