Reference-guided assembly of metagenomes