This is not exactly what I wanted to do.
From the pangenome of these 151 genomes I found that this pangenome is of the open type, so there are sequences that are not present in the reference strain. I want to complete the reference sequence with the new sequences which are not present in the reference strain.
You are reaching into the realm of genome graphs, a single space representing multiple genomes Look into the vg toolkit, cactus alignment and pggb It will require new whole genome alignments in order to generate the graph (cactus and pggb) which can then be used by vg in order to use the graph in pangenome analyses