Package edu.duke.cs.osprey.gui.io

Types

Link copied to clipboard
class ChainGeneratorBondedGroup(idGenerator: ChainIdGenerator) : ChainGenerator

Generates a chain with one residue for each group of bonded atoms in the molecule. Useful for small molecules and solvents, as long as we have bonds.

Link copied to clipboard
class ChainGeneratorByMolType(idGenerator: ChainIdGenerator) : ChainGenerator
Link copied to clipboard
class ChainGeneratorSingleResidue(idGenerator: ChainIdGenerator) : ChainGenerator

Generates single-residue chains for non-polymer molecules. Useful for small molecules.

Link copied to clipboard
open class ChainIdGeneratorAZ : ChainIdGenerator

Generates chain ids in the range A-Z.

Link copied to clipboard
class ConfLib(id: String, name: String, fragments: Map<String, ConfLib.Fragment>, description: String?, citation: String?)

Conformation Library

Link copied to clipboard
data class FragmentsTOML(toml: String, idsByFrag: Map<ConfLib.Fragment, String>)
Link copied to clipboard
class LaunchLimits(maxInFlight: Int)
Link copied to clipboard
class Mol2Metadata
Link copied to clipboard
class Mol2ParseException(line: String, msg: String) : RuntimeException
Link copied to clipboard
data class OMOLMapped(toml: String, indicesByAtom: Map<Atom, Int>)
Link copied to clipboard
object OspreyService
Link copied to clipboard
class ProcessStreamer(processBuilder: ProcessBuilder)

Reads stdout and stderr from a process and sends the lines back in a ConcurrentLinkedQueue instance.

Link copied to clipboard
class TomlParseException(msg: String, pos: TomlPosition?) : RuntimeException
Link copied to clipboard
object UserSettings

Functions

Link copied to clipboard
fun Collection<Molecule>.combineForPDB(name: String): Pair<Molecule, AtomMap>

A wrapper for Molecule.combine() that tries to intelligently generate polymer chains for non-polymer molecules to satisfy the limitations of the PDB file format.

Link copied to clipboard
fun Molecule.Companion.fromMol2(mol2: String, isPolymer: Boolean? = null): Molecule

Read a molecule in MOL2 format.

Link copied to clipboard
fun Molecule.Companion.fromMol2WithMetadata(mol2: String, isPolymer: Boolean? = null): Pair<Molecule, Mol2Metadata>
Link copied to clipboard
fun Molecule.Companion.fromOMOL(toml: String, throwOnMissingAtoms: Boolean = DefaultThrowOnMissingAtoms): List<Molecule>

Read molecules from the OMOL (OSPREY molecule) format.

fun Molecule.Companion.fromOMOL(doc: TomlParseResult, throwOnMissingAtoms: Boolean = DefaultThrowOnMissingAtoms): List<Molecule>
Link copied to clipboard
fun Molecule.Companion.fromOMOLWithAtoms(doc: TomlParseResult, throwOnMissingAtoms: Boolean = DefaultThrowOnMissingAtoms): List<Pair<Molecule, Map<Int, Atom>>>
Link copied to clipboard
fun Molecule.Companion.fromPDB(pdb: String): Molecule

Read a molecule in PDB format.

Link copied to clipboard
fun ConfSpace.Companion.fromToml(toml: String): ConfSpace
Link copied to clipboard
fun TomlTable.getArrayOrThrow(key: String, pos: TomlPosition? = null): TomlArray
Link copied to clipboard
fun TomlTable.getBooleanOrThrow(key: String, pos: TomlPosition? = null): Boolean
Link copied to clipboard
fun TomlTable.getDoubleOrThrow(key: String, pos: TomlPosition? = null): Double
Link copied to clipboard
fun TomlArray.getInt(index: Int): Int
fun TomlTable.getInt(key: String): Int?
Link copied to clipboard
fun TomlTable.getIntOrThrow(key: String, pos: TomlPosition? = null): Int
Link copied to clipboard
fun TomlTable.getStringOrThrow(key: String, pos: TomlPosition? = null): String
Link copied to clipboard
fun TomlTable.getTableOrThrow(key: String, pos: TomlPosition? = null): TomlTable
Link copied to clipboard
fun Path.read(): String
Link copied to clipboard
fun Path.readBytes(): ByteArray
Link copied to clipboard
fun ProcessBuilder.stream(): ProcessStreamer
Link copied to clipboard
inline fun <R> tempFolder(name: String, block: (Path) -> R): R
Link copied to clipboard
fun CompiledConfSpace.toBytes(): ByteArray

Compiled conf spaces are actually big enough that parsing the TOML file can run the JVM out of heap space! So, we need a more efficient format...

Link copied to clipboard
fun Molecule.toMol2(metadata: Mol2Metadata? = null): String

Save the molecule to the Mol2 format.

Link copied to clipboard
fun <ERROR CLASS>.toMolecule(name: String? = null): Molecule

Convert an OSPREY molecule to a Molscope molecule.

Link copied to clipboard
fun Molecule.toOMOL(): String

fun List<Molecule>.toOMOL(): String

Save the molecules to the OMOL (OSPREY molecule) format.

Link copied to clipboard
fun List<Molecule>.toOMOLMapped(flattenAtomIndices: Boolean = false): OMOLMapped
Link copied to clipboard
fun Molecule.toOspreyMol(throwOnNonChainPolymerAtoms: Boolean = false, translateSSasCYX: Boolean = false, translateHIStoEDP: Boolean = false): <ERROR CLASS>

Convert a Molscope molecule to an OSPREY molecule.

Link copied to clipboard
fun Molecule.toPDB(throwOnNonChainPolymerAtoms: Boolean = false, translateSSasCYX: Boolean = false, comment: String? = null, energy: Double? = null, includeTer: Boolean = false, includeSSBondConect: Boolean = false, translateHIStoEDP: Boolean = false): String

Save the molecule to PDB format.

Link copied to clipboard
fun ConfSpace.toToml(): String
fun ConfLib.toToml(table: String? = null): String

fun List<ConfLib.Fragment>.toToml(resolveIdCollisions: Boolean = false, table: String? = null): FragmentsTOML

Writes out a list of fragments to TOML

Link copied to clipboard
fun String.toTomlKey(): String

see: https://github.com/toml-lang/toml#keys

Link copied to clipboard
fun Point3d.toVector3d(): Vector3d
Link copied to clipboard
fun ByteArray.write(path: Path)
fun String.write(path: Path)

Properties

Link copied to clipboard
val Path.exists: Boolean