Skip to content

Commit

Permalink
Merge pull request #16822 from martenson/231-tostring
Browse files Browse the repository at this point in the history
[23.1] backport of pysam tostring
  • Loading branch information
mvdbeek authored Oct 9, 2023
2 parents f3fdd8b + f15c4c4 commit fba2605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/datatypes/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fba2605

Please sign in to comment.