cmmn

package
v0.0.0-...-160f2ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package pdb/cmmn has common definitions for coordinates and pdb files

Index

Constants

View Source
const (
	FileSrc byte = iota
	HTTPSrc
)

Does our data come from a file or http source ?

Variables

View Source
var BrokenResNum int = -9999
View Source
var BrokenXyz = Xyz{math.MaxFloat32, 0, -math.MaxFloat32}

Functions

This section is empty.

Types

type Chain

type Chain struct {
	ChainID  string // Name, like "A" or "B"
	MdlNum   int16  // Model number
	NumLbl   []int  // residue numbers from file. Not real indices
	InsCode  []byte // Insertion code
	CoordSet CoordSet
}

A simple structure for one model, one chain and a set of xyz coordinates

type ChnSl

type ChnSl []Chain

This is obviously just a slice of chains, but we have to define a type if we want to define a method on it

func (ChnSl) ChainNames

func (chns ChnSl) ChainNames() (ret []string)

ChainNames returns a slice with the names of the chains.

type CoordSet

type CoordSet map[string]XyzSl

type Xyz

type Xyz struct{ X, Y, Z float32 }

func (*Xyz) Ok

func (xyz *Xyz) Ok() bool

type XyzSl

type XyzSl []Xyz // xyz's are coordinates

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL