Skip to content

Commit

Permalink
Merge pull request #21 from jgreener64/patch-1
Browse files Browse the repository at this point in the history
BioStructures.jl compat
  • Loading branch information
AntonOresten authored Jun 21, 2024
2 parents fe6b393 + d5be1c7 commit 5ae9d23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
ZygoteIdealizationExt = ["Zygote"]

[compat]
BioStructures = "3"
BioStructures = "4"
LinearAlgebra = "1"
PrecompileTools = "1"
Rotations = "1"
Expand Down
4 changes: 2 additions & 2 deletions src/protein/pdb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Protein.Chain(chain::BioStructures.Chain; res_selector=backboneselector
return Protein.Chain(residues)
end

function chains(struc::BioStructures.ProteinStructure; res_selector=backboneselector)
function chains(struc::BioStructures.MolecularStructure; res_selector=backboneselector)
chains = Protein.Chain[]
for model in struc, chain in model
isempty(chain) || push!(chains, Protein.Chain(chain, res_selector=res_selector))
Expand All @@ -68,7 +68,7 @@ Loads a protein (represented as a `Vector{Protein.Chain}`) from a PDB file.
Assumes that each residue starts with three atoms: N, CA, C.
"""
function readpdb(pdbfile::String)
struc = read(pdbfile, BioStructures.PDB)
struc = read(pdbfile, BioStructures.PDBFormat)
return chains(struc)
end

Expand Down

0 comments on commit 5ae9d23

Please sign in to comment.