tyang816 / protssn Goto Github PK
View Code? Open in Web Editor NEWFusion of protein sequence and structural information, using denoising pre-training network for protein engineering (zero-shot).
License: MIT License
Fusion of protein sequence and structural information, using denoising pre-training network for protein engineering (zero-shot).
License: MIT License
您好,我想了解一下文件src\utils\dataset_utils
里面的dataset_argument_、NormalizeProtein以及get_stat函数,尤其是后面两个。里面提到了一个mean_attr.pt
文件。我想知道的是这个文件是怎么来的呢?不同的dataset用的是一样的吗?可以帮忙解释一下吗?
谢谢!
Hi,
Excellent work! I am reading ProtSSN and trying to use it, but I have a few questions:
Congratulations again on your work!
Best regards
Hi,
Thanks for your code, and model.
Just a freindly notice, it seems that torch_geometric update some functions. The function "propagate" in the egnn_pytorch_geometric.py file doesn't work properly, and have an error message: "too many values to unpack (expected 2)".
I got this error when I used version 2.5.2, but your code worked well after downgrade to 2.3.0.
Best,
Yuxuan
python zeroshot_predict.py --gnn_model_name k20_h512 --mutant_dataset_dir data/mutant_example/no_exp --result_dir result/no_exp
--------------- ProtSSN k20_h512 ---------------
Processing...
Processing A0A5J4FAY1_MICAE: 100%|████████████████████████████████████████████████████████| 1/1 [00:02<00:00, 2.10s/it]
Total proteins: ['A0A5J4FAY1_MICAE']
Wrong proteins: []
Processing A0A5J4FAY1_MICAE.pt: 100%|█████████████████████████████████████████████████████| 1/1 [00:00<00:00, 61.59it/s]
Done!
Protein names: ['A0A5J4FAY1_MICAE']
Number of proteins: 1
k20_h512 Number of trainable parameter: 148.10M
Traceback (most recent call last):
File "/home/structure/ProtSSN-master/zeroshot_predict.py", line 183, in
predict(args=args, plm_model=plm_model, gnn_model=gnn_model, loader=mutant_loader)
File "/home/structure/ProtSSN-master/zeroshot_predict.py", line 81, in predict
mutant_df[args.score_name] = mutant_df[args.mutant_pos_col].apply(
File "/home/miniconda/envs/gpu9/lib/python3.9/site-packages/pandas/core/series.py", line 4757, in apply
return SeriesApply(
File "/home/miniconda/envs/gpu9/lib/python3.9/site-packages/pandas/core/apply.py", line 1209, in apply
return self.apply_standard()
File "/home/miniconda/envs/gpu9/lib/python3.9/site-packages/pandas/core/apply.py", line 1289, in apply_standard
mapped = obj._map_values(
File "/home/miniconda/envs/gpu9/lib/python3.9/site-packages/pandas/core/base.py", line 921, in _map_values
return algorithms.map_array(arr, mapper, na_action=na_action, convert=convert)
File "/home/miniconda/envs/gpu9/lib/python3.9/site-packages/pandas/core/algorithms.py", line 1814, in map_array
return lib.map_infer(values, mapper, convert=convert)
File "lib.pyx", line 2926, in pandas._libs.lib.map_infer
File "/home/structure/ProtSSN-master/zeroshot_predict.py", line 82, in
lambda x: label_row(x, seq, out.cpu().numpy(), offset)
File "/home/structure/ProtSSN-master/zeroshot_predict.py", line 45, in label_row
assert sequence[idx] == wt, f"The {row}, {sequence[idx]}"
AssertionError: The A5V, V
I met a problem when i testing the pre-train part of your code. I use: bash script/run_pt.sh. to follow your Start Training part in README, and find that the process is blocked at the Epoch 1 /100. Eventually the process will be forcibly killed. I also tried to interrupt the process and found that it stuck at reading the length of dataloader. I wonder if this is due to hardware requirements that don't support pre-training(using RTX 3090), and looking forward to your reply very much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.