Skip to content

Commit

Permalink
Filter out disordered atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOresten committed May 7, 2024
1 parent 9475f93 commit ffe7268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protein/pdb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ aminoacid_sequence(chain::BioStructures.Chain, res_selector) = aminoacid_sequenc
function get_residue_atoms_dict(residues::Vector{<:BioStructures.AbstractResidue})
atoms = Dict{Int, Vector{Atom}}()
for res in residues
append!(get!(atoms, res.number, Atom[]), Atom.(BioStructures.collectatoms(res, BioStructures.standardselector)))
append!(get!(atoms, res.number, Atom[]), Atom.(BioStructures.collectatoms(res, a -> BioStructures.standardselector(a) && !BioStructures.disorderselector(a))))
end
return atoms
end
Expand Down

0 comments on commit ffe7268

Please sign in to comment.