The original had a problem when reference fasta entries had names with spaces. Biopython sets the id to the first element.
Also, I ran into a problem when I had hidden directories in the target_contigs folder (running in a container, so maybe that was a problem?), so I changed it to only use directories that didn't start with a period.
The original had a problem when reference fasta entries had names with spaces. Biopython sets the id to the first element. Also, I ran into a problem when I had hidden directories in the target_contigs folder (running in a container, so maybe that was a problem?), so I changed it to only use directories that didn't start with a period.