HI, the reason I am concerned is that
When i generate samtools faidx index of original assembly they look like this
contig_1 21276 10 60 61
contig_102 5361 21653 60 61
contig_103 7061 27116 60 61
contig_104 121625 34307 60 61
contig_105 41647 157972 60 61
contig_106 59630 200326 60 61
contig_107 62762 260962 60 61
contig_11 216926 324782 60 61
contig_110 11781 545336 60 61
contig_111 1667 557326 60 61
contig_112 2011 559033 60 61
when i sort the assembly.fasta via seqkit sort -l -r assembly.fasta > assembly_sort.fasta and then index using samtools the contigs rearrange according to length like this
contig_43 6501589 11 60 61
contig_5 5413231 6609970 60 61
contig_18 5374465 12113433 60 61
contig_2 5140464 17577483 60 61
contig_4 4441101 22803632 60 61
contig_34 4232623 27318763 60 61
contig_28 3504136 31621941 60 61
contig_17 3273534 35184491 60 61
contig_47 3179198 38512595 60 61
contig_32 2708330 41744791 60 61
contig_25 2470542 44498271 60 61
so this made me think i i have to sort the assembled genome, if yes, then before polishing steps or after polishing its also OK ?
If you look, your contigs do appear to be sorted by numerical value, its just not a "natural" sort because the numbers are not to the same significant figures or zero-padded.
As genomax points out though, this rarely matters.
Hi, I understand your point, but if you see the above shared answern this is what i mean.