We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41b54f0 commit 0a9b1eeCopy full SHA for 0a9b1ee
1 file changed
python/tskit/genotypes.py
@@ -338,18 +338,14 @@ def __str__(self) -> str:
338
site_position = util.format_number(self.site.position, sep=",")
339
counts = self.counts()
340
freqs = self.frequencies()
341
+ samples = util.format_number(len(self.samples), sep=",")
342
+ num_alleles = util.format_number(self.num_alleles, sep=",")
343
rows = (
344
[
345
["Site id", f"{site_id}"],
346
["Site position", f"{site_position}"],
- [
- "Number of samples",
347
- f"{util.format_number(len(self.samples), sep=",")}",
348
- ],
349
350
- "Number of alleles",
351
- f"{util.format_number(self.num_alleles, sep=",")}",
352
+ ["Number of samples", f"{samples}"],
+ ["Number of alleles", f"{num_alleles}"],
353
]
354
+ [
355
0 commit comments