flags
boolean_positional_prevent_msg
module-attribute
boolean_positional_prevent_msg = format
Use this message in all help keyword arguments using argparse.BooleanOptionalAction with default=True to specify the --no- prefix when the argument should be False
flags_kwargs
module-attribute
flags_kwargs = get(parser_name, {})
flags_kwargs has args (flag names) as key and keyword args (flag params) as values
cluster_defaults
module-attribute
cluster_defaults = dict(namespace='cluster')
Contains all the arguments and their default parameters used in clustering Poses
design_defaults
module-attribute
design_defaults = dict(namespace='design')
Contains all the arguments and their default parameters used in design
dock_defaults
module-attribute
dock_defaults = dict(namespace='dock')
Contains all the arguments and their default parameters used in docking
init_defaults
module-attribute
init_defaults = dict(namespace='init')
Contains all the arguments and their default parameters used in structure/sequence initialization
predict_defaults
module-attribute
predict_defaults = dict(namespace='predict')
Contains all the arguments and their default parameters used in structure prediction
available_modules
module-attribute
available_modules = sorted(difference(available_tools))
Contains all the registered modules
FlagStr
Bases: str
Flag instances are strings which represent possible input parameters to the program with additional formatting for program runtime to properly reflect underscore and dashed versions
_
property
_: str
Format a string from the command line format to a program acceptable string
Returns:
-
str
–The flag formatted by replacing any dash '-' with an underscore '_'
long
property
long: str
Format a flag for the command line
Returns:
-
str
–The flag formatted by replacing any underscore '_' with a dash '-'
format_for_cmdline
format_for_cmdline(string) -> str
Format a flag for the command line
Parameters:
-
string
–The string to format as a commandline flag
Returns:
-
str
–The string formatted by replacing any underscores '_' with a dash '-'
Source code in symdesign/flags/__init__.py
271 272 273 274 275 276 277 278 279 280 |
|
format_from_cmdline
format_from_cmdline(string) -> str
Format a string from the command line format to a program acceptable string
Parameters:
-
string
–The string to format as a python string
Returns:
-
str
–The flag formatted by replacing any dash '-' with an underscore '_'
Source code in symdesign/flags/__init__.py
283 284 285 286 287 288 289 290 291 292 |
|
format_args
format_args(flag_args: Sequence[str]) -> str
Create a string to format different flags for their various acceptance options on the command line
Parameters:
-
flag_args
(Sequence[str]
) –Typically a tuple of allowed flag "keywords" specified using "-" or "--"
Returns:
-
str
–The flag arguments formatted with a "/" between each allowed version
Source code in symdesign/flags/__init__.py
323 324 325 326 327 328 329 330 331 332 |
|
parse_weights
parse_weights(weights: list[str] = None, file: AnyStr = None) -> dict[str, list[tuple[Callable, Callable, dict, Any]]]
Given a command line specified set of metrics and values, parse into weights to select DataFrames accordingly
Parameters:
-
weights
(list[str]
, default:None
) –The command line collected weight arguments as specified in the weights --help
-
file
(AnyStr
, default:None
) –The path to a file specifying weights in JSON as specified in the weights --help
Returns:
-
dict[str, list[tuple[Callable, Callable, dict, Any]]]
–The parsed metric mapping linking each metric to a specified operation
Source code in symdesign/flags/__init__.py
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 |
|
parse_filters
parse_filters(filters: list[str] = None, file: AnyStr = None) -> dict[str, list[tuple[Callable, Callable, dict, Any]]]
Given a command line specified set of metrics and values, parse into filters to select DataFrames accordingly
Parameters:
-
filters
(list[str]
, default:None
) –The command line collected filter arguments as specified in the filters --help
-
file
(AnyStr
, default:None
) –The path to a file specifying filters in JSON as specified in the filters --help
Returns:
-
dict[str, list[tuple[Callable, Callable, dict, Any]]]
–The parsed metric mapping linking each metric to a specified operation
Source code in symdesign/flags/__init__.py
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 |
|
temp_gt0
temp_gt0(temp: str) -> float
Convert temperatures flags to float ensuring no 0 value
Source code in symdesign/flags/__init__.py
1430 1431 1432 1433 |
|
set_up_parser_with_groups
set_up_parser_with_groups(parser: ArgumentParser, parser_groups: dict[str, dict], required: bool = False)
Add the input arguments to the passed ArgumentParser
Parameters:
-
parser
(ArgumentParser
) –The ArgumentParser to add_argument_group() to
-
parser_groups
(dict[str, dict]
) –The groups to add to the ArgumentParser
-
required
(bool
, default:False
) –Whether the mutually exclusive group input is required
Source code in symdesign/flags/__init__.py
2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 |
|