Skip to content

Error - Reading Coords - WARNING - Chromosomes IDs do not match. Unequal number of chromosomes in the genomes. #295

Open

Description

@desmodus1984

Hi,

I assembled a genome with PacBio reads, and then my PI asked a company, Cantata Bio, to use Hi-C data to scaffold it. Thus it changes from 203 contigs to 176 scaffolds. Oddly, the company reported 2 breaks and 1 join, which don't match the data since the differences based on the number of contigs/scaffolds it way higher.

I wanted to use syri to identify structural variants, and I first did whole-genome assembly alignment with minimap:
minimap2 -ax asm5 -t 48 -K 10G --eqx final_assembly.fasta /HydLep.f1x.fasta > out.sam
For some reason, minimap2 didn't work at first but somehow I made it work, and I got the output, but then
when running syri, I got the error:
Reading Coords - WARNING - Chromosomes IDs do not match.
Reading Coords - ERROR - Unequal number of chromosomes in the genomes. Exiting

I used this code:
syri -c out.sam -r final_assembly.fasta -q HydLep.f1x.fasta -k -F S --nc 48 --nosnp

Because the company scaffolded the genome and the number of contigs is less they have different names obviously. The names can't and shouldn't be the same.

Any reason why this weird error?

Activity

  1. lrauschning commented on Dec 2, 2025

    @lrauschning
    Collaborator

    Hi @desmodus1984 ,

    sorry for the late answer, for some reason I only got the notification for this issue just now.
    SyRI is a tool for working with chromosome-scale assemblies. I'm assuming your species has fewer than 176 chromosomes, so your assembly is not chromosome scale, and thus SyRI reports the different no of contigs as mismatching chromosomes.
    I'm not sure why the company's scaffolding seems to have been so incomplete; you can try it yourself using GreenHill or AllHiC (if you're working in polyploids) or any of the other tools for this out there if your HiC data is sufficient.
    Otherwise, you may try reference based scaffolding using e.g. RagTag, though be warned that this may overcorrect some structural variants during the scaffolding step in fragmented assemblies like yours.
    Another note of caution, we've observed that minimap2 can behave a bit weirdly in very repetitive and diverse plant genomes. Definitely take a look at your alignments if your species fits that bill, and try playing around with alignment parameters and/or different aligners.

    I hope that helps!

    Cheers,
    Leon

  2. Nitin123-4 commented on Jan 30, 2026

    @Nitin123-4

    Synteny we would like to do based on one reference genome and any other query genome, Whatever is the chromosome/Scaffold ids are. It should Ideally support it. If possible please add support for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions