You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should expose a getSource() method at the GATKRead level, and have GATK delegate to samRecord.getFileSource() in the SAMRecord case. We might need to do something extra to get HTSJDK to populate this field for us.
Use case is a ReadsDataSource backed by multiple bam/cram inputs, with the reads merged into a single sorted stream, and the tool needing to be able to tell where each read came from. Can't always use read groups / sample names to accomplish this.
Bug Report
Affected tool(s) or class(es)
SAMRecord
fromGATKRead
Affected version(s)
Description
When I run a tool with a bam file as input, the following code will give me a null:
Output:
(a long list of
null
)Steps to reproduce
Create a ReadWalker that takes in a bam file. Here is an integration test that will replicate the issue:
Expected behavior
Output should be the file used in the read data source (bam file) for each read.
Actual behavior
I get nulls instead
The text was updated successfully, but these errors were encountered: