bird.ts 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. /**
  2. * Copyright (c) 2017-2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * Code-generated 'BIRD' schema file. Dictionary versions: mmCIF 5.305, IHM 0.139, CARB draft.
  5. *
  6. * @author mol-star package (src/apps/schema-generator/generate)
  7. */
  8. import { Database, Column } from 'mol-data/db'
  9. import Schema = Column.Schema
  10. const str = Schema.str;
  11. const float = Schema.float;
  12. const Aliased = Schema.Aliased;
  13. const int = Schema.int;
  14. export const BIRD_Schema = {
  15. /**
  16. * Data items in the PDBX_REFERENCE_MOLECULE category record
  17. * reference information about small polymer molecules.
  18. */
  19. pdbx_reference_molecule: {
  20. /**
  21. * The value of _pdbx_reference_molecule.prd_id is the unique identifier
  22. * for the reference molecule in this family.
  23. *
  24. * By convention this ID uniquely identifies the reference molecule in
  25. * in the PDB reference dictionary.
  26. *
  27. * The ID has the template form PRD_dddddd (e.g. PRD_000001)
  28. */
  29. prd_id: str,
  30. /**
  31. * Formula mass in daltons of the entity.
  32. */
  33. formula_weight: float,
  34. /**
  35. * The formula for the reference entity. Formulae are written
  36. * according to the rules:
  37. *
  38. * 1. Only recognised element symbols may be used.
  39. *
  40. * 2. Each element symbol is followed by a 'count' number. A count
  41. * of '1' may be omitted.
  42. *
  43. * 3. A space or parenthesis must separate each element symbol and
  44. * its count, but in general parentheses are not used.
  45. *
  46. * 4. The order of elements depends on whether or not carbon is
  47. * present. If carbon is present, the order should be: C, then
  48. * H, then the other elements in alphabetical order of their
  49. * symbol. If carbon is not present, the elements are listed
  50. * purely in alphabetic order of their symbol. This is the
  51. * 'Hill' system used by Chemical Abstracts.
  52. */
  53. formula: str,
  54. /**
  55. * Defines the structural classification of the entity.
  56. */
  57. type: Aliased<'Amino acid' | 'Aminoglycoside' | 'Anthracycline' | 'Anthraquinone' | 'Ansamycin' | 'Chalkophore' | 'Chromophore' | 'Glycopeptide' | 'Cyclic depsipeptide' | 'Cyclic lipopeptide' | 'Cyclic peptide' | 'Heterocyclic' | 'Imino sugar' | 'Keto acid' | 'Lipoglycopeptide' | 'Lipopeptide' | 'Macrolide' | 'Non-polymer' | 'Nucleoside' | 'Oligopeptide' | 'Oligosaccharide' | 'Peptaibol' | 'Peptide-like' | 'Polycyclic' | 'Polypeptide' | 'Polysaccharide' | 'Quinolone' | 'Thiolactone' | 'Thiopeptide' | 'Siderophore' | 'Unknown' | 'Chalkophore, Polypeptide'>(str),
  58. /**
  59. * Evidence for the assignment of _pdbx_reference_molecule.type
  60. */
  61. type_evidence_code: str,
  62. /**
  63. * Broadly defines the function of the entity.
  64. */
  65. class: Aliased<'Antagonist' | 'Antibiotic' | 'Anticancer' | 'Anticoagulant' | 'Antifungal' | 'Antiinflammatory' | 'Antimicrobial' | 'Antineoplastic' | 'Antiparasitic' | 'Antiretroviral' | 'Anthelmintic' | 'Antithrombotic' | 'Antitumor' | 'Antiviral' | 'CASPASE inhibitor' | 'Chaperone binding' | 'Enzyme inhibitor' | 'Growth factor' | 'Immunosuppressant' | 'Inhibitor' | 'Lantibiotic' | 'Metabolism' | 'Metal transport' | 'Oxidation-reduction' | 'Receptor' | 'Thrombin inhibitor' | 'Trypsin inhibitor' | 'Toxin' | 'Unknown' | 'Anticoagulant, Antithrombotic' | 'Antibiotic, Antimicrobial' | 'Antibiotic, Anthelmintic' | 'Antibiotic, Antineoplastic' | 'Antimicrobial, Antiretroviral' | 'Antimicrobial, Antitumor' | 'Antimicrobial, Antiparasitic, Antibiotic' | 'Thrombin inhibitor, Trypsin inhibitor'>(str),
  66. /**
  67. * Evidence for the assignment of _pdbx_reference_molecule.class
  68. */
  69. class_evidence_code: str,
  70. /**
  71. * A name of the entity.
  72. */
  73. name: str,
  74. /**
  75. * Defines how this entity is represented in PDB data files.
  76. */
  77. represent_as: Aliased<'polymer' | 'single molecule'>(str),
  78. /**
  79. * For entities represented as single molecules, the identifier
  80. * corresponding to the chemical definition for the molecule.
  81. */
  82. chem_comp_id: str,
  83. /**
  84. * Description of this molecule.
  85. */
  86. description: str,
  87. /**
  88. * The PDB accession code for the entry containing a representative example of this molecule.
  89. */
  90. representative_PDB_id_code: str,
  91. /**
  92. * Defines the current PDB release status for this molecule definition.
  93. */
  94. release_status: Aliased<'REL' | 'HOLD' | 'OBS' | 'WAIT'>(str),
  95. /**
  96. * Assigns the identifier for the reference molecule which have been replaced
  97. * by this reference molecule.
  98. * Multiple molecule identifier codes should be separated by commas.
  99. */
  100. replaces: str,
  101. /**
  102. * Assigns the identifier of the reference molecule that has replaced this molecule.
  103. */
  104. replaced_by: str,
  105. },
  106. /**
  107. * Data items in the PDBX_REFERENCE_ENTITY_LIST category record
  108. * the list of entities within each reference molecule.
  109. */
  110. pdbx_reference_entity_list: {
  111. /**
  112. * The value of _pdbx_reference_entity_list.prd_id is a reference
  113. * _pdbx_reference_molecule.prd_id in the PDBX_REFERENCE_MOLECULE category.
  114. */
  115. prd_id: str,
  116. /**
  117. * The value of _pdbx_reference_entity_list.ref_entity_id is a unique identifier
  118. * the a constituent entity within this reference molecule.
  119. */
  120. ref_entity_id: str,
  121. /**
  122. * Defines the polymer characteristic of the entity.
  123. */
  124. type: str,
  125. /**
  126. * Additional details about this entity.
  127. */
  128. details: str,
  129. /**
  130. * The component number of this entity within the molecule.
  131. */
  132. component_id: int,
  133. },
  134. /**
  135. * Data items in the PDBX_REFERENCE_ENTITY_NONPOLY category record
  136. * the list of entities within each reference molecule.
  137. */
  138. pdbx_reference_entity_nonpoly: {
  139. /**
  140. * The value of _pdbx_reference_entity_nonpoly.prd_id is a reference
  141. * _pdbx_reference_entity_list.prd_id in the PDBX_REFERENCE_ENTITY_LIST category.
  142. */
  143. prd_id: str,
  144. /**
  145. * The value of _pdbx_reference_entity_nonpoly.ref_entity_id is a reference
  146. * to _pdbx_reference_entity_list.ref_entity_id in PDBX_REFERENCE_ENTITY_LIST category.
  147. */
  148. ref_entity_id: str,
  149. /**
  150. * A name of the non-polymer entity.
  151. */
  152. name: str,
  153. /**
  154. * For non-polymer entities, the identifier corresponding
  155. * to the chemical definition for the molecule.
  156. */
  157. chem_comp_id: str,
  158. },
  159. /**
  160. * Data items in the PDBX_REFERENCE_ENTITY_LINK category give details about
  161. * the linkages between entities within reference molecules.
  162. */
  163. pdbx_reference_entity_link: {
  164. /**
  165. * The value of _pdbx_reference_entity_link.link_id uniquely identifies
  166. * linkages between entities with a molecule.
  167. */
  168. link_id: int,
  169. /**
  170. * The value of _pdbx_reference_entity_link.prd_id is a reference
  171. * _pdbx_reference_entity_list.prd_id in the PDBX_REFERENCE_ENTITY_LIST category.
  172. */
  173. prd_id: str,
  174. /**
  175. * A description of special aspects of a linkage between
  176. * chemical components in the structure.
  177. */
  178. details: str,
  179. /**
  180. * The reference entity id of the first of the two entities joined by the
  181. * linkage.
  182. *
  183. * This data item is a pointer to _pdbx_reference_entity_list.ref_entity_id
  184. * in the PDBX_REFERENCE_ENTITY_LIST category.
  185. */
  186. ref_entity_id_1: str,
  187. /**
  188. * The reference entity id of the second of the two entities joined by the
  189. * linkage.
  190. *
  191. * This data item is a pointer to _pdbx_reference_entity_list.ref_entity_id
  192. * in the PDBX_REFERENCE_ENTITY_LIST category.
  193. */
  194. ref_entity_id_2: str,
  195. /**
  196. * For a polymer entity, the sequence number in the first of
  197. * the two entities containing the linkage.
  198. *
  199. * This data item is a pointer to _pdbx_reference_entity_poly_seq.num
  200. * in the PDBX_REFERENCE_ENTITY_POLY_SEQ category.
  201. */
  202. entity_seq_num_1: int,
  203. /**
  204. * For a polymer entity, the sequence number in the second of
  205. * the two entities containing the linkage.
  206. *
  207. * This data item is a pointer to _pdbx_reference_entity_poly_seq.num
  208. * in the PDBX_REFERENCE_ENTITY_POLY_SEQ category.
  209. */
  210. entity_seq_num_2: int,
  211. /**
  212. * The component identifier in the first of the two entities containing the linkage.
  213. *
  214. * For polymer entities, this data item is a pointer to _pdbx_reference_entity_poly_seq.mon_id
  215. * in the PDBX_REFERENCE_ENTITY_POLY_SEQ category.
  216. *
  217. * For non-polymer entities, this data item is a pointer to
  218. * _pdbx_reference_entity_nonpoly.chem_comp_id in the
  219. * PDBX_REFERENCE_ENTITY_NONPOLY category.
  220. */
  221. comp_id_1: str,
  222. /**
  223. * The component identifier in the second of the two entities containing the linkage.
  224. *
  225. * For polymer entities, this data item is a pointer to _pdbx_reference_entity_poly_seq.mon_id
  226. * in the PDBX_REFERENCE_ENTITY_POLY_SEQ category.
  227. *
  228. * For non-polymer entities, this data item is a pointer to
  229. * _pdbx_reference_entity_nonpoly.chem_comp_id in the
  230. * PDBX_REFERENCE_ENTITY_NONPOLY category.
  231. */
  232. comp_id_2: str,
  233. /**
  234. * The atom identifier/name in the first of the two entities containing the linkage.
  235. */
  236. atom_id_1: str,
  237. /**
  238. * The atom identifier/name in the second of the two entities containing the linkage.
  239. */
  240. atom_id_2: str,
  241. /**
  242. * The bond order target for the chemical linkage.
  243. */
  244. value_order: Aliased<'sing' | 'doub' | 'trip' | 'quad' | 'arom' | 'poly' | 'delo' | 'pi'>(str),
  245. /**
  246. * The entity component identifier for the first of two entities containing the linkage.
  247. */
  248. component_1: int,
  249. /**
  250. * The entity component identifier for the second of two entities containing the linkage.
  251. */
  252. component_2: int,
  253. /**
  254. * A code indicating the entity types involved in the linkage.
  255. */
  256. link_class: Aliased<'PP' | 'PN' | 'NP' | 'NN'>(str),
  257. },
  258. /**
  259. * Data items in the PDBX_REFERENCE_ENTITY_POLY_LINK category give details about
  260. * polymer linkages including both standard and non-standard linkages between
  261. * polymer componnents.
  262. */
  263. pdbx_reference_entity_poly_link: {
  264. /**
  265. * The value of _pdbx_reference_entity_poly_link.link_id uniquely identifies
  266. * a linkage within a polymer entity.
  267. */
  268. link_id: int,
  269. /**
  270. * The value of _pdbx_reference_entity_poly_link.prd_id is a reference
  271. * _pdbx_reference_entity_list.prd_id in the PDBX_REFERENCE_ENTITY_POLY category.
  272. */
  273. prd_id: str,
  274. /**
  275. * The reference entity id of the polymer entity containing the linkage.
  276. *
  277. * This data item is a pointer to _pdbx_reference_entity_poly.ref_entity_id
  278. * in the PDBX_REFERENCE_ENTITY_POLY category.
  279. */
  280. ref_entity_id: str,
  281. /**
  282. * The entity component identifier entity containing the linkage.
  283. */
  284. component_id: int,
  285. /**
  286. * For a polymer entity, the sequence number in the first of
  287. * the two components making the linkage.
  288. *
  289. * This data item is a pointer to _pdbx_reference_entity_poly_seq.num
  290. * in the PDBX_REFERENCE_ENTITY_POLY_SEQ category.
  291. */
  292. entity_seq_num_1: int,
  293. /**
  294. * For a polymer entity, the sequence number in the second of
  295. * the two components making the linkage.
  296. *
  297. * This data item is a pointer to _pdbx_reference_entity_poly_seq.num
  298. * in the PDBX_REFERENCE_ENTITY_POLY_SEQ category.
  299. */
  300. entity_seq_num_2: int,
  301. /**
  302. * The component identifier in the first of the two components making the
  303. * linkage.
  304. *
  305. * This data item is a pointer to _pdbx_reference_entity_poly_seq.mon_id
  306. * in the PDBX_REFERENCE_ENTITY_POLY_SEQ category.
  307. */
  308. comp_id_1: str,
  309. /**
  310. * The component identifier in the second of the two components making the
  311. * linkage.
  312. *
  313. * This data item is a pointer to _pdbx_reference_entity_poly_seq.mon_id
  314. * in the PDBX_REFERENCE_ENTITY_POLY_SEQ category.
  315. */
  316. comp_id_2: str,
  317. /**
  318. * The atom identifier/name in the first of the two components making
  319. * the linkage.
  320. */
  321. atom_id_1: str,
  322. /**
  323. * The atom identifier/name in the second of the two components making
  324. * the linkage.
  325. */
  326. atom_id_2: str,
  327. /**
  328. * The bond order target for the non-standard linkage.
  329. */
  330. value_order: Aliased<'sing' | 'doub' | 'trip' | 'quad' | 'arom' | 'poly' | 'delo' | 'pi'>(str),
  331. },
  332. /**
  333. * Data items in the PDBX_REFERENCE_ENTITY_POLY category record details about
  334. * the polymer, such as the type of the polymer, the number of
  335. * monomers and whether it has nonstandard features.
  336. */
  337. pdbx_reference_entity_poly: {
  338. /**
  339. * The value of _pdbx_reference_entity_poly.prd_id is a reference
  340. * _pdbx_reference_entity_list.prd_id in the PDBX_REFERENCE_ENTITY_LIST category.
  341. */
  342. prd_id: str,
  343. /**
  344. * The value of _pdbx_reference_entity_poly.ref_entity_id is a reference
  345. * to _pdbx_reference_entity_list.ref_entity_id in PDBX_REFERENCE_ENTITY_LIST category.
  346. */
  347. ref_entity_id: str,
  348. /**
  349. * The type of the polymer.
  350. */
  351. type: Aliased<'peptide-like' | 'nucleic-acid-like' | 'polysaccharide-like'>(str),
  352. /**
  353. * The database code for this source information
  354. */
  355. db_code: str,
  356. /**
  357. * The database name for this source information
  358. */
  359. db_name: str,
  360. },
  361. /**
  362. * Data items in the PDBX_REFERENCE_ENTITY_POLY_SEQ category specify the sequence
  363. * of monomers in a polymer.
  364. */
  365. pdbx_reference_entity_poly_seq: {
  366. /**
  367. * The value of _pdbx_reference_entity_poly_seq.prd_id is a reference
  368. * _pdbx_reference_entity_poly.prd_id in the PDBX_REFERENCE_ENTITY_POLY category.
  369. */
  370. prd_id: str,
  371. /**
  372. * The value of _pdbx_reference_entity_poly_seq.ref_entity_id is a reference
  373. * to _pdbx_reference_entity_poly.ref_entity_id in PDBX_REFERENCE_ENTITY_POLY category.
  374. */
  375. ref_entity_id: str,
  376. /**
  377. * This data item is the chemical component identifier of monomer.
  378. */
  379. mon_id: str,
  380. /**
  381. * This data item is the chemical component identifier for the parent component corresponding to this monomer.
  382. */
  383. parent_mon_id: str,
  384. /**
  385. * The value of _pdbx_reference_entity_poly_seq.num must uniquely and sequentially
  386. * identify a record in the PDBX_REFERENCE_ENTITY_POLY_SEQ list.
  387. *
  388. * This value is conforms to author numbering conventions and does not map directly
  389. * to the numbering conventions used for _entity_poly_seq.num.
  390. */
  391. num: int,
  392. /**
  393. * A flag to indicate that this monomer is observed in the instance example.
  394. */
  395. observed: Aliased<'Y' | 'N'>(str),
  396. /**
  397. * A flag to indicate that sequence heterogeneity at this monomer position.
  398. */
  399. hetero: Aliased<'Y' | 'N'>(str),
  400. },
  401. /**
  402. * Additional features associated with the reference entity.
  403. */
  404. pdbx_reference_entity_sequence: {
  405. /**
  406. * The value of _pdbx_reference_entity_sequence.prd_id is a reference
  407. * _pdbx_reference_entity_list.prd_id in the PDBX_REFERENCE_ENTITY_LIST category.
  408. */
  409. prd_id: str,
  410. /**
  411. * The value of _pdbx_reference_entity_sequence.ref_entity_id is a reference
  412. * to _pdbx_reference_entity_list.ref_entity_id in PDBX_REFERENCE_ENTITY_LIST category.
  413. */
  414. ref_entity_id: str,
  415. /**
  416. * The monomer type for the sequence.
  417. */
  418. type: str,
  419. /**
  420. * A flag to indicate a non-ribosomal entity.
  421. */
  422. NRP_flag: Aliased<'Y' | 'N'>(str),
  423. /**
  424. * The one-letter-code sequence for this entity. Non-standard monomers are represented as 'X'.
  425. */
  426. one_letter_codes: str,
  427. },
  428. /**
  429. * Data items in the PDBX_REFERENCE_ENTITY_SRC_NAT category record
  430. * details of the source from which the entity was obtained.
  431. */
  432. pdbx_reference_entity_src_nat: {
  433. /**
  434. * The value of _pdbx_reference_entity_src_nat.prd_id is a reference
  435. * _pdbx_reference_entity_list.prd_id in the PDBX_REFERENCE_ENTITY_LIST category.
  436. */
  437. prd_id: str,
  438. /**
  439. * The value of _pdbx_reference_entity_src_nat.ref_entity_id is a reference
  440. * to _pdbx_reference_entity_list.ref_entity_id in PDBX_REFERENCE_ENTITY_LIST category.
  441. */
  442. ref_entity_id: str,
  443. /**
  444. * The value of _pdbx_reference_entity_src_nat.ordinal distinguishes
  445. * source details for this entity.
  446. */
  447. ordinal: int,
  448. /**
  449. * The scientific name of the organism from which the entity was isolated.
  450. */
  451. organism_scientific: str,
  452. /**
  453. * The NCBI TaxId of the organism from which the entity was isolated.
  454. */
  455. taxid: str,
  456. /**
  457. * The database code for this source information
  458. */
  459. db_code: str,
  460. /**
  461. * The database name for this source information
  462. */
  463. db_name: str,
  464. },
  465. /**
  466. * Data items in the PDBX_PRD_AUDIT category records
  467. * the status and tracking information for this molecule.
  468. */
  469. pdbx_prd_audit: {
  470. /**
  471. * This data item is a pointer to _pdbx_reference_molecule.prd_id in the
  472. * pdbx_reference_molecule category.
  473. */
  474. prd_id: str,
  475. /**
  476. * The date associated with this audit record.
  477. */
  478. date: str,
  479. /**
  480. * An identifier for the wwPDB site creating or modifying the molecule.
  481. */
  482. processing_site: Aliased<'RCSB' | 'PDBe' | 'PDBJ' | 'BMRB'>(str),
  483. /**
  484. * The action associated with this audit record.
  485. */
  486. action_type: Aliased<'Initial release' | 'Create molecule' | 'Modify type' | 'Modify class' | 'Modify molecule name' | 'Modify representation' | 'Modify sequence' | 'Modify linkage' | 'Modify taxonomy organism' | 'Modify audit' | 'Other modification' | 'Obsolete molecule'>(str),
  487. },
  488. }
  489. export type BIRD_Schema = typeof BIRD_Schema;
  490. export interface BIRD_Database extends Database<BIRD_Schema> {}