pdb
GB
module-attribute
GB = 'GenBank'
The module level identifier for a GenBankID
NOR
module-attribute
NOR = 'Norine'
The module level identifier for a NorineID
UKB
module-attribute
UKB = 'UniProt'
The module level identifier for a UniProtID
qsbio_confirmed
module-attribute
qsbio_confirmed: Annotated[dict[str, list[int]], "PDB EntryID (lowercase) mapped to biological assembly numbers for ID's with QSBio confidence as high or very high"] = unpickle(qs_bio)
PDB EntryID (lowercase) mapped to biological assembly numbers for ID's with QSBio confidence as high or very high
retrieve_entity_id_by_sequence
retrieve_entity_id_by_sequence(sequence: str) -> str | None
From a given sequence, retrieve the top matching Entity ID from the PDB API
Parameters:
-
sequence
(str
) –The sequence used to query for the EntityID
Returns:
-
str | None
–'1ABC_1'
Source code in symdesign/resources/query/pdb.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|
find_matching_entities_by_sequence
find_matching_entities_by_sequence(sequence: str = None, return_id: return_types_literal = 'polymer_entity', **kwargs) -> list[str] | None
Search the PDB for matching IDs given a sequence and a return_type. Pass all_matching=False to retrieve the top 10 IDs, otherwise return all IDs
Parameters:
-
sequence
(str
, default:None
) –The sequence used to query for EntityID's
-
return_id
(return_types_literal
, default:'polymer_entity'
) –The type of value to return
Returns:
-
list[str] | None
–The EntityID's matching the sequence
Source code in symdesign/resources/query/pdb.py
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 |
|
parse_pdb_response_for_ids
parse_pdb_response_for_ids(response: dict[str, dict[str, str]], groups: bool = False) -> list[str]
Parse JSON PDB API returns for identifiers
Parameters:
-
response
(dict[str, dict[str, str]]
) – -
groups
(bool
, default:False
) –Whether the identifiers are clustered by group
Returns:
-
list[str]
–The list of identifiers from the response
Source code in symdesign/resources/query/pdb.py
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
|
query_pdb
query_pdb(query_: dict[Any] | str, json_formatted: bool = False) -> dict[str, Any] | None
Take a JSON formatted PDB API query and return the results
PDB response can look like: {'query_id': 'ecc736b3-f19c-4a54-a5d6-3db58ce6520b', 'result_type': 'entry', 'total_count': 104, 'result_set': [{'identifier': '4A73', 'score': 1.0, 'services': [{'service_type': 'text', 'nodes': [{'node_id': 11198, 'original_score': 222.23667907714844, 'norm_score': 1.0}]}]}, {'identifier': '5UCQ', 'score': 1.0, 'services': [{'service_type': 'text', 'nodes': [{'node_id': 11198, 'original_score': 222.23667907714844, 'norm_score': 1.0}]}]}, {'identifier': '6P3L', 'score': 1.0, 'services': [{'service_type': 'text', 'nodes': [{'node_id': 11198, 'original_score': 222.23667907714844, 'norm_score': 1.0}]}]}, ... ] }
Parameters:
-
query_
(dict[Any] | str
) –The query formatted as a dictionary or a JSON string
-
json_formatted
(bool
, default:False
) –Whether the query is already formatted as a JSON string
Returns:
-
dict[str, Any] | None
–The response formatted as a dictionary from the JSON format or None if the query failed
Source code in symdesign/resources/query/pdb.py
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 |
|
pdb_id_matching_uniprot_id
pdb_id_matching_uniprot_id(uniprot_id, return_id: return_types_literal = 'polymer_entity') -> list[str]
Find all matching PDB entries from a specified UniProt ID and specific return ID
Parameters:
-
uniprot_id
–The UniProt ID of interest
-
return_id
(return_types_literal
, default:'polymer_entity'
) –The type of value to return
Returns:
-
list[str]
–The list of matching IDs
Source code in symdesign/resources/query/pdb.py
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 |
|
generate_query
generate_query(search: dict, return_id: return_types_literal = 'entry', cluster_uniprot: bool = False, cluster_sequence: bool = False, return_groups: bool = False, all_matching: bool = True) -> dict[str, dict | str]
Format a PDB query with the specific return type and parameters affecting search results
Parameters:
-
search
(dict
) –Contains the key, value pairs in accordance with groups and terminal groups
-
return_id
(return_types_literal
, default:'entry'
) –The type of ID that should be returned
-
cluster_uniprot
(bool
, default:False
) –Whether the query generated is a sequence type query
-
cluster_sequence
(bool
, default:False
) –Whether the query generated is clustered by sequence similarity
-
return_groups
(bool
, default:False
) –Whether to return results as group IDs
-
all_matching
(bool
, default:True
) –Whether to get all matching IDs
Returns:
-
dict[str, dict | str]
–The formatted query to be sent via HTTP GET
Source code in symdesign/resources/query/pdb.py
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 |
|
retrieve_pdb_entries_by_advanced_query
retrieve_pdb_entries_by_advanced_query(save: bool = True, return_results: bool = True, force_schema_update: bool = False, entity: bool = False, assembly: bool = False, chain: bool = False, entry: bool = False, **kwargs) -> str | list | None
Parameters:
-
save
(bool
, default:True
) – -
return_results
(bool
, default:True
) – -
force_schema_update
(bool
, default:False
) – -
entity
(bool
, default:False
) – -
assembly
(bool
, default:False
) – -
chain
(bool
, default:False
) – -
entry
(bool
, default:False
) –
Returns:
Source code in symdesign/resources/query/pdb.py
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 |
|
query_pdb_by
query_pdb_by(entry: str = None, assembly_id: str = None, assembly_integer: int | str = None, entity_id: str = None, entity_integer: int | str = None, chain: str = None, **kwargs) -> dict | list[list[str]]
Retrieve information from the PDB API by EntryID, AssemblyID, or EntityID
Parameters:
-
entry
(str
, default:None
) –The 4 character PDB EntryID of interest
-
assembly_id
(str
, default:None
) –The AssemblyID to query with format (1ABC-1)
-
assembly_integer
(int | str
, default:None
) –The particular assembly integer to query. Must include entry as well
-
entity_id
(str
, default:None
) –The PDB formatted EntityID. Has the format EntryID_Integer (1ABC_1)
-
entity_integer
(int | str
, default:None
) –The entity integer from the EntryID of interest
-
chain
(str
, default:None
) –The polymer "chain" identifier otherwise known as the "asym_id" from the PDB EntryID of interest
Returns: The query result
Source code in symdesign/resources/query/pdb.py
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 |
|
query_assembly_id
query_assembly_id(assembly_id: str = None, entry: str = None, assembly_integer: str | int = None) -> Response | None
Retrieve PDB AssemblyID information from the PDB API. More info at http://data.rcsb.org/#data-api
For all method types the following keys are available: {'rcsb_polymer_entity_annotation', 'entity_poly', 'rcsb_polymer_entity', 'entity_src_gen', 'rcsb_polymer_entity_feature_summary', 'rcsb_polymer_entity_align', 'rcsb_id', 'rcsb_cluster_membership', 'rcsb_polymer_entity_container_identifiers', 'rcsb_entity_host_organism', 'rcsb_latest_revision', 'rcsb_entity_source_organism'} NMR only - {'rcsb_polymer_entity_feature'} EM only - set() X-ray_only_keys - {'rcsb_cluster_flexibility'}
Parameters:
-
assembly_id
(str
, default:None
) –The AssemblyID to query with format (1ABC-1)
-
entry
(str
, default:None
) –The 4 character PDB EntryID of interest
-
assembly_integer
(str | int
, default:None
) –The particular assembly integer to query. Must include entry as well
Returns: The assembly information according to the PDB
Source code in symdesign/resources/query/pdb.py
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 |
|
parse_assembly_json
parse_assembly_json(assembly_json: dict[str, Any]) -> list[list[str]]
For a PDB API AssemblyID, parse the associated 'clustered' chains
Parameters:
-
assembly_json
(dict[str, Any]
) –The json type dictionary returned from requests.Response.json()
Returns: The chain ID's which cluster in the assembly - Ex: [['A', 'A', 'A', ...], ...]
Source code in symdesign/resources/query/pdb.py
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 |
|
query_entry_id
query_entry_id(entry: str = None) -> Response | None
Fetches the JSON object for the EntryID from the PDB API
The following information is returned: All methods (SOLUTION NMR, ELECTRON MICROSCOPY, X-RAY DIFFRACTION) have the following keys: {'rcsb_primary_citation', 'pdbx_vrpt_summary', 'pdbx_audit_revision_history', 'audit_author', 'pdbx_database_status', 'rcsb_id', 'pdbx_audit_revision_details', 'struct_keywords', 'rcsb_entry_container_identifiers', 'entry', 'rcsb_entry_info', 'struct', 'citation', 'exptl', 'rcsb_accession_info'} EM only keys: {'em3d_fitting', 'em3d_fitting_list', 'em_image_recording', 'em_specimen', 'em_software', 'em_entity_assembly', 'em_vitrification', 'em_single_particle_entity', 'em3d_reconstruction', 'em_experiment', 'pdbx_audit_support', 'em_imaging', 'em_ctf_correction'} Xray only keys: {'diffrn_radiation', 'cell', 'reflns', 'diffrn', 'software', 'refine_hist', 'diffrn_source', 'exptl_crystal', 'symmetry', 'diffrn_detector', 'refine', 'reflns_shell', 'exptl_crystal_grow'} NMR only keys: {'pdbx_nmr_exptl', 'pdbx_audit_revision_item', 'pdbx_audit_revision_category', 'pdbx_nmr_spectrometer', 'pdbx_nmr_refine', 'pdbx_nmr_representative', 'pdbx_nmr_software', 'pdbx_nmr_exptl_sample_conditions', 'pdbx_nmr_ensemble'}
entry_json['rcsb_entry_info'] = {'assembly_count': 1, 'branched_entity_count': 0, 'cis_peptide_count': 3, 'deposited_atom_count': 8492, 'deposited_model_count': 1, 'deposited_modeled_polymer_monomer_count': 989, 'deposited_nonpolymer_entity_instance_count': 0, 'deposited_polymer_entity_instance_count': 6, 'deposited_polymer_monomer_count': 1065, 'deposited_solvent_atom_count': 735, 'deposited_unmodeled_polymer_monomer_count': 76, 'diffrn_radiation_wavelength_maximum': 0.9797, 'diffrn_radiation_wavelength_minimum': 0.9797, 'disulfide_bond_count': 0, 'entity_count': 3, 'experimental_method': 'X-ray', 'experimental_method_count': 1, 'inter_mol_covalent_bond_count': 0, 'inter_mol_metalic_bond_count': 0, 'molecular_weight': 115.09, 'na_polymer_entity_types': 'Other', 'nonpolymer_entity_count': 0, 'polymer_composition': 'heteromeric protein', 'polymer_entity_count': 2, 'polymer_entity_count_dna': 0, 'polymer_entity_count_rna': 0, 'polymer_entity_count_nucleic_acid': 0, 'polymer_entity_count_nucleic_acid_hybrid': 0, 'polymer_entity_count_protein': 2, 'polymer_entity_taxonomy_count': 2, 'polymer_molecular_weight_maximum': 21.89, 'polymer_molecular_weight_minimum': 16.47, 'polymer_monomer_count_maximum': 201, 'polymer_monomer_count_minimum': 154, 'resolution_combined': [1.95], 'selected_polymer_entity_types': 'Protein (only)', 'software_programs_combined': ['PHASER', 'REFMAC', 'XDS', 'XSCALE'], 'solvent_entity_count': 1, 'diffrn_resolution_high': {'provenance_source': 'Depositor assigned', 'value': 1.95}}
Parameters:
-
entry
(str
, default:None
) –The PDB code to search for
Returns: The entry information according to the PDB
Source code in symdesign/resources/query/pdb.py
951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 |
|
parse_entry_json
parse_entry_json(entry_json: dict[str, Any]) -> dict[str, dict]
For a PDB API EntryID, parse the associated entity ID's and chains
Parameters:
-
entry_json
(dict[str, Any]
) –The json type dictionary returned from requests.Response.json()
Returns: The structural information present in the PDB EntryID with format - {'method': xray, 'res': resolution, 'struct': {'space': space_group, 'a_b_c': (a, b, c), 'ang_a_b_c': (ang_a, ang_b, ang_c)} }
Source code in symdesign/resources/query/pdb.py
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 |
|
format_symmetry_group
format_symmetry_group(symmetry: str, homomeric_number: int = 1, heteromeric_number: int = None) -> str
Return a PDB API length limitation query
Parameters:
-
symmetry
(str
) –The symmetry to query for
-
homomeric_number
(int
, default:1
) –If the symmetry desired is homomeric, how many copies of the entity are desired
-
heteromeric_number
(int
, default:None
) –If the symmetry desired is heteromeric, how many entities are present
Returns: The symmetry formatted query limiting entity searches to the described symmetry
Source code in symdesign/resources/query/pdb.py
1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 |
|
format_length_group
format_length_group(lower: int, upper: int) -> str
Return a PDB API length limitation query
Parameters:
-
lower
(int
) –The low end to limit entity length
-
upper
(int
) –The upper limit on entity length
Returns: The length formatted query limiting entity searches to between the values lower and upper (non-inclusive)
Source code in symdesign/resources/query/pdb.py
1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 |
|
nanohedra_building_blocks_query
nanohedra_building_blocks_query(symmetry: str, lower: int = None, upper: int = None, thermophile: bool = False, return_groups: bool = False, limit_by_groups: Iterable[str] = None, search_by_groups: Iterable[str] = None) -> dict[Any] | None
Retrieve symmetric oligomers from the PDB to act as building blocks for nanohedra docking
Parameters:
-
symmetry
(str
) –The symmetry to query for
-
lower
(int
, default:None
) –The low end to limit entity length
-
upper
(int
, default:None
) –The upper limit on entity length
-
thermophile
(bool
, default:False
) –Whether to limit search to entries from thermophilic species
-
return_groups
(bool
, default:False
) –Whether to return results as groupID's
-
limit_by_groups
(Iterable[str]
, default:None
) –Whether to limit the query, i.e. not return groupID's that are provided in this argument
-
search_by_groups
(Iterable[str]
, default:None
) –Search only for groupID's that are provided to this argument
Returns: Matching EntityID's formatted as a dictionary from the JSON formatted response or None if the query failed
Source code in symdesign/resources/query/pdb.py
1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 |
|
find_author_confirmed_assembly_from_entity_group
find_author_confirmed_assembly_from_entity_group(group_ids: Iterable[str], symmetry: str, lower: int = None, upper: int = None) -> dict[Any] | None
For specific groupID's, request all EntityID's that have an assembly confirmed by depositing authors from PDB API
Parameters:
-
group_ids
(Iterable[str]
) –The groupID's to limit search to
-
symmetry
(str
) –The symmetry to query for
-
lower
(int
, default:None
) –The low end to limit entity length
-
upper
(int
, default:None
) –The upper limit on entity length
Returns: Matching AssemblyID's formatted as a dictionary from the JSON formatted response or None if the query failed
Source code in symdesign/resources/query/pdb.py
1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 |
|
solve_author_confirmed_assemblies
solve_author_confirmed_assemblies(params: QueryParams, grouped_entity_ids: dict[str, list[str]]) -> tuple[list[str], list[str]]
From a map of Entity group ID's to resolution sorted EntityIDs, solve for those EntityIDs that have an assembly
First search for QSbio confirmed assemblies, then search the PDB API for 'author_defined_assembly' and 'author_and_software_defined_assembly'
Parameters:
-
params
(QueryParams
) –The parameter profile specified for the search procedure
-
grouped_entity_ids
(dict[str, list[str]]
) –A dictionary mapping groupID to EntryID's
Returns: A tuple of the objects ( The best EntityIDs according to incoming sorting and that pass the assembly test The Entity group ID of those groups that couldn't be solved )
Source code in symdesign/resources/query/pdb.py
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 |
|
entity_thermophilicity
entity_thermophilicity(entry: str = None, entity_integer: int | str = None, entity_id: str = None) -> float | None
Query the PDB API for an EntityID and return the associated chains and reference dictionary
Parameters:
-
entry
(str
, default:None
) –The 4 character PDB EntryID of interest
-
entity_integer
(int | str
, default:None
) –The entity integer from the EntryID of interest
-
entity_id
(str
, default:None
) –The PDB formatted EntityID. Has the format EntryID_Integer (1ABC_1)
Returns: Value ranging from 0-1 where 1 is completely thermophilic according to taxonomic classification
Source code in symdesign/resources/query/pdb.py
1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 |
|
thermophilicity_from_entity_json
thermophilicity_from_entity_json(entity_json: dict[str, Any]) -> float
Return the extent to which the entity json entry in question is thermophilic
Parameters:
-
entity_json
(dict[str, Any]
) –The return json from PDB API query
Returns: Value ranging from 0-1 where 1 is completely thermophilic
Source code in symdesign/resources/query/pdb.py
1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 |
|
parse_entities_json
parse_entities_json(entity_jsons: Iterable[dict[str, Any]]) -> dict[str, dict]
Parameters:
-
entity_jsons
(Iterable[dict[str, Any]]
) –An Iterable of json like objects containing EntityID information as retrieved from the PDB API
Returns: The entity dictionary with format - {'EntityID': {'chains': ['A', 'B', ...], 'dbref': {'accession': ('Q96DC8',), 'db': 'UniProt'}, 'reference_sequence': 'MSLEHHHHHH...', 'thermophilicity': 1.0}, ...}
Source code in symdesign/resources/query/pdb.py
1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 |
|
query_entity_id
query_entity_id(entry: str = None, entity_integer: str | int = None, entity_id: str = None) -> Response | None
Retrieve PDB EntityID information from the PDB API. More info at http://data.rcsb.org/#data-api
For all method types the following keys are available: {'rcsb_polymer_entity_annotation', 'entity_poly', 'rcsb_polymer_entity', 'entity_src_gen', 'rcsb_polymer_entity_feature_summary', 'rcsb_polymer_entity_align', 'rcsb_id', 'rcsb_cluster_membership', 'rcsb_polymer_entity_container_identifiers', 'rcsb_entity_host_organism', 'rcsb_latest_revision', 'rcsb_entity_source_organism'} NMR only - {'rcsb_polymer_entity_feature'} EM only - set() X-ray_only_keys - {'rcsb_cluster_flexibility'}
Parameters:
-
entry
(str
, default:None
) –The 4 character PDB EntryID of interest
-
entity_integer
(str | int
, default:None
) –The integer of the entity_id
-
entity_id
(str
, default:None
) –The PDB formatted EntityID. Has the format EntryID_Integer (1ABC_1)
Returns: The entity information according to the PDB
Source code in symdesign/resources/query/pdb.py
1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 |
|
get_entity_id
get_entity_id(entry: str = None, entity_integer: int | str = None, entity_id: str = None, chain: str = None) -> tuple[str, str] | tuple[None]
Retrieve a UniProtID from the PDB API by passing various PDB identifiers or combinations thereof
Parameters:
-
entry
(str
, default:None
) –The 4 character PDB EntryID of interest
-
entity_integer
(int | str
, default:None
) –The entity integer from the EntryID of interest
-
entity_id
(str
, default:None
) –The PDB formatted EntityID. Has the format EntryID_Integer (1ABC_1)
-
chain
(str
, default:None
) –The polymer "chain" identifier otherwise known as the "asym_id" from the PDB EntryID of interest
Returns: The Entity_ID
Source code in symdesign/resources/query/pdb.py
1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 |
|
get_entity_uniprot_id
get_entity_uniprot_id(**kwargs) -> str | None
Retrieve a UniProtID from the PDB API by passing various PDB identifiers or combinations thereof
Other Parameters:
-
entry=None
(str
) –The 4 character PDB EntryID of interest
-
entity_integer=None
(str
) –The entity integer from the EntryID of interest
-
entity_id=None
(str
) –The PDB formatted EntityID. Has the format EntryID_Integer (1ABC_1)
-
chain=None
(str
) –The polymer "chain" identifier otherwise known as the "asym_id" from the PDB EntryID of interest
Returns:
-
str | None
–The UniProt ID
Source code in symdesign/resources/query/pdb.py
2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 |
|
get_entity_reference_sequence
get_entity_reference_sequence(**kwargs) -> str | None
Query the PDB API for the reference amino acid sequence for a specified entity ID (PDB EntryID_Entity_ID)
Other Parameters:
-
entry=None
(str
) –The 4 character PDB EntryID of interest
-
entity_integer=None
(str
) –The entity integer from the EntryID of interest
-
entity_id=None
(str
) –The PDB formatted EntityID. Has the format EntryID_Integer (1ABC_1)
-
chain=None
(str
) –The polymer "chain" identifier otherwise known as the "asym_id" from the PDB EntryID of interest
Returns:
-
str | None
–One letter amino acid sequence
Source code in symdesign/resources/query/pdb.py
2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 |
|
get_rcsb_metadata_schema
get_rcsb_metadata_schema(file=os.path.join(current_dir, 'rcsb_schema.pkl'), search_only=True, force_update=False)
Parse the rcsb metadata schema for useful information from the format {"properties" : {"assignment_version" : {"type" : "string", "examples" : [ "V4_0_2" ], "description" : "Identifies the version of the feature assignment.", "rcsb_description" : [ {"text" : "Identifies the version of the feature assignment.", "context" : "dictionary"}, {"text" : "Feature Version", "context" : "brief"} ] }, ... "symmetry_type" : {"type" : "string", <-- provide data type provide options --> "enum" : [ "2D CRYSTAL", "3D CRYSTAL", "HELICAL", "POINT" ], provide description --> "description" : "The type of symmetry applied to the reconstruction", provide operators --> "rcsb_search_context" : [ "exact-match" ], "rcsb_full_text_priority" : 10, "rcsb_description" : [ {"text" : "The type of symmetry applied to the reconstruction", "context" : "dictionary"}, {"text" : "Symmetry Type (Em 3d Reconstruction)", "context" : "brief"} ] }, ... }, "title" : "Core Metadata", "additionalProperties" : false, "$comment" : "Schema version: 1.14.0" "required" : ["rcsb_id", "rcsb_entry_container_identifiers", "rcsb_entry_info", "rcsb_pubmed_container_identifiers", "rcsb_polymer_entity_container_identifiers", "rcsb_assembly_container_identifiers", "rcsb_uniprot_container_identifiers" ], "$schema" : "http://json-schema.org/draft-07/schema#", "description" : "Collective JSON schema that includes definitions for all indexed cores with RCSB metadata extensions.", } Returns: (dict): {attribute: {'dtype': 'string', 'description': 'XYZ', 'operators': {'equals'}, 'choices': []}, ...}
Source code in symdesign/resources/query/pdb.py
2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 |
|