-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add a manual template? #72
Comments
Ok, so this is pretty simples, yet hacky unfortunately. All you need is, after
So for now, I input the manual PDB in a import mdtraj as md
# put manual pdbs to be added in manual_pdbs/
manual_pdbs = ['TDIX.pdb']
for pdb in manual_pdbs:
traj = md.load('manual_pdbs/' + pdb)
protein_atoms = traj.top.select('protein')
traj = traj.atom_slice(protein_atoms)
traj.save('templates/structures-resolved/SETD8_HUMAN_%s_A.pdb' % pdb.split('.')[0])
resolved_seq = traj.top.to_fasta()[0]
f = open('templates/templates-resolved-seq.fa', 'a')
f.write('\n>SETD8_HUMAN_%s_A\n' % pdb.split('.')[0])
f.write(resolved_seq)
f.write('\n')
f.close() The only obstacle I had for just passing the PDB to Ensembler API was the use of SIFTS files - will need to write something extracting the appropriate features from the PDB. Let me think about this a bit more and propose something (ultimately I think having to call @danielparton do you have any suggestions? I was wondering a couple of things about the code:
|
Sorry for the delay here. I like your script for adding the new templates to the fasta file programmatically. I have just done this manually so far. I have a pretty complete description of how I've been using ensembler in the astrazeneca and dansu-dansu repos. |
Cool, thanks! |
I want to add a manual template to the modeling (unpublished structure). @sonyahanson John said you've done this before? Do you have any quick pointers / script?
Thanks so much!
The text was updated successfully, but these errors were encountered: