I follow the tutorial to build index for each chromosome. This saves memory when build index. However, my pc run out of memory when building xg index even in this case. Is it possible to split chromosome into smaller fragments to further save memory when build xg and gcsa index? How to specify this in the -R option of vg construct?
I have tried to index various chromosome sets.
Memory usage: 2.53022 GB
.Memory usage: 13.3299 GB
.Memory usage: 22.9164 GB
.Memory usage: 23.5126 GB
.The memory usage will increase when more chromosome is included.
I use
vg construct --region chrom:start-end
to restrict graph to a chromosome region.