GithubHelp home page GithubHelp logo

phdymz / proteinmae Goto Github PK

View Code? Open in Web Editor NEW
8.0 5.0 0.0 40.69 MB

Official PyTorch implementation of "ProteinMAE: Masked Autoencoder for Protein Surface Self-supervised Learning".

Python 94.51% Cuda 4.93% C++ 0.56%

proteinmae's Issues

How to get the whole protein embedding?

Hi~thanks for your nice model. I am trying to get the embedding of a whole protein from the pretrained model, but i'm little confused about which part i should take, do you have any suggestions? Thanks. @phdymz

Code Release

Hi, thank you for your work! This is an inspiring project and I really wonder when it will be open-sourced. I would really appreciate it if you can also release your code for training downstream tasks. Best wishes!

wrong boolean actions in arguments.py

Arguments.py seems taken from the dMaSIF code, which had the same issue. In Argsparse, setting type=bool and default=True does not give what you initially expect. Eg, you cannot turn off the search using --search False. This could have implications on how the model was trained too?

Example:

args.py

import argparse
parser = argparse.ArgumentParser(description="Network parameters")  
parser.add_argument(
    "--search_wrong",
    type=bool,
    default=True,
    help="Predict matching between two partners",
)  
parser.add_argument(
    "--search_wrongFalse",
    type=bool,
    default=False,
    help="Predict matching between two partners",
)
parser.add_argument('--search_right', action=argparse.BooleanOptionalAction)  

test.py

from args import parser

# Parse the arguments
args = parser.parse_args()
print('search wrong, set to True in args.py')
print(args.search_wrong)
print('search_right, set as boolean action in args.py')
print(args.search_right)

Run python test.py
search wrong, set to True in args.py
True
search wrongFalse, set to False in args.py
False
search_right, set as boolean action in args.py
None

Run python test.py --search_wrong False --search_wrongFalse True --search_right
search wrong, set to True in args.py
True
search wrongFalse, set to False in args.py
True
search_right, set as boolean action in args.py
True

Run python test.py --search_wrong False --search_wrongFalse True --no-search_right
search wrong, set to True in args.py
True
search wrongFalse, set to False in args.py
True
search_right, set as boolean action in args.py
False

The only flag that gives exactly what you think it would is --search_right vs --no-search_right. It also works if you set the flag as boolean with False as default, but that is not the case in the current Arguments.py.

Could you update the README with an example with input proteins and ligands?

Hello,
From the README, it is not clear how to supply a protein or a list thereof for training/inference. Could you clarify:

  • how to supply inputs (proteins for --site, protein pairs for --search)
  • the format of those inputs (pdb file, or processed tensor? If tensor, how to preprocess the -I suppose- pdb input?)

Thank you, the software looks promising!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.