Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated sequences in reference fasta #42

Open
robbueck opened this issue Nov 29, 2024 · 0 comments
Open

Duplicated sequences in reference fasta #42

robbueck opened this issue Nov 29, 2024 · 0 comments

Comments

@robbueck
Copy link

Some taxa have duplicated sequences in the fasta, thus you get an error like this from samtools:

[W::sam_hdr_create] Duplicated sequence "QJKH01000049.1" in file "/tmp/panphlan_wrzoniqg.sam"
[E::sam_hrecs_update_hashes] Duplicate entry "QJKH01000001.1" in sam header
samtools view: failed to add PG line to the header
[W::hts_set_opt] Cannot change block size for this format
samtools sort: failed to read header from "-"
samtools index: "panphlan/output/Dielma_fastidiosa/map_results/SRR14117082_Dielma_fastidiosa_out.bam" is in a format that cannot be usefully indexed
[E] Samtools index encountered some error.

fixed by removing duplicated sequences with seqkit rmdup -n
I had this issue for the genomes of: Cutibacterium_acnes, Roseburia_intestinalis, Olsenella_uli, Acinetobacter_ursingii, Actinomyces_naeslundii, Dialister_pneumosintes, Peptoniphilus_lacrimalis and Dielma_fastidiosa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant