Skip to content

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Aug 26, 2025

This can cause OOM issues.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

]
dataset.metadata.sort_order = dataset.metadata.bam_header.get("HD", {}).get("SO", None)
dataset.metadata.bam_version = dataset.metadata.bam_header.get("HD", {}).get("VN", None)
with pysam.AlignmentFile(dataset.get_file_name(), mode="rb", check_sq=False) as bam_file:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to approve because your time is valuable and I think you have more important things to work on but I do feel like adding a metadata element to indicate these lists are truncated would be the ideal thing to do in this case so the meaning of these fields is consistent across bam files.

@mvdbeek mvdbeek merged commit 0aa5616 into galaxyproject:release_25.0 Oct 1, 2025
46 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants