annotation using ChIPseeker package error
that was solved by changing seq level:
newnames &lt;- paste0(c(&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;, &quot;5&quot;,&quot;6&quot;,&quot;7&quot;, &quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;,&quot;20&quot;,&quot;21&quot;,&quot;22&quot;,&quot;X&quot;,&quot;Y&quot;,&quot;MT&quot;))
names(newnames) &lt;- paste0(c(&quot;NC_000001.11&quot;,&quot;NC_000002.12&quot;,&quot;NC_000003.12&quot;,&quot;NC_000004.12&quot;, &quot;NC_000005.10&quot;,&quot;NC_000006.12&quot;,&quot;NC_000007.14&quot;, &quot;NC_000008.11&quot;,&quot;NC_000009.12&quot;,&quot;NC_000010.11&quot;,&quot;NC_000011.10&quot;,&quot;NC_000012.12&quot;,&quot;NC_000013.11&quot;,&quot;NC_000014.9&quot;,&quot;NC_000015.10&quot;,&quot;NC_000016.10&quot;,&quot;NC_000017.11&quot;,&quot;NC_000018.10&quot;,&quot;NC_000019.10&quot;,&quot;NC_000020.11&quot;,&quot;NC_000021.9&quot;,&quot;NC_000022.11&quot;,&quot;NC_000023.11&quot;,&quot;NC_000024.10&quot;,&quot;NC_012920.1&quot;))

peaks_with_new_seq_level &lt;- renameSeqlevels(peaks_with_old_seq_level,newnames)```