expression
Add expression tags onto the termini of specific designs
get_sequence_features
get_sequence_features(sequence: Sequence[str | int]) -> dict[str, float]
For the specified amino acid sequence perform biochemical calculations related to solution properties
Parameters:
-
sequence
(Sequence[str | int]
) –The sequence to measure
Returns:
-
dict[str, float]
–A feature dictionary with each feature from the set below mapped to a float.
-
dict[str, float]
–{'extinction_coefficient_reduced', 'extinction_coefficient_oxidized', 'instability_index', 'molecular_weight', 'isoelectric_point', 'absorbance_0.1_red', 'absorbance_0.1_ox', }
Source code in symdesign/sequence/expression.py
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 |
|
calculate_protein_molecular_weight
calculate_protein_molecular_weight(sequence: Sequence[str | int]) -> float
Find the total molecular mass for the amino acids present in a sequence
Parameters:
-
sequence
(Sequence[str | int]
) –The sequence to measure
Returns:
-
float
–The molecular weight in daltons/atomic mass units
Source code in symdesign/sequence/expression.py
74 75 76 77 78 79 80 81 82 83 84 85 86 |
|
calculate_protein_isoelectric_point
calculate_protein_isoelectric_point(sequence: Sequence[str | int], threshold: float = 0.01) -> float
Find the total isoelectric point (pI) for the amino acids present in a sequence
Parameters:
-
sequence
(Sequence[str | int]
) –The sequence to measure
-
threshold
(float
, default:0.01
) –The pH unit value to consider the found pI passing
Returns:
-
float
–The molecular weight in daltons/atomic mass units
Source code in symdesign/sequence/expression.py
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 |
|
calculate_instability_index
calculate_instability_index(sequence: Sequence[str | int]) -> float
Find the total instability index for the amino acids present in a sequence. See PMID:2075190
Parameters:
-
sequence
(Sequence[str | int]
) –The sequence to measure
Returns:
-
float
–The value of the stability index where a value less than 40 indicates stability
Source code in symdesign/sequence/expression.py
209 210 211 212 213 214 215 216 217 218 219 220 |
|
molecular_extinction_coefficient
molecular_extinction_coefficient(sequence: Sequence[str | int]) -> tuple[float, float]
Calculate the molecular extinction coefficient for an amino acid sequence using the formula E(ProtOx) = Numb(Tyr) * Ext(Tyr) + Numb(Trp) * Ext(Trp) + Numb(Cystine) * Ext(Cystine) E(ProtRed) = Numb(Tyr) * Ext(Tyr) + Numb(Trp) * Ext(Trp)
Parameters:
-
sequence
(Sequence[str | int]
) –The sequence to measure
Returns:
-
tuple[float, float]
–The pair of molecular extinction coefficients, first with all Cysteine oxidized, then reduced
Source code in symdesign/sequence/expression.py
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
|
find_matching_expression_tags
find_matching_expression_tags(uniprot_id: str = None, entity_id: str = None, pdb_code: str = None, chain: str = None, **kwargs) -> list | list[dict[str, str]]
Find matching expression tags by PDB ID reference
Parameters:
-
uniprot_id
(str
, default:None
) –The uniprot_id to query tags from
-
entity_id
(str
, default:None
) – -
pdb_code
(str
, default:None
) –The pdb to query tags from. Requires chain argument as well
-
chain
(str
, default:None
) –The chain to query tags from. Requires pdb argument as well
Other Parameters:
-
alignment_length
–int = 12 - The length to slice the sequence plus any identified tags
Returns:
-
list | list[dict[str, str]]
–[{'name': 'his_tag', 'termini': 'n', 'sequence': 'MSGHHHHHHGKLKPNDLRI'}, ...], or [] if none found
Source code in symdesign/sequence/expression.py
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 |
|
report_termini_availability
report_termini_availability(matching_pdb_tags: list[dict[str, str]], n: bool = True, c: bool = True) -> str
From a list of possible tags, solve for the tag with the most observations in the PDB. If there are discrepancies, query the user for a solution
Parameters:
-
matching_pdb_tags
(list[dict[str, str]]
) –[{'name': 'his_tag', 'termini': 'n', 'sequence': 'MSGHHHHHHGKLKPNDLRI'}, ...]
-
n
(bool
, default:True
) –Whether the n-termini can be tagged
-
c
(bool
, default:True
) –Whether the c-termini can be tagged
Returns:
-
str
–The termini which should be tagger, either 'n', 'c' or 'skip' if the sequence shouldn't be used
Source code in symdesign/sequence/expression.py
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 |
|
select_tags_for_sequence
select_tags_for_sequence(sequence_id: str, matching_pdb_tags: list[dict[str, str]], preferred: str = None, n: bool = True, c: bool = True) -> dict[str, str | None]
From a list of possible tags, solve for the tag with the most observations in the PDB. If there are discrepancies, query the user for a solution
Parameters:
-
sequence_id
(str
) –The sequence identifier
-
matching_pdb_tags
(list[dict[str, str]]
) –[{'name': 'his_tag', 'termini': 'n', 'sequence': 'MSGHHHHHHGKLKPNDLRI'}, ...]
-
preferred
(str
, default:None
) –The name of a preferred tag provided by the user
-
n
(bool
, default:True
) –Whether the n-termini can be tagged
-
c
(bool
, default:True
) –Whether the c-termini can be tagged
Returns:
-
dict[str, str | None]
–{'name': 'his_tag', 'termini': 'n', 'sequence': 'MSGHHHHHHGKLKPNDLRI'}
Source code in symdesign/sequence/expression.py
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 |
|
add_expression_tag
add_expression_tag(tag: str, sequence: str) -> str
Add an expression tag to a sequence by aligning a tag specified with PDB reference sequence to the sequence
Parameters:
-
tag
(str
) –The tag with additional PDB reference sequence appended
-
sequence
(str
) –The sequence of interest
Returns:
-
str
–The final sequence with the tag added
Source code in symdesign/sequence/expression.py
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 |
|
find_expression_tags
find_expression_tags(sequence: str, alignment_length: int = 12) -> list | list[dict[str, str]]
Find all expression_tags on an input sequence from a reference set of expression_tags. Returns the matching tag sequence with additional protein sequence context equal to the passed alignment_length
Parameters:
-
sequence
(str
) –The sequence of interest i.e. 'MSGHHHHHHGKLKPNDLRI...'
-
alignment_length
(int
, default:12
) –The length to slice the sequence plus any identified tags
Returns:
-
list | list[dict[str, str]]
–A list of the available tags with a featured dictionary for each tag. Formatted as - {'name': str, 'termini': 'n'/'c', 'sequence': 'MSGHHHHHHGKLKPNDLRI'}. Returns [] if no tags are found
Source code in symdesign/sequence/expression.py
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 |
|
remove_internal_tags
remove_internal_tags(sequence: str, tag_names: list[str] = None) -> str
Remove matching tag sequences only, from the specified sequence
Defaults to known tags in constants.expression_tags
Parameters:
-
sequence
(str
) –The sequence of interest i.e. 'MSGHHHHHHGKLKPNDLRI...'
-
tag_names
(list[str]
, default:None
) –If only certain tags should be removed, a list with the names of known tags
Returns: 'MSGGKLKPNDLRI...' The modified sequence without the tag
Source code in symdesign/sequence/expression.py
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 |
|
remove_terminal_tags
remove_terminal_tags(sequence: str, tag_names: list[str] = None, termini: termini_literal = None) -> str
Remove matching tag sequences and any remaining termini from the specified sequence
Defaults to known tags in constants.expression_tags
Parameters:
-
sequence
(str
) –The sequence of interest i.e. 'MSGHHHHHHGKLKPNDLRI...'
-
tag_names
(list[str]
, default:None
) –If only certain tags should be removed, a list with the names of known tags
-
termini
(termini_literal
, default:None
) –Pass 'n' or 'c' if particular termini should be cleaned of tags
Returns: 'GGKLKPNDLRI...' The modified sequence without the tagged termini
Source code in symdesign/sequence/expression.py
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 |
|