biopython / biopython/biopython

SearchIO.QueryResult object does not have an 'accession' attribute all the time when parsing hmmer3-text records

Open
#1,060 18 comments 0 reactions 1 assignee Claimed by @bow View on GitHub
Dominant language
Python
Stars
5.2k
Forks
1.9k
Avg merge
2d 6h
Merged PRs (30d)
11

Description

When parsing hmmer3-text records, the `QueryResult` objects returned only have an `accession` attribute when there's an `Accession:` line in the corresponding hmmer file.
This behaviour is at odds with the behaviour on e.g. hmmsearch3-domtab files, where there is always an `accession` attribute on the `QueryResult`, but it may be `-` if not set.

See the zip file below for a reproducer.

[example.zip](https://github.com/biopython/biopython/files/771069/example.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.