diff --git a/lib/galaxy/datatypes/binary.py b/lib/galaxy/datatypes/binary.py index 022631195215..c15b2213a94c 100644 --- a/lib/galaxy/datatypes/binary.py +++ b/lib/galaxy/datatypes/binary.py @@ -664,9 +664,9 @@ def get_chunk(self, trans, dataset: HasFileName, offset: int = 0, ck_size: Optio break offset = bamfile.tell() - bamline = alignment.tostring(bamfile) + bamline = alignment.to_string() # With multiple tags, Galaxy would display each as a separate column - # because the 'tostring()' function uses tabs also between tags. + # because the 'to_string()' function uses tabs also between tags. # Below code will turn these extra tabs into spaces. n_tabs = bamline.count("\t") if n_tabs > 11: