esolares / HapSolo

Reduction of Althaps and Duplicate Contigs for Improved Hi-C Scaffolding
GNU General Public License v2.0
19 stars 6 forks source link

Key Error #6

Closed jrhwilson closed 1 year ago

jrhwilson commented 3 years ago

Hi!

I'm trying to run HapSolo on our assembly, and I keep getting this error:

Traceback (most recent call last): File "hapsolo.py", line 835, in WriteNewAssembly(myasmFileName, newasmfilename, mybestnscoreslist[i][1]) File "hapsolo.py", line 790, in WriteNewAssembly myContigPositionsList = myContigsDict[contig] KeyError: 'ptg001066'

I saw you mentioned about differences in generating each contig fasta but I've had a look at the contig and the busco directory and can't seem to see why this would be an issue. Do you know what might be going on?

Thanks

Jonathan

esolares commented 3 years ago

Hi Jonathon,

Just saw this. It looks like it's looking for contig ptg001066 but it doesn't seem to exist in the dictionary. I will look into it.

Again, sorry for the late reply.

Thank you,

Edwin

esolares commented 3 years ago

Hi,

Sorry for the late reply. Could you please update your version of hapsolo and run it again? It should now write a log file that will help me understand what is causing the crash.

Thank you again for your time. I greatly appreciate it.

Thank you,

Edwin Solares