/usr/lib/emboss/include/ajpdb.h is in emboss-lib 6.3.1-6ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 | /****************************************************************************
**
** @source ajpdb.h
**
** AJAX objects for handling protein structural data.
** Atom, Chain & Pdb objects.
** Hetent, Het, Vdwres, Vdwall, Cmap and Pdbtosp objects.
**
** @author: Copyright (C) 2004 Jon Ison (jison@hgmp.mrc.ac.uk)
** @version 1.0
** @@
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Library General Public
** License as published by the Free Software Foundation; either
** version 2 of the License, or (at your option) any later version.
**
** This library is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Library General Public License for more details.
**
** You should have received a copy of the GNU Library General Public
** License along with this library; if not, write to the
** Free Software Foundation, Inc., 59 Temple Place - Suite 330,
** Boston, MA 02111-1307, USA.
****************************************************************************/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef ajpdb_h
#define ajpdb_h
/* @data AjPAtom ************************************************************
**
** Ajax atom object.
**
** Holds protein atom data
**
** AjPAtom is implemented as a pointer to a C data structure.
**
**
**
** @alias AjSAtom
** @alias AjOAtom
**
**
**
** @attr Mod [ajint] Model number.
** @attr Chn [ajint] Chain number.
** @attr Gpn [ajint] Group number.
** @attr Idx [ajint] Residue number - index into sequence.
** @attr Pdb [AjPStr] Residue number string from the original PDB file.
** @attr Id3 [AjPStr] Residue or group identifier.
** @attr Atm [AjPStr] Atom identifier.
** @attr X [float] X coordinate.
** @attr Y [float] Y coordinate.
** @attr Z [float] Z coordinate.
** @attr O [float] Occupancy.
** @attr B [float] B value thermal factor.
** @attr Id1 [char] Standard residue identifier or 'X' for unknown
** types or '.' for heterogens and water.
** @attr Type [char] 'P' (protein atom), 'H' ("heterogens") or 'W'
** (water).
** @attr Padding [char[2]] Padding to alignment boundary
**
**
** @new ajAtomNew Default Atom constructor.
** @delete ajAtomDel Default Atom destructor.
** @assign ajAtomCopy Replicates an Atom object.
** @assign ajAtomListCopy Replicates a list of Atom objects.
** @use embAtomInContact Determines whether two atoms are in physical
** contact.
** @use embAtomDistance Returns the distance (Angstroms) between two
** atoms.
** @use embVdwRad Returns the van der Waals radius of an atom.
** @other embPdbListHeterogens Construct a list of arrays of Atom objects
** for ligands in the current Pdb object (a single array for each
** ligand).
**
** @@
****************************************************************************/
typedef struct AjSAtom
{
ajint Mod;
ajint Chn;
ajint Gpn;
ajint Idx;
AjPStr Pdb;
AjPStr Id3;
AjPStr Atm;
float X;
float Y;
float Z;
float O;
float B;
char Id1;
char Type;
char Padding[2];
} AjOAtom;
#define AjPAtom AjOAtom*
/* @data AjPResidue ***********************************************************
**
** Ajax Residue object.
**
** Holds data for an amino acid residue.
**
** AjPResidue is implemented as a pointer to a C data structure.
**
** @alias AjSResidue
** @alias AjOResidue
**
**
** @attr Mod [ajint] Model number.
** @attr Chn [ajint] Chain number.
** @attr Idx [ajint] Residue number. Can be used to index into the
** polypeptide sequence (the Seq element of an AjSChain object). Idx numbers
** start at 1 and run sequentially.
** @attr eNum [ajint] Element serial number (for secondary structure
** from the PDB file).
** @attr Pdb [AjPStr] Residue number string from the original PDB file.
** @attr Id3 [AjPStr] 3-letter residue identifier code.
** @attr eId [AjPStr] Element identifier (for secondary structure from
** the PDB file).
** @attr eClass [ajint] Class of helix, an int from 1-10, from
** http://www.rcsb.org/pdb/docs/format/pdbguide2.2/guide2.2_frame.html
(for secondary structure from the PDB file).
**
** @attr eStrideNum [ajint] Number of the element: sequential count from
** N-term (for secondary structure from STRIDE).
** @attr Phi [float] Phi angle.
** @attr Psi [float] Psi angle.
** @attr Area [float] Residue solvent accessible area.
**
** @attr all_abs [float] Absolute accessibility, all atoms.
** @attr all_rel [float] Relative accessibility, all atoms.
** @attr side_abs [float] Absolute accessibility, atoms in side chain.
** @attr side_rel [float] Relative accessibility, atoms in side chain.
** @attr main_abs [float] Absolute accessibility, atoms in main chain.
** @attr main_rel [float] Relative accessibility, atoms in main chain.
** @attr npol_abs [float] Absolute accessibility, non-polar atoms.
** @attr npol_rel [float] Relative accessibility, non-polar atoms.
** @attr pol_abs [float] Absolute accessibility, polar atoms.
** @attr pol_rel [float] Relative accessibility, polar atoms.
** @attr Id1 [char] Standard 1-letter residue identifier or 'X' for
** unknown types.
** @attr eType [char] Element type COIL ('C'), HELIX ('H'), SHEET ('E')
** or TURN ('T'). Has a default value of COIL (for secondary structure
** from the PDB file).
** @attr eStrideType [char] Element type: ALPHA HELIX ('H'), 3-10 HELIX
** ('G'), PI-HELIX ('I'), EXTENDED CONFORMATION ('E'), ISOLATED BRIDGE
** ('B' or 'b'), TURN ('T') or COIL (none of the above) ('C') (for
** secondary structure from STRIDE).
** @attr Padding [char[1]] Padding to alignment boundary
**
**
** @new ajResidueNew Default Residue constructor.
** @delete ajResidueDel Default Residue destructor.
** @assign ajResidueCopy Replicates a Residue object.
** @assign ajResidueListCopy Replicates a list of Residue objects.
** @use ajResidueEnv1 Assigns environment based on side chain accessibility and
** secondary structure.
** @use ajResidueEnv2 Assigns environment based on side chain accessibility and
** secondary structure.
** @use ajResidueEnv3 Assigns environment based on side chain accessibility and
** secondary structure.
** @use ajResidueEnv4 Assigns environment based on side chain accessibility and
** secondary structure.
** @use ajResidueEnv5 Assigns environment based on side chain accessibility and
** secondary structure.
** @use ajResidueEnv6 Assigns environment based on side chain accessibility and
** secondary structure.
** @use ajResidueEnv7 Assigns environment based on side chain accessibility and
** secondary structure.
** @use ajResidueEnv8 Assigns environment based on side chain accessibility and
** secondary structure.
** @use ajResidueEnv9 Assigns environment based on side chain accessibility
** and secondary structure.
** @use ajResidueEnv10 Assigns environment based on side chain accessibility
** and secondary structure.
** @use ajResidueEnv11 Assigns environment based on side chain accessibility
** and secondary structure.
** @use ajResidueEnv12 Assigns environment based on side chain accessibility
** and secondary structure.
** @use ajResidueEnv13 Assigns environment based on side chain accessibility
** and secondary structure.
** @use ajResidueEnv14 Assigns environment based on side chain accessibility
** and secondary structure.
** @use ajResidueEnv15 Assigns environment based on side chain accessibility
** and secondary structure.
** @use ajResidueEnv16 Assigns environment based on side chain accessibility
** and secondary structure.
** @use ajResidueSSEnv Assigns secondary structure environment of a residue.
** @@
******************************************************************************/
typedef struct AjSResidue
{
ajint Mod;
ajint Chn;
ajint Idx;
ajint eNum;
AjPStr Pdb;
AjPStr Id3;
AjPStr eId;
ajint eClass;
ajint eStrideNum;
float Phi;
float Psi;
float Area;
float all_abs;
float all_rel;
float side_abs;
float side_rel;
float main_abs;
float main_rel;
float npol_abs;
float npol_rel;
float pol_abs;
float pol_rel;
char Id1;
char eType;
char eStrideType;
char Padding[1];
} AjOResidue, *AjPResidue;
/* @data AjPChain ***********************************************************
**
** Ajax chain object.
**
** Holds protein chain data
**
** AjPChain is implemented as a pointer to a C data structure.
**
**
**
** @alias AjSChain
** @alias AjOChain
**
**
**
** @attr Nres [ajint] No. of amino acid residues.
** @attr Nlig [ajint] No. of groups which are non-covalently
** associated with the chain, excluding water
** ("heterogens").
** @attr numHelices [ajint] No. of helices in the chain according to the
** PDB file.
** @attr numStrands [ajint] No. of strands in the chain according to the
** PDB file.
** @attr Seq [AjPStr] Protein sequence as string.
** @attr Atoms [AjPList] List of Atom objects for (potentially multiple
** models) of the polypeptide chain and any
** groups (ligands) that could be uniquely
** associated with a chain.
** @attr Residues [AjPList] List of Residue objects for (potentially multiple
** models) of the polypeptide chain.
** @attr Id [char] Chain id, ('.' if one wasn't specified in
** the PDB file).
** @attr Padding [char[7]] Padding to alignment boundary
**
**
**
** @new ajChainNew Default Chain constructor.
** @delete ajChainDel Default Chain destructor.
** @@
****************************************************************************/
typedef struct AjSChain
{
ajint Nres;
ajint Nlig;
ajint numHelices;
ajint numStrands;
AjPStr Seq;
AjPList Atoms;
AjPList Residues;
char Id;
char Padding[7];
} AjOChain;
#define AjPChain AjOChain*
/* @data AjPPdb *************************************************************
**
** Ajax pdb object.
**
** Holds arrays describing pdb data
**
** AjPPdb is implemented as a pointer to a C data structure.
**
**
**
** @alias AjSPdb
** @alias AjOPdb
**
**
**
** @attr Pdb [AjPStr] PDB code.
** @attr Compnd [AjPStr] Text from COMPND records in PDB file.
** @attr Source [AjPStr] Text from SOURCE records in PDB file.
** @attr Method [ajint] Experiment type, either XRAY or NMR.
** @attr Reso [float] Resolution of an XRAY structure or 0.
** @attr Nmod [ajint] No. of models (always 1 for XRAY structures).
** @attr Nchn [ajint] No. polypeptide chains.
** @attr Chains [AjPChain*] Array of pointers to AjSChain structures.
** @attr gpid [AjPChar] Array of chain (group) id's for groups that
** could not be uniquely associated with a chain.
** @attr Groups [AjPList] List of Atom objects for groups that could not
** be uniquely associated with a chain.
** @attr Water [AjPList] List of Atom objects for water molecules.
** @attr Ngp [ajint] No. groups that could not be uniquely
** associated with a chain in the SEQRES records.
** @attr Padding [char[4]] Padding to alignment boundary
**
**
**
** @new ajPdbNew Default Pdb constructor.
** @new ajPdbReadRawNew Pdb constructor from reading pdb format file.
** @new ajPdbReadNew Pdb constructor from reading CCF format file.
** @new ajPdbReadFirstModelNew Pdb constructor from reading CCF format
** file (retrieve data for 1st model only).
** @new ajPdbReadoldNew Pdb constructor from reading CCF format file
** lacking residue-level description in RE records.
** @new ajPdbReadoldFirstModelNew Pdb constructor from reading CCF format
** file lacking residue-level description in RE records.
** @delete ajPdbDel Default Pdb destructor.
** @assign ajPdbCopy Replicates a Pdb object.
** @use ajPdbGetEStrideType Reads a Pdb object and writes a string with
** the secondary structure.
** @use ajPdbChnidToNum Finds the chain number for a given chain
** identifier.
** @use embPdbToIdx Reads a Pdb object and writes an integer which gives
** the index into the protein sequence for a residue with a
** specified pdb residue number and a specified chain number.
** @use embPdbidToSp Read a pdb identifier code and writes the equivalent
** swissprot identifier code.
** @use embPdbidToAcc Read a pdb identifier code and writes the equivalent
** accession number.
** @use embPdbidToScop Writes a list of scop identifier codes for the
** domains that a Pdb object contains.
** @cast embPdbAtomIndexI Reads a Pdb object and writes an integer array
** which gives the index into the protein sequence for structured
** residues (residues for which electron density was determined) for
** a given chain.
** @cast embPdbAtomIndexICA Reads a Pdb object and writes an integer array
** which gives the index into the protein sequence for structured
** residues (residues for which electron density was determined) for
** a given chain, EXCLUDING those residues for which CA atoms are
** missing.
** @cast embPdbAtomIndexCCA Reads a Pdb object and writes an integer array
** which gives the index into the protein sequence for structured
** residues (residues for which electron density was determined) for
** a given chain, EXCLUDING those residues for which CA atoms are
** missing.
** @output ajPdbWriteDomainRecordRaw Writes lines to a pdb format file for
** a domain.
** @output ajPdbWriteRecordRaw Writes lines to a pdb format file for a
** protein.
** @output ajPdbWriteAllRaw Writes a pdb-format file for a protein.
** @output ajPdbWriteDomainRaw Writes a pdb-format file for a SCOP domain.
** @output ajPdbWriteAll Writes a CCF-format file for a protein.
** @output ajPdbWriteDomain Writes a CCF-format file for a domain).
** @output ajPdbWriteSegment Writes a CCF-format file for a segment of a
** protein.
** @cast embPdbListHeterogens Construct a list of arrays of Atom objects
** for ligands in the current Pdb object (a single array for each
** ligand).
**
** @@
****************************************************************************/
typedef struct AjSPdb
{
AjPStr Pdb;
AjPStr Compnd;
AjPStr Source;
ajint Method;
float Reso;
ajint Nmod;
ajint Nchn;
AjPChain *Chains;
AjPChar gpid;
AjPList Groups;
AjPList Water;
ajint Ngp;
char Padding[4];
} AjOPdb;
#define AjPPdb AjOPdb*
/* @data AjPHetent **********************************************************
**
** Ajax Hetent object.
**
** Holds a single entry from a dictionary of heterogen groups.
**
** AjPHetent is implemented as a pointer to a C data structure.
**
**
**
** @alias AjSHetent
** @alias AjOHetent
**
**
**
** @attr abv [AjPStr] 3-letter abbreviation of heterogen.
** @attr syn [AjPStr] Synonym.
** @attr ful [AjPStr] Full name.
** @attr cnt [ajint] No. of occurrences (files) of this heterogen in a
** directory.
** @attr Padding [char[4]] Padding to alignment boundary
**
**
**
** @new ajHetentNew Default Hetent constructor.
** @delete ajHetentDel Default Hetent destructor.
**
** @@
****************************************************************************/
typedef struct AjSHetent
{
AjPStr abv;
AjPStr syn;
AjPStr ful;
ajint cnt;
char Padding[4];
} AjOHetent;
#define AjPHetent AjOHetent*
/* @data AjPHet *************************************************************
**
** Ajax Het object.
** Holds a dictionary of heterogen groups.
**
** AjPHet is implemented as a pointer to a C data structure.
**
**
**
** @alias AjSHet
** @alias AjOHet
**
** @attr entries [AjPHetent*] Array of entries.
** @attr n [ajint] Number of entries.
** @attr Padding [char[4]] Padding to alignment boundary
**
**
**
** @new ajHetNew Default Het constructor.
** @new ajHetReadRawNew Het constructor from reading dictionary of
** heterogen groups in raw format.
** @new ajHetReadNew Het constructor from reading dictionary of
** heterogen groups in embl-like format (see documentation for the
** EMBASSY DOMAINATRIX package).
** @delete ajHetDel Default Het destructor.
** @output ajHetWrite Write Het object to file in embl-like format (see
** documentation for the EMBASSY DOMAINATRIX package).
**
** @@
****************************************************************************/
typedef struct AjSHet
{
AjPHetent *entries;
ajint n;
char Padding[4];
} AjOHet;
#define AjPHet AjOHet*
/* @data AjPVdwres **********************************************************
**
** Ajax Vdwres object.
**
** Holds the Van der Waals radius for atoms in a residue
**
** AjPVdwres is implemented as a pointer to a C data structure.
**
**
**
** @alias AjSVdwres
** @alias AjOVdwres
**
**
**
** @attr Id3 [AjPStr] 3 character residue identifier.
** @attr Atm [AjPStr*] Array of atom identifiers.
** @attr Rad [float*] Array of van der Waals radii.
** @attr N [ajint] Number of atoms in residue.
** @attr Id1 [char] Standard residue identifier or 'X' for unknown.
** @attr Padding [char[3]] Padding to alignment boundary
**
**
**
** @new ajVdwresNew Default Vdwres constructor.
** @delete ajVdwresDel Default Vdwres destructor.
**
** @@
****************************************************************************/
typedef struct AjSVdwres
{
AjPStr Id3;
AjPStr *Atm;
float *Rad;
ajint N;
char Id1;
char Padding[3];
} AjOVdwres;
#define AjPVdwres AjOVdwres*
/* @data AjPVdwall **********************************************************
**
** Ajax Vdwall object.
**
** Holds the Van der Waals radii for all types of protein atoms
**
** AjPVdwall is implemented as a pointer to a C data structure.
**
**
**
** @alias AjSVdwall
** @alias AjOVdwall
**
**
**
** @attr Res [AjPVdwres*] Array of Vdwres structures.
** @attr N [ajint] Number of residues.
** @attr Padding [char[4]] Padding to alignment boundary
**
**
**
** @new ajVdwallNew Default Vdwall constructor.
** @new ajVdwallReadNew Vdwall constructor from reading file in embl-like
** format (see documentation for the EMBASSY DOMAINATRIX package).
** @delete ajVdwallDel Default Vdwall destructor.
**
** @@
****************************************************************************/
typedef struct AjSVdwall
{
AjPVdwres *Res;
ajint N;
char Padding[4];
} AjOVdwall;
#define AjPVdwall AjOVdwall*
/* @data AjPCmap ************************************************************
**
** Ajax Cmap object.
**
** Holds a contact map and associated data for a protein domain / chain
** (intra or inter-chain contacts) or between a protein / domain and a
** ligand. For ligand contacts, the first row / column only of the contact
** map is used.
**
** AjPCmap is implemented as a pointer to a C data structure.
**
**
** @alias AjSCmap
** @alias AjOCmap
**
**
** for intra-chain, inter-chain and chain-ligand contacts respectively.
** @attr Id [AjPStr] Protein id code.
** @attr Domid [AjPStr] Domain id code.
** @attr Ligid [AjPStr] Ligand id code.
** @attr Chn1 [ajint] Chain number 1 (first chain)
** @attr Chn2 [ajint] Chain number 2 (second chain if available)
** @attr Nres1 [ajint] Number of residues in chain/domain 1
** @attr Nres2 [ajint] Number of residues in chain/domain 2
** @attr Seq1 [AjPStr] The sequence of the first domain or chain.
** @attr Seq2 [AjPStr] The sequence of the second domain or chain.
** @attr Mat [AjPUint2d] Contact map.
** @attr Dim [ajint] Dimension of contact map.
** @attr Ncon [ajint] No. of contacts (1's in contact map).
** @attr en [ajint] Entry number.
** @attr ns [ajint] No. of sites (ajLIGAND only)
** @attr sn [ajint] Site number (ajLIGAND only)
** @attr Type [ajint] Type of contact, either ajINTRA, ajINTER or ajLIGAND
** @attr Desc [AjPStr] Description of ligand (ajLIGAND only)
** @attr Chid1 [char] Chain identifier 1 (first chain)
** @attr Chid2 [char] Chain identifier 2 (second chain if available)
** @attr Padding [char[6]] Padding to alignment boundary
**
**
** @new ajCmapNew Default Cmap constructor.
** @new ajCmapReadINew Cmap constructor from reading file in CON
** (embl-like)format (see documentation for the EMBASSY DOMAINATRIX
** package).
** @new ajCmapReadCNew Cmap constructor from reading file in CON
** format (see documentation for the EMBASSY DOMAINATRIX package).
** @new ajCmapReadNew Cmap constructor from reading file in CON
** format (see documentation for the EMBASSY DOMAINATRIX package).
** @new ajCmapReadAllNew Constructs list of Cmap objects from reading file
** in CON format (see documentation for the EMBASSY
** DOMAINATRIX package).
** @delete ajCmapDel Default Cmap destructor.
** @output ajCmapWrite Write Cmap object to file in CON format.
**
** @@
****************************************************************************/
typedef struct AjSCmap
{
AjPStr Id;
AjPStr Domid;
AjPStr Ligid;
ajint Chn1;
ajint Chn2;
ajint Nres1;
ajint Nres2;
AjPStr Seq1;
AjPStr Seq2;
AjPUint2d Mat;
ajint Dim;
ajint Ncon;
ajint en;
ajint ns;
ajint sn;
ajint Type;
AjPStr Desc;
char Chid1;
char Chid2;
char Padding[6];
} AjOCmap;
#define AjPCmap AjOCmap*
/* @data AjPPdbtosp *******************************************************
**
** Ajax Pdbtosp object.
**
** Holds swissprot codes and accession numbers for a PDB code.
**
** AjPPdbtosp is implemented as a pointer to a C data structure.
**
**
**
** @alias AjSPdbtosp
** @alias AjOPdbtosp
**
**
**
** @attr Pdb [AjPStr] PDB code
** @attr Acc [AjPStr*] Accession numbers
** @attr Spr [AjPStr*] Swissprot codes
** @attr n [ajint] No. entries for this pdb code
** @attr Padding [char[4]] Padding to alignment boundary
**
**
**
** @new ajPdbtospNew Default Pdbtosp constructor.
** @new ajPdbtospReadAllRawNew Pdbtosp constructor from reading swissprot-
** pdb equivalence table in raw format.
** @new ajPdbtospReadNew Pdbtosp constructor from reading file in
** embl-like format (see documentation for the EMBASSY DOMAINATRIX
** package).
** @new ajPdbtospReadCNew Pdbtosp constructor from reading file in
** embl-like format (see documentation for the EMBASSY DOMAINATRIX
** package).
** @delete ajPdbtospDel Default Pdbtosp destructor.
** @new ajPdbtospReadAllNew Constructor for list of Pdbtosp objects from
** reading file in embl-like format (see documentation for the
** EMBASSY DOMAINATRIX package).
** @output ajPdbtospWrite Write Pdbtosp object to file in embl-like format
** (see documentation for the EMBASSY DOMAINATRIX package).
** @use ajPdbtospArrFindPdbid Binary search for Pdb element over array
** of Pdbtosp objects.
**
** @@
****************************************************************************/
typedef struct AjSPdbtosp
{
AjPStr Pdb;
AjPStr *Acc;
AjPStr *Spr;
ajint n;
char Padding[4];
} AjOPdbtosp;
#define AjPPdbtosp AjOPdbtosp*
/*
** Prototype definitions
*/
/* ======================================================================= */
/* ============================ Het objects ============================== */
/* ======================================================================= */
AjPHet ajHetNew(ajint n);
void ajHetDel(AjPHet *ptr);
/* ======================================================================= */
/* ============================ Hetent object ============================ */
/* ======================================================================= */
AjPHetent ajHetentNew(void);
void ajHetentDel(AjPHetent *ptr);
/* ======================================================================= */
/* ============================ Vdwall object ============================ */
/* ======================================================================= */
AjPVdwall ajVdwallNew(ajint n);
void ajVdwallDel(AjPVdwall *ptr);
/* ======================================================================= */
/* ============================ Vdwres object ============================ */
/* ======================================================================= */
AjPVdwres ajVdwresNew(ajint n);
void ajVdwresDel(AjPVdwres *ptr);
/* ======================================================================= */
/* ============================ Atom object ============================== */
/* ======================================================================= */
AjPAtom ajAtomNew(void);
void ajAtomDel(AjPAtom *ptr);
ajint ajAtomCopy(AjPAtom *to, const AjPAtom from);
ajint ajAtomListCopy(AjPList *to, const AjPList from);
/* ======================================================================= */
/* ========================== Residue object ============================= */
/* ======================================================================= */
AjPResidue ajResidueNew(void);
void ajResidueDel(AjPResidue *ptr);
ajint ajResidueCopy(AjPResidue *to, const AjPResidue from);
AjBool ajResidueListCopy(AjPList *to, const AjPList from);
ajint ajResidueEnv1(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv2(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv3(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv4(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv5(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv6(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv7(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv8(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv9(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv10(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv11(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv12(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv13(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv14(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv15(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueEnv16(const AjPResidue res, char SEnv,
AjPStr *OEnv, AjPFile flog);
ajint ajResidueSSEnv(const AjPResidue res, char *SEnv,AjPFile flog);
/* ======================================================================= */
/* ============================ Pdbtosp object =========================== */
/* ======================================================================= */
AjPPdbtosp ajPdbtospNew(ajint n);
void ajPdbtospDel(AjPPdbtosp *ptr);
ajint ajPdbtospArrFindPdbid(AjPPdbtosp const *arr,
ajint siz, const AjPStr id);
/* ======================================================================= */
/* ============================ Chain object ============================= */
/* ======================================================================= */
AjPChain ajChainNew(void);
void ajChainDel(AjPChain *ptr);
/* ======================================================================= */
/* ============================ Pdb object =============================== */
/* ======================================================================= */
AjPPdb ajPdbNew(ajint n);
void ajPdbDel(AjPPdb *ptr);
AjBool ajPdbCopy(AjPPdb *to, const AjPPdb from);
AjBool ajPdbChnidToNum(char id, const AjPPdb pdb, ajint *chn);
AjPPdb ajPdbReadNew(AjPFile inf, ajint mode);
AjPPdb ajPdbReadAllModelsNew(AjPFile inf);
AjPPdb ajPdbReadFirstModelNew(AjPFile inf);
AjPPdb ajPdbReadoldNew(AjPFile inf);
AjPPdb ajPdbReadoldFirstModelNew(AjPFile inf);
AjBool ajPdbWriteAll(AjPFile out, const AjPPdb obj);
AjBool ajPdbWriteSegment(AjPFile outf, const AjPPdb pdb,
const AjPStr seq, char chn,
const AjPStr domain,
AjPFile errf);
ajint ajPdbGetEStrideType(const AjPPdb obj, ajint chn,
AjPStr *EStrideType);
/* ======================================================================= */
/* ====================== Het & Hetent objects =========================== */
/* ======================================================================= */
AjPHet ajHetReadRawNew(AjPFile inf);
AjPHet ajHetReadNew(AjPFile inf);
AjBool ajHetWrite(AjPFile outf, const AjPHet ptr, AjBool dogrep);
/* ======================================================================= */
/* ================ Vdwall, Vdwres object ================================ */
/* ======================================================================= */
AjPVdwall ajVdwallReadNew(AjPFile inf);
/* ======================================================================= */
/* =========================== Cmap object =============================== */
/* ======================================================================= */
AjPCmap ajCmapNew(ajint n);
AjPCmap ajCmapReadCNew(AjPFile inf, char chn, ajint mod);
AjPCmap ajCmapReadINew(AjPFile inf, ajint chn, ajint mod);
AjPCmap ajCmapReadNew(AjPFile inf, ajint mode, ajint chn, ajint mod);
AjPList ajCmapReadAllNew(AjPFile inf);
void ajCmapDel(AjPCmap *ptr);
AjBool ajCmapWrite(AjPFile outf, const AjPCmap cmap);
/* ======================================================================= */
/* ======================== Pdbtosp object =============================== */
/* ======================================================================= */
AjPList ajPdbtospReadAllRawNew(AjPFile inf);
AjPPdbtosp ajPdbtospReadNew(AjPFile inf, const AjPStr entry);
AjPPdbtosp ajPdbtospReadCNew(AjPFile inf, const char *entry);
AjPList ajPdbtospReadAllNew(AjPFile inf);
AjBool ajPdbtospWrite(AjPFile outf, const AjPList list);
void ajPdbExit(void);
/*
** End of prototype definitions
*/
#endif
#ifdef __cplusplus
}
#endif
|