Skip to content

Commit

Permalink
export and clean up mmcifutils functions
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOresten committed Oct 17, 2024
1 parent a2f128a commit 7d34254
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/ProteinChains.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ include("io/io.jl")
export readcif, readpdb
export writecif, writepdb
export pdbentry, @pdb_str
export PDBFormat, MMCIFFormat
export getmmcif, mapmmcif
export BioStructures, MMCIFDict, PDBFormat, MMCIFFormat

include("store/store.jl")
export ProteinStructureStore
Expand Down
2 changes: 0 additions & 2 deletions src/io/io.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using BioStructures: BioStructures, MMCIFDict, PDBFormat, MMCIFFormat

export BioStructures, MMCIFDict, PDBFormat, MMCIFFormat

const ProteinFileFormat = Union{PDBFormat, MMCIFFormat}
const AMINOACIDS = Set("ACDEFGHIKLMNPQRSTVWY")
const BACKBONE_ATOM_NAMES = ["N", "CA", "C"]
Expand Down
8 changes: 0 additions & 8 deletions src/io/mmcifutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,3 @@ Dict{String, String} with 3 entries:
"""
mapmmcif(mmcifdict, pairs::Pair{String,String}...) =
mapreduce(((from,to),) -> map_first_occurrence(getmmcif(mmcifdict, from), getmmcif(mmcifdict, to)), compose_map, pairs)

get_auth_asym_to_entity(mmcifdict) = mapmmcif(mmcifdict, "_atom_site.auth_asym_id" => "_atom_site.label_entity_id")

function get_auth_asym_to_taxid(mmcifdict)
mapmmcif(mmcifdict,
"_atom_site.auth_asym_id" => "_atom_site.label_entity_id",
"_entity_src_gen.entity_id" => "_entity_src_gen.pdbx_gene_src_ncbi_taxonomy_id")
end

0 comments on commit 7d34254

Please sign in to comment.