-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide the description of an HMM #76
Comments
Hi! I checked and query_length seems to already be in the object. https://pyhmmer.readthedocs.io/en/stable/api/plan7/results.html#pyhmmer.plan7.TopHits.query_length
Hope it helps you. |
Thanks @jpjarnoux for the prompt reply. I amended my initial query above. |
Ok, so a way to do what you want is:
I have not tested this, but I think it works. Obviously, an attribute could be really useful here. |
@jpjarnoux I've just tested it. There is no such attribute |
Hi!
This is not possible for the query. I swear I saw something, but I must have been confused with another thing. |
Thanks @jpjarnoux for the clarification. Unfortunately, I also haven't seen anything close to the query description (the @althonos I'd love to use Pyhmmer for this in Bakta. Hence, would it be possible to add such a query description field |
Hi Oliver, It depends how you are calling the pipeline, but by design the hmmsearch function yields the hits in the same order the HMMs are passed. This means that with the right use of zip and itertools.tee you can get an iterator on both the query HMM and the TopHits:
|
Thanks @althonos for the explanation and sorry for being so persistent on this, but wouldn't it be much easier for Pyhmmer users to simply provide the HMM description in the For instance, in v0.10.5, the Or is there maybe a technical reason why some fields ( |
OK, I found an acceptable workaround:
However, I still feel like having a direct access to the Please, feel free to just close this, or leave it upon just in case you consider adding the desc field. Anyway, thank you very much for this great Python wrapper (and many others) - very much appreciated! |
The main problem is that for every field I am reserving more space in each |
That would be awesome, thanks a lot! |
Awesome! Thank you so much! |
I'm making a release now 😄 |
Hi @althonos and many thanks for maintaining and pushing forward this wonderful project!
I just started to use PyHMMER in Bakta for user-provided HMMs. Here, I'd like to provide the users with an option to feed some extra information on each HMM into the pipeline via a custom format for the
description
field in the HMM file.However, there seems no such field in the API of the TopHits object. For
NAME
,ACC
andLENG
there areTopHits.query_name
,TopHits.query_accession
andTopHits.query_length
, respectively.Hence, could you maybe add
TopHits.query_description
for the relatedDESC
?Thanks again!
PS: Just in case I overlooked something, could please point me to the right API object?
The text was updated successfully, but these errors were encountered: