diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index 39defa1..6fae98d 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.11.1","generation_timestamp":"2024-10-23T13:38:36","documenter_version":"1.7.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.11.1","generation_timestamp":"2024-10-23T14:16:43","documenter_version":"1.7.0"}} \ No newline at end of file diff --git a/dev/index.html b/dev/index.html index 962b003..e2d55f6 100644 --- a/dev/index.html +++ b/dev/index.html @@ -3,7 +3,7 @@ 3×3 IdealResidue{Float64}: -1.06447 -0.199174 1.26364 0.646303 -0.529648 -0.116655 - 0.0 0.0 0.0source
ProteinChains.BackboneGeometryType
BackboneGeometry(;
+  0.0        0.0        0.0
source
ProteinChains.BackboneGeometryType
BackboneGeometry(;
     N_Ca_length = 1.46,
     Ca_C_length = 1.52,
     C_N_length = 1.33,
@@ -11,9 +11,9 @@
     N_Ca_C_angle = 1.94,
     Ca_C_N_angle = 2.03,
     C_N_Ca_angle = 2.13,
-)

Define the idealized bond lengths and bond angles of a protein backbone.

source
ProteinChains.IdealResidueType
IdealResidue{T<:AbstractFloat} <: AbstractMatrix{T}
+)

Define the idealized bond lengths and bond angles of a protein backbone.

source
ProteinChains.IdealResidueType
IdealResidue{T<:AbstractFloat} <: AbstractMatrix{T}
 
-IdealResidue{T}(backbone_geometry=DEFAULT_BACKBONE_GEOMETRY; template=nothing) where T

A 3x3 matrix representing the idealized geometry of a protein residue, with columns representing the N, Ca, and C atom positions of a residue positioned at the origin.

source
ProteinChains.IndexablePropertyType
IndexableProperty <: AbstractProperty
+IdealResidue{T}(backbone_geometry=DEFAULT_BACKBONE_GEOMETRY; template=nothing) where T

A 3x3 matrix representing the idealized geometry of a protein residue, with columns representing the N, Ca, and C atom positions of a residue positioned at the origin.

source
ProteinChains.IndexablePropertyType
IndexableProperty <: AbstractProperty
 
 IndexableProperty(value::AbstractArray)

An AbstractArray property with size (dims..., length(chain)), and residue indexing of the chain being propagated to the last dimension of the array.

julia> chain = pdb"1ASS"A;
 
@@ -23,10 +23,10 @@
 false
 
 julia> chain.y[:,1:10] == chain[1:10].y
-true
source
ProteinChains.PersistentPropertyType
PersistentProperty(value)

A property of arbitrary type that persists after residue indexing of a chain.

julia> chain = addproperties(pdb"1ASS"A; x=PersistentProperty(1));
+true
source
ProteinChains.PersistentPropertyType
PersistentProperty(value)

A property of arbitrary type that persists after residue indexing of a chain.

julia> chain = addproperties(pdb"1ASS"A; x=PersistentProperty(1));
 
 julia> chain.x == chain[1:10].x
-true
source
ProteinChains.ProteinChainType
ProteinChain{T<:Real,Ps<:NamedProperties}

Represents a protein chain with a basic set of fields from which some other properties might be derived. The addproperties function can be used to instantiate new chains with additional properties.

Fields

  • id::String: Identifier for the protein chain.
  • atoms::Vector{Vector{Atom{T}}}: List of atoms in each residue.
  • sequence::String: Amino acid sequence of the protein.
  • numbering::Vector{Int32}: Residue numbering (author). See renumber for renumbering.
  • properties::Ps: Named properties associated with the chain.

See also addproperties, PersistentProperty, IndexableProperty. ```

source
ProteinChains.ProteinStructureType
ProteinStructure{T} <: AbstractVector{ProteinChain{T}}

Fields

  • name::String: Usually just the base name of the original file.
  • atoms::Vector{Atom{T}}: free atoms from the structure that were not part of any protein chain.
  • chains::Vector{<:ProteinChain{T}}: a collection of ProteinChains.

Examples

julia> structure = pdb"1ASS"
source
ProteinChains.ProteinStructureStoreType
ProteinStructureStore <: AbstractDict{String,ProteinStructure}

A mutable struct representing a store for protein structures using HDF5 file format.

The struct implements the AbstractDict interface, allowing for dictionary-like operations.

A ProteinStructureStore gets closed when there no longer exists a program-accessible reference to it.

Examples

julia> store = ProteinStructureStore("store.h5")
+true
source
ProteinChains.ProteinChainType
ProteinChain{T<:Real,Ps<:NamedProperties}

Represents a protein chain with a basic set of fields from which some other properties might be derived. The addproperties function can be used to instantiate new chains with additional properties.

Fields

  • id::String: Identifier for the protein chain.
  • atoms::Vector{Vector{Atom{T}}}: List of atoms in each residue.
  • sequence::String: Amino acid sequence of the protein.
  • numbering::Vector{Int32}: Residue numbering (author). See renumber for renumbering.
  • properties::Ps: Named properties associated with the chain.

See also addproperties, PersistentProperty, IndexableProperty. ```

source
ProteinChains.ProteinStructureType
ProteinStructure{T} <: AbstractVector{ProteinChain{T}}

Fields

  • name::String: Usually just the base name of the original file.
  • atoms::Vector{Atom{T}}: free atoms from the structure that were not part of any protein chain.
  • chains::Vector{<:ProteinChain{T}}: a collection of ProteinChains.

Examples

julia> structure = pdb"1ASS"
source
ProteinChains.ProteinStructureStoreType
ProteinStructureStore <: AbstractDict{String,ProteinStructure}

A mutable struct representing a store for protein structures using HDF5 file format.

The struct implements the AbstractDict interface, allowing for dictionary-like operations.

A ProteinStructureStore gets closed when there no longer exists a program-accessible reference to it.

Examples

julia> store = ProteinStructureStore("store.h5")
 ProteinStructureStore with 0 entries
 
 julia> store["3HFM"] = pdb"3HFM"
@@ -44,8 +44,8 @@
   "3HFM"
 
 julia> delete!(store, "3HFM")
-ProteinStructureStore with 0 entries
source
ProteinChains.ProteinStructureStoreType
ProteinStructureStore(filename, mode="cw")

Open or create an HDF5 file as a ProteinStructureStore where mode is one of:

  • "r" read only
  • "r+" read and write
  • "cw" read and write, create file if not existing, do not truncate
  • "w" read and write, create a new file (destroys any existing contents)
source
ProteinChains.ProteinStructureStoreMethod
ProteinStructureStore(f::Function, filename, mode="cw")
source
ProteinChains.addpropertiesMethod
addproperties(chain::ProteinChain, names::Symbol...)
-addproperties(chain::ProteinStructure, names::Symbol...)

Add predefined properties to a chain or chains of a structure.

source
ProteinChains.addpropertiesMethod
addproperties(chain::ProteinChain; properties...)

Creates a new ProteinChain instance with the added properties. Indexing behavior of property values can be specified by wrapping them with PersistentProperty or IndexableProperty.

Values get wrapped by PersistentProperty by default.

See also removeproperties, PersistentProperty, IndexableProperty

source
ProteinChains.append_residueMethod
append_residue(Backbone::Backbone, torsion_angles::Vector{<:Real}; ideal::BackboneGeometry=DEFAULT_BACKBONE_GEOMETRY)

Create a new backbone by appending 3 new torsion angles (ψ, ω, ϕ) at the end, using bond lengths and bond angles specified in BackboneGeometry.

source
ProteinChains.deserializeMethod
deserialize(filename::AbstractString)

Deserialize ProteinStructure objects from an HDF5 file. Returns a Vector{ProteinStructure} of all structures stored in the file.

source
ProteinChains.mapmmcifMethod
mapmmcif(mmcifdict, field1 => field2, field3 => field4, ...)
julia> import BioStructures
+ProteinStructureStore with 0 entries
source
ProteinChains.ProteinStructureStoreType
ProteinStructureStore(filename, mode="cw")

Open or create an HDF5 file as a ProteinStructureStore where mode is one of:

  • "r" read only
  • "r+" read and write
  • "cw" read and write, create file if not existing, do not truncate
  • "w" read and write, create a new file (destroys any existing contents)
source
ProteinChains.ProteinStructureStoreMethod
ProteinStructureStore(f::Function, filename, mode="cw")
source
ProteinChains.addpropertiesMethod
addproperties(chain::ProteinChain, names::Symbol...)
+addproperties(chain::ProteinStructure, names::Symbol...)

Add predefined properties to a chain or chains of a structure.

source
ProteinChains.addpropertiesMethod
addproperties(chain::ProteinChain; properties...)

Creates a new ProteinChain instance with the added properties. Indexing behavior of property values can be specified by wrapping them with PersistentProperty or IndexableProperty.

Values get wrapped by PersistentProperty by default.

See also removeproperties, PersistentProperty, IndexableProperty

source
ProteinChains.append_residueMethod
append_residue(Backbone::Backbone, torsion_angles::Vector{<:Real}; ideal::BackboneGeometry=DEFAULT_BACKBONE_GEOMETRY)

Create a new backbone by appending 3 new torsion angles (ψ, ω, ϕ) at the end, using bond lengths and bond angles specified in BackboneGeometry.

source
ProteinChains.deserializeMethod
deserialize(filename::AbstractString)

Deserialize ProteinStructure objects from an HDF5 file. Returns a Vector{ProteinStructure} of all structures stored in the file.

source
ProteinChains.mapmmcifMethod
mapmmcif(mmcifdict, field1 => field2, field3 => field4, ...)
julia> import BioStructures
 
 julia> filename = BioStructures.downloadpdb("3HFM", format=BioStructures.MMCIFFormat);
 [ Info: Downloading file from PDB: 3HFM
@@ -58,7 +58,7 @@
 Dict{String, String} with 3 entries:
   "Y" => "9031"
   "L" => "10090"
-  "H" => "10090"
source
ProteinChains.pdbentryMethod
pdbentry(pdbid::AbstractString; format=MMCIFFormat, kwargs...)

Keyword arguments get propagated to BioStructures.downloadpdb

Downloads are cached in a temporary directory.

Examples

julia> pdbentry("1EYE")
+  "H" => "10090"
source
ProteinChains.pdbentryMethod
pdbentry(pdbid::AbstractString; format=MMCIFFormat, kwargs...)

Keyword arguments get propagated to BioStructures.downloadpdb

Downloads are cached in a temporary directory.

Examples

julia> pdbentry("1EYE")
 [ Info: Downloading file from PDB: 1EYE
 1-chain ProteinStructure{Float64} "1EYE.cif"
  256-residue ProteinChain{Float64, @NamedTuple{}} (A)
@@ -76,4 +76,4 @@
 [ Info: Downloading file from PDB: 1EYE
 2-chain ProteinStructure{Float64} "1EYE_ba1.cif"
  256-residue ProteinChain{Float64, @NamedTuple{}} (A)
- 256-residue ProteinChain{Float64, @NamedTuple{}} (A-2)
source
ProteinChains.prepend_residueMethod
append_residue(Backbone::Backbone, torsion_angles::Vector{<:Real}; ideal::BackboneGeometry=DEFAULT_BACKBONE_GEOMETRY)

Create a new backbone by prepending 3 new torsion angles (ψ, ω, ϕ) at the beginning, using bond lengths and bond angles specified in the BackboneGeometry.

Note

The torsion angle order is the same as it would be when appending. The order is not reversed.

source
ProteinChains.removepropertiesMethod
removeproperties(chain::ProteinChain, names::Symbol...)

Creates a new ProteinChain instance with the property names in names removed.

See also addproperties

source
ProteinChains.renumberMethod
renumber(structure::ProteinStructure, mmcif_dict::BioStructures.MMCIFDict)

Return residue numbers from "atomsite.labelseqids".

The ProteinStructure will automatically add a renumbering property if an MMCIFDict is passed (default if the file is an MMCIF).

source
ProteinChains.serializeMethod
serialize(filename::AbstractString, structures::AbstractVector{<:ProteinStructure})

Serialize a vector of ProteinStructure objects to an HDF5 file. This function creates a new ProteinStructureStore and writes each structure in the input vector to it. Each structure is stored using its name as the key.

source
+ 256-residue ProteinChain{Float64, @NamedTuple{}} (A-2)source
ProteinChains.prepend_residueMethod
append_residue(Backbone::Backbone, torsion_angles::Vector{<:Real}; ideal::BackboneGeometry=DEFAULT_BACKBONE_GEOMETRY)

Create a new backbone by prepending 3 new torsion angles (ψ, ω, ϕ) at the beginning, using bond lengths and bond angles specified in the BackboneGeometry.

Note

The torsion angle order is the same as it would be when appending. The order is not reversed.

source
ProteinChains.removepropertiesMethod
removeproperties(chain::ProteinChain, names::Symbol...)

Creates a new ProteinChain instance with the property names in names removed.

See also addproperties

source
ProteinChains.renumberMethod
renumber(structure::ProteinStructure, mmcif_dict::BioStructures.MMCIFDict)

Return residue numbers from "atomsite.labelseqids".

The ProteinStructure will automatically add a renumbering property if an MMCIFDict is passed (default if the file is an MMCIF).

source
ProteinChains.serializeMethod
serialize(filename::AbstractString, structures::AbstractVector{<:ProteinStructure})

Serialize a vector of ProteinStructure objects to an HDF5 file. This function creates a new ProteinStructureStore and writes each structure in the input vector to it. Each structure is stored using its name as the key.

source