Skip to content

Conversation

@jamestwebber
Copy link
Contributor

This PR closes #199 (I hope). As described in the issue, various longbow commands were failing when reading from stdin. This PR changes load_model() to expect an open pysam.AlignmentFile rather than a stream or filename, and moves the call inside the with statement where the file is being read (which is almost always what happens immediately after loading a model from a BAM file).

This should be okay to do, as the model is stored in the header if at all, and so load_model will only consume the first piece of the stream and none of the reads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pysam output issue

1 participant