tskit 1.0.0b2__cp313-cp313-win_amd64.whl → 1.0.1__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
tskit/text_formats.py CHANGED
@@ -119,6 +119,7 @@ def write_nexus(
119
119
  include_alignments,
120
120
  reference_sequence,
121
121
  missing_data_character,
122
+ isolated_as_missing=None,
122
123
  ):
123
124
  # See TreeSequence.write_nexus for documentation on parameters.
124
125
  if precision is None:
@@ -154,6 +155,7 @@ def write_nexus(
154
155
  alignments = ts.alignments(
155
156
  reference_sequence=reference_sequence,
156
157
  missing_data_character=missing_data_character,
158
+ isolated_as_missing=isolated_as_missing,
157
159
  )
158
160
  for u, alignment in zip(ts.samples(), alignments):
159
161
  print(2 * indent, f"n{u}", " ", alignment, sep="", file=out)
@@ -196,6 +198,7 @@ def write_fasta(
196
198
  wrap_width,
197
199
  reference_sequence,
198
200
  missing_data_character,
201
+ isolated_as_missing=None,
199
202
  ):
200
203
  # See TreeSequence.write_fasta for documentation
201
204
  if wrap_width < 0 or int(wrap_width) != wrap_width:
@@ -208,6 +211,7 @@ def write_fasta(
208
211
  alignments = ts.alignments(
209
212
  reference_sequence=reference_sequence,
210
213
  missing_data_character=missing_data_character,
214
+ isolated_as_missing=isolated_as_missing,
211
215
  )
212
216
  for u, alignment in zip(ts.samples(), alignments):
213
217
  print(">", f"n{u}", sep="", file=output)