Filter the dissimilarity matrix by IDs.
ids : iterable of str
IDs to retain. May not contain duplicates or be empty. Each ID must be present in the dissimilarity matrix.
DissimilarityMatrix
Filtered dissimilarity matrix containing only the IDs specified in ids. IDs will be in the same order as they appear in ids.