mccannj9 / ace-kit

Parsing and analysis of ace files in python
MIT License
1 stars 1 forks source link

in create_seqlogo_dataframe seqlen = len(sequences[0]) IndexError: list index out of range #17

Open kavonrtep opened 4 years ago

kavonrtep commented 4 years ago

python start.py -a /mnt/raid/users/tmp/rypos/seqclust/clustering/clusters/dir_CL0014/contigs.ace -o tmp`

CL14Contig48 CL14Contig79 CL14Contig173 CL14Contig334 CL14Contig432 Traceback (most recent call last): File "start.py", line 52, in results_dict, all_reads = finder.fit() File "/mnt/raid/users/petr/workspace/ace-kit/kit/finder.py", line 33, in fit self.generate_output_for_boundaries(cands, derivs) File "/mnt/raid/users/petr/workspace/ace-kit/kit/finder.py", line 48, in generate_output_for_boundaries boundary.set_logo(save=logo_out) File "/mnt/raid/users/petr/workspace/ace-kit/kit/contig.py", line 315, in set_logo df = create_seqlogo_dataframe(seqs) File "/mnt/raid/users/petr/workspace/ace-kit/kit/utils.py", line 58, in create_seqlogo_dataframe seqlen = len(sequences[0]) IndexError: list index out of range

I had to add txt suffix to ace file to be able to upload it to github:

contigs.ace.txt

mccannj9 commented 4 years ago

Sorry, I didn't see this before. I think this function has been changed since I stopped using the start.py script. I should probably remove this script from the directory.