GithubHelp home page GithubHelp logo

Comments (4)

dauparas avatar dauparas commented on July 3, 2024

Yes, have a look at this helper script -https://github.com/dauparas/ProteinMPNN/blob/main/helper_scripts/make_tied_positions_dict.py You can pass your own custom dictionary via--tied_positions_jsonl flag.

#One dictionary inside the list specifies one symmetry between residues, the example below has two dictionaries which would tied residues
#A:1, B:1, C:1 together and also independently tie C:1, D:1, E:1 together. 
{"my_protein_name": [{"A": [1], "B": [1], "C": [1]}, {"D": [1], "E": [1], "F": [1]}]}
#One can also specify multiple residues from the same chain, e.g. 
{"my_protein_name": [{"A": [1,4,9], "B": [1], "C": [1]}]}
#in this case residues A:1,4,9, B:1, C:1 will be tied together.```

from proteinmpnn.

brucejwittmann avatar brucejwittmann commented on July 3, 2024

Thanks, Justas! Just to make sure I've got it correct, if I want to make sure that chains A and B are identical and chains C and D are identical after sampling, would my dict look like Option 1 or Option 2?

Option 1:
{"my_protein_name": [{"A": [1], "B": [1]}, {"C": [1], "D": [1]}, {"A": [2], "B": [2]}, {"C": [2], "D": [2]}...]}

Option 2:
{"my_protein_name": [{"A": [1, 2, ...], "B": [1, 2, ...]}, {"C": [1, 2, ...], "D": [1, 2, ...]}]}

It looks like it would be Option 1 based on the example in example_5_outputs/tied_pdbs.jsonl.

And I assume that you mean the dictionary would be passed as a json to --tied_positions_jsonl of the protein_mpnn_run.py script?

from proteinmpnn.

dauparas avatar dauparas commented on July 3, 2024

Option 1 is what you want. Option 2 would make all residues in chain A and chain B (same for chain C and D) to be just one residue since everything is tied together, i.e chain A seq. = "GGGG", chain B seq. = "GGGG". Yes, pass your dictionary via --tied_positions_jsonl of the protein_mpnn_run.py script.

from proteinmpnn.

brucejwittmann avatar brucejwittmann commented on July 3, 2024

Perfect. Thanks for your help! Closing this :)

from proteinmpnn.

Related Issues (20)

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.