Skip to content

Commit

Permalink
add and export read_pdb to facilitate migration to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Nov 25, 2024
1 parent 0f48b14 commit 5cf0a7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PDBTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ using OrderedCollections: OrderedDict
import AtomsBase: atomic_number, atomic_symbol, atomic_mass, position
export atomic_number, atomic_symbol, atomic_mass, position

export read_pdb
export readPDB, writePDB, getseq, wget, edit!, oneletter, threeletter, residuename
export Atom, printatom, index, index_pdb, name, beta, occup, custom_field, charge, pdb_element
export Residue, eachresidue, resname, residue, resnum, chain, model, segname
Expand All @@ -25,6 +26,8 @@ export formula, stoichiometry
export Sequence
export select_with_vmd

const read_pdb = readPDB

# Tools
export center_of_mass
export moveto!
Expand Down
2 changes: 2 additions & 0 deletions src/readPDB.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,7 @@ end
pdbdata = read(pdb_file, String)
atoms = readPDB(IOBuffer(pdbdata), "protein and name CA")
@test length(atoms) == 104
atoms = read_pdb(pdb_file, "protein and name CA")
@test length(atoms) == 104
end

0 comments on commit 5cf0a7e

Please sign in to comment.