-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Feature Request] Internally assigning Z for HMM
class
#57
Comments
HMM
class
I've found an easy workaround with: with HMMFile(hmmdb) as hmm_file:
hmms = list(hmm_file)
Z_val = len(hmms) but I'll still keep the issue open since an attribute for the class might make it more intuitive. Also, correct me if I'm wrong, but can we pass the Z_val and bit_cuttoffs to pyhmmer.hmmer.hmmsearch as follow:
Not sure because I couldn't find it anywhere in the documentation. I could only find inputs of Z and bit_cutoff in Thanks! |
Unfortunately I this cannot be done in PyHMMER, because I'm wrapping the original HMMER implementation and HMM file format, so I cannot change what is getting serialized and stored in there. I would recommend that you just store the
The big problem here is that you load all HMMs into a list when you're only interested in counting them 😉 If you need to pre-compute the with HMMFile(hmmdb) as hmm_file:
Z = sum(1 for hmm in hmm_file) |
Oh and regarding this:
The
Which is what happens there; by passing additional keyword arguments, you configure the |
Hello!
Thank you for the awesome and much-needed package.
I wanted to ask if there could be an internal way to determine the Z value or if it can be stored as an internal attribute of the plan7. HMMFile class. For example :
Sometimes I am working with hmm databases where I don't know the z value in advance. I usually find out using
z_score=$(grep -c "NAME" ${input.db})
but it would be nice if it could be easily internally handled!
Best,
Erfan
The text was updated successfully, but these errors were encountered: