Skip to content

Commit

Permalink
yeye
Browse files Browse the repository at this point in the history
  • Loading branch information
nifets committed May 20, 2023
1 parent 46d796c commit d1bf11c
Show file tree
Hide file tree
Showing 7 changed files with 10,920 additions and 11,194 deletions.
4,758 changes: 135 additions & 4,623 deletions .ipynb_checkpoints/Globins Experiment-checkpoint.ipynb

Large diffs are not rendered by default.

2,559 changes: 1,581 additions & 978 deletions .ipynb_checkpoints/Simulated Experiment-checkpoint.ipynb

Large diffs are not rendered by default.

4,736 changes: 124 additions & 4,612 deletions Globins Experiment.ipynb

Large diffs are not rendered by default.

2,559 changes: 1,581 additions & 978 deletions Simulated Experiment.ipynb

Large diffs are not rendered by default.

7,488 changes: 7,488 additions & 0 deletions data/pdb/1M4F.pdb

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions src/inference/AncestorSampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ end
end


function sample_anc_coords_wn(p, descs, t; burn_in=300)
function sample_anc_coords_wn(p, descs, t; burn_in=600)
sampler = MH(:x => v -> MixtureModel([WrappedNormal(v, I), WrappedNormal(v, 20*I)], [0.8, 0.2]))
n = size(descs[1], 2)
D = length(descs)
Expand Down Expand Up @@ -56,9 +56,17 @@ function sample_anc_coords_sub(p, descs, t; burn_in=5)
return X
end

function sample_anc_coords_sub2(p, descs, t; burn_in=5)
n = size(descs[1], 2)
for i 1:n
X[1, i] = 1
end
return X
end

function sample_anc_coords(p, descs, t)
if eltype(p) <: Integer
return sample_anc_coords_sub(p, descs, t)
return sample_anc_coords_sub2(p, descs, t)
else
return sample_anc_coords_wn(p, descs, t)
end
Expand Down
2 changes: 1 addition & 1 deletion src/objects/Backbone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function backbone_bond_angles_and_lengths(chain::BioChain)
for j 1:3
atoms[j] = new_atoms[j]
bond_angles[j, i] = bondangle(atoms[j%3+1], atoms[(j+1)%3+1], atoms[j])
bond_lengths[j, i] = distance(atoms[(j+1)%3+1], atoms[j])
bond_lengths[j, i] = BioStructures.distance(atoms[(j+1)%3+1], atoms[j])
end
end
return bond_angles, bond_lengths
Expand Down

0 comments on commit d1bf11c

Please sign in to comment.