Skip to content

Improve "not defined in the header" messages#2007

Open
daviesrob wants to merge 1 commit into
samtools:developfrom
daviesrob:missing-headers
Open

Improve "not defined in the header" messages#2007
daviesrob wants to merge 1 commit into
samtools:developfrom
daviesrob:missing-headers

Conversation

@daviesrob
Copy link
Copy Markdown
Member

Make the FILTER and INFO variants report the location (ref + pos) where the missing tag was found, to make the problem record easier to find. The FORMAT variant already did this. The Contig one is also not changed as it already reports the reference name (which will be the missing one...) and the position isn't very important in that case.

For all cases, add an extra message noting that processing a file with missing headers may fail. This will only be printed once for each affected file.

Make the FILTER and INFO variants report the location (ref + pos)
where the missing tag was found, to make the problem record easier
to find.  The FORMAT variant already did this.  The Contig one
is also not changed as it already reports the reference name (which
will be the missing one...) and the position isn't very important
in that case.

For all cases, add an extra message noting that processing a file
with missing headers may fail.  This will only be printed once
for each affected file.

Signed-off-by: Rob Davies <rmd+git@sanger.ac.uk>
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.

1 participant