Comments (3)
I'll take a look at this and submit a PR! Always happy to contribute :) I'll get around to it in a couple of weeks, if that's okay.
from biophi.
Hi @nickbhat there's a function intended for this:
However, looks like the return_all_hiddens
arg is actually ignored :) Do you want to create a pull request by any chance? I'm always happy to get more contributors.
It would be a simple fix here:
Btw, this way we can only get the embeddings, if you also wanted the attention weights, that would require some changes to fairseq
code.
from biophi.
Fixed by #21
Example usage:
from biophi.humanization.methods.sapiens.predict import sapiens_predict_seq
pred, extra = sapiens_predict_seq(
seq=seq, # seq should be the variable region sequence only
chain_type='H', # chain type is H or L
return_all_hiddens=True
)
embeddings_per_layer = extra['inner_states']
from biophi.
Related Issues (20)
- the web server Humanize can't work HOT 2
- Using BioPhi Server to download the result file encountered an error
- Observation and Fix: Sqlalchemy 2.0 Compatibility - Downgrade to Sqlalchemy 1.x
- Error: Invalid sequence for "antibody"
- Specify flask version
- Compatibility with Python 3.9? HOT 4
- Compatibility with SQLAlchemy 1.4.48 HOT 1
- Specify pandas version HOT 1
- unable to use cdr_grafting by BioPhi command-line interface HOT 2
- Error: module 'numpy' has no attribute 'int' HOT 4
- BioPhi failed with HMMscanError: b'Parse failed (sequence file /var/folders/j7/j8sdcdk16nn_ngnyt1nc9vlw0000gn/T/tmpuhcuvvsc.fasta):\nLine 3: illegal character }\n\n' 0it [00:00, ?it/s]
- Add mypy type checks
- Enable cli for humanization cdr grafting
- Allowing humanization to make multiple outputs
- Smaller docker images
- Get humanness from Python script
- how to get raw peptide data(sequence datasets)?
- Integration of additional language models?
- Cannot build docker
- Jobs stay at "waiting in queue" at BioPhi server HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biophi.