Skip to content

Commit

Permalink
clean up scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
axsk committed Aug 22, 2024
1 parent 7cf78d6 commit 75118db
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 32 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions scripts/openmmtrajectory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ sim = OpenMMSimulation(; pdb, minimize=true, gpu=true)
x0 = getcoords(sim)
cainds = atom_indices(pdb, "name==CA")
featinds = restricted_localpdistinds(x0, radius, cainds)
featurizer(x) = pdists(x, featinds)

traj = laggedtrajectory(sim, samples)
data = SimulationData(sim, traj, nk, featurizer=coords -> pdists(coords, featinds))
data = SimulationData(sim, traj, nk; featurizer)

iso = Iso2(data, opt=NesterovRegularized(), gpu=true)

run!(iso, trainsteps)

iso.data = addcoords(iso.data, laggedtrajectory(sim, samples, x0=iso.data.coords[1][:, end]))

run!(iso, trainsteps)
run!(iso, trainsteps)
30 changes: 0 additions & 30 deletions scripts/thesis.jl

This file was deleted.

7 changes: 7 additions & 0 deletions scripts/trpcage.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sim = OpenMMSimulation(pdb="data/2jof-processed.pdb", forcefields=ISOKANN.OpenMM.FORCE_AMBER_IMPLICIT, features=ISOKANN.OpenMM.noHatoms("data/2jof-processed.pdb"), steps=100, temp=360)

data = SimulationData(sim, nx=100, nk=8)

iso = Iso2(data, model=pairnet(data, activation=Flux.swish, layers=4), gpu=true, opt=AdamRegularized(1e-4, 1e-5), minibatch=100, loggers=[ISOKANN.autoplot(10)])

runadaptive!(iso, generations=1000, nx=3, cutoff=2000, iter=500, keepedges=true)
File renamed without changes.

0 comments on commit 75118db

Please sign in to comment.