diff --git a/sc2ts/info.py b/sc2ts/info.py index 056c0d6..529732c 100644 --- a/sc2ts/info.py +++ b/sc2ts/info.py @@ -467,7 +467,7 @@ def _preprocess_sites(self, show_progress): self.sites_num_missing_samples = np.zeros(self.ts.num_sites, dtype=int) if self.ts.table_metadata_schemas.site.schema is not None: for site in self.ts.sites(): - self.sites_num_missing_samples[site.id] = site.metadata["missing_samples"] + self.sites_num_missing_samples[site.id] = site.metadata.get("missing_samples", -1) else: warnings.warn("Site QC metadata unavailable")