-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.py
More file actions
42 lines (40 loc) · 1.28 KB
/
test.py
File metadata and controls
42 lines (40 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Imports
import os
import sys
# ML Libraries
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torch.functional as F
# Protein Analysis Libaries
import MDAnalysis as mda
import nglview as nv
from nglview.datafiles import PDB, XTC
from pyrosetta import *
from pyrosetta.toolbox import *
from pyrosetta.rosetta.core.scoring import ScoreType
from pyrosetta.rosetta.core.chemical import AtomTypeSet
from pyrosetta.rosetta.protocols.relax import FastRelax
# Custom Libraries
from mol_processors.PDB_processor import download_pdb, get_coords, pdb_to_intcoords, visualize_protein
from mol_processors.Protein import Prot
from utils import write_array
# Initialize Rosetta
init()
# Define some constants
PDB_DIR = "./data/1BDD/"
OCTREE_DIR = "./Octree"
OUTPUT_DIR = "./data/1BDD/output"
# Define some parameters
pdb_id = "1bdd" # The pdb id of the input protein
dcd_file = ""
pdb_init_file = PDB_DIR + "1bdd.pdb"
pdb_out_file = PDB_DIR + "1cq0_pdb2pqr_charmm-outn.pdb"
psf_file = PDB_DIR + "1bdd_pdb2pqr_charmm.psf"
# Set flags
download_protein = True # Flag to download protein
test_prot = Prot(pdb_id=pdb_id, pdb_file=pdb_init_file, psf_file=psf_file)
test_prot.sample_bbdep_rotamers()
test_prot.pack_prot()
#print(test_prot.get_sidechain_angles(1))
#print(test_prot.get_sidechain_angles(1))