 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
14 #define MAXSEQLEN 1000000 // Maximum sequence length
Bmolgroup * molgroup_init()
Initializes and allocates a new molecule group.
long molgroup_stats(Bmolgroup *molgroup, int show)
Calculates the statistics of a molecule group.
Batom * atom_add(Batom **atom, const char *type)
Adds an atom to a linked list.
Bresidue * residue_add(Bresidue **res, const char *type)
Adds a residue to a linked list.
int molgroup_kill(Bmolgroup *molgroup)
Destroys a molecule group.
int residue_kill(Bresidue *res)
Destroys a residue.
int molecule_update_comment(Bmolgroup *molgroup, int n, char **strings)
Puts a set of strings and time in the main comment of a molecule group.
long molgroup_count_molecules(Bmolgroup *molgroup)
Counts the total number of molecules in a molecule group.
int molgroup_list_kill(Bmolgroup *molgroup)
Destroys a molecule group linked list.
Header file for unit cell functions.
Bmolgroup * read_molecule(const char *filename, const char *select, const char *paramfile)
The generalized function for reading molecular files.
int molgroup_from_molgroup_list(Bmolgroup *molgroup)
Converts a molecule group list to a single molecule group.
Bmolecule * mol_copy_and_add_to_molgroup(Bmolgroup *molgroup, Bmolecule *mol)
Copies a molecule and assign to a new pointer in the molgroup.
int atom_clean_type(Batom *atom, const char *type)
Cleans up the type string and assigns an element code to an atom.
long mol_count_atoms(Bmolecule *mol)
Counts the total number of atoms in a molecule.
long mol_stats(Bmolecule *mol, int show)
Calculates the statistics of a molecule.
Bangle * angle_add(Bangle **angle, Batom *atom1, Batom *atom2, Batom *atom3, double a, double k)
Adds an angle to a linked list.
Class for 3-value vectors.
Header file for the string class.
int molecules_to_molgroups(Bmolgroup *molgroup)
Converts molecules in a molecule group to individual molecule groups.
int molgroup_list_write(Bstring &filename, Bmolgroup *molgroup)
Writes a molecule group list.
long atom_count(Bmolgroup *molgroup)
Counts the number of atoms in a molecule group.
int angle_kill(Bangle *angle)
Dealocates a list of angles.
long mol_count_residues(Bmolecule *mol)
Counts the total number of residues in a molecule.
long molgroup_count_residues(Bmolgroup *molgroup)
Counts the total number of residues in a molecule group.
int molecule_kill(Bmolecule *mol)
Destroys a molecule.
Bbond * bond_add(Bbond **bond, Batom *atom1, Batom *atom2, double l, double k)
Adds a bond to a linked list.
int write_molecule(char *filename, Bmolgroup *molgroup)
Writes a molecule group.
int molgroup_consolidate_gaps(Bmolgroup *molgroup)
Removes redundant gaps from an alignment.
Bbond * molgroup_bond_list_generate(Bmolgroup *molgroup, double maxlength, int wrap)
Generates a bond list based on atom separation.
Bbond * molgroup_bond_list_copy(Bmolgroup *molgroup, Bmolgroup *molgroupcopy)
Copies a bond list.
long molgroup_count_atoms(Bmolgroup *molgroup)
Counts the total number of atoms in a molecule group.
int molecule_get_masses(Bmolgroup *molgroup, Bstring ¶mfile)
Gets atomic masses from a parameter file.
Bmolgroup * molgroup_list_copy(Bmolgroup *molgroup)
Copies a molecule group list.
int bond_kill(Bbond *bond)
Dealocates a list of bonds.
Bmolecule * molecule_add(Bmolecule **mol, char *name)
Adds a molecule to a linked list.
Bmolgroup * molgroup_copy(Bmolgroup *molgroup)
Copies a molecule group.
Bbond * mol_bond_list_generate(Bmolgroup *molgroup, double bondlength, int wrap)
Generates an intramolecular distance-based bond list.
Bmolecule * molecule_copy(Bmolecule *mol)
Copies a molecule.
long residue_count(Bmolgroup *molgroup)
Counts the number of residues in a molecule group.