UnityMol  1.0.25beta
UMol.Reader Class Referenceabstract
Inheritance diagram for UMol.Reader:
UMol.GROReader UMol.MOL2Reader UMol.PDBReader UMol.PDBxReader UMol.SDFReader UMol.XYZReader

Classes

struct  secStruct
 

Public Member Functions

 Reader ()
 
 Reader (string fileName)
 
void updateFileNames ()
 
UnityMolStructure Read (bool readHet=true, bool readWater=true)
 Reads a file from local HDD and parses the data More...
 

Static Public Member Functions

static void identifyStructureMolecularType (UnityMolStructure s)
 Fills the structureType field in the UnityMolStructure class based on atom names More...
 
static Reader GuessReaderFrom (string filename, string format="")
 

Static Public Attributes

static int limitBigMolecule = 5000
 

Protected Member Functions

abstract UnityMolStructure ReadData (StreamReader sr, bool readHet=true, bool readWater=true, bool simplyParse=false)
 

Static Protected Member Functions

static void FillSecondaryStructure (UnityMolStructure structure, List< secStruct > secStructsList)
 
static void CreateColliders (UnityMolSelection sel)
 Creates sphere collider for each atom of the current model of the structure More...
 
static bool QuickStartWith (string full, string comp)
 Check if the string full contains at the begining, the string comp More...
 
static string findNewAtomName (HashSet< string > residueAtoms, string name)
 

Protected Attributes

string fileName
 
string fileNameWithoutExtension
 

Constructor & Destructor Documentation

◆ Reader() [1/2]

UMol.Reader.Reader ( )

◆ Reader() [2/2]

UMol.Reader.Reader ( string  fileName)

Member Function Documentation

◆ CreateColliders()

static void UMol.Reader.CreateColliders ( UnityMolSelection  sel)
staticprotected

Creates sphere collider for each atom of the current model of the structure

LightAtomComparer is defined in UnityMolAtom.cs and make sure that we can find the GameObject of an atom even if the model is not the same

◆ FillSecondaryStructure()

static void UMol.Reader.FillSecondaryStructure ( UnityMolStructure  structure,
List< secStruct secStructsList 
)
staticprotected

◆ findNewAtomName()

static string UMol.Reader.findNewAtomName ( HashSet< string >  residueAtoms,
string  name 
)
staticprotected

◆ GuessReaderFrom()

static Reader UMol.Reader.GuessReaderFrom ( string  filename,
string  format = "" 
)
static

◆ identifyStructureMolecularType()

static void UMol.Reader.identifyStructureMolecularType ( UnityMolStructure  s)
static

Fills the structureType field in the UnityMolStructure class based on atom names

◆ QuickStartWith()

static bool UMol.Reader.QuickStartWith ( string  full,
string  comp 
)
staticprotected

Check if the string full contains at the begining, the string comp

◆ Read()

UnityMolStructure UMol.Reader.Read ( bool  readHet = true,
bool  readWater = true 
)

Reads a file from local HDD and parses the data

◆ ReadData()

abstract UnityMolStructure UMol.Reader.ReadData ( StreamReader  sr,
bool  readHet = true,
bool  readWater = true,
bool  simplyParse = false 
)
protectedpure virtual

◆ updateFileNames()

void UMol.Reader.updateFileNames ( )

Member Data Documentation

◆ fileName

string UMol.Reader.fileName
protected

◆ fileNameWithoutExtension

string UMol.Reader.fileNameWithoutExtension
protected

◆ limitBigMolecule

int UMol.Reader.limitBigMolecule = 5000
static

The documentation for this class was generated from the following file: