repo
stringlengths
7
55
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
19
28.4k
docstring
stringlengths
1
46.9k
docstring_tokens
listlengths
1
1.97k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
3 values
summary
stringlengths
4
350
StackStorm/pybind
pybind/slxos/v17s_1_02/interface/port_channel/protocol/__init__.py
protocol._set_ptp
def _set_ptp(self, v, load=False): """ Setter method for ptp, mapped from YANG variable /interface/port_channel/protocol/ptp (container) If this variable is read-only (config: false) in the source YANG file, then _set_ptp is considered as a private method. Backends looking to populate this variable ...
python
def _set_ptp(self, v, load=False): """ Setter method for ptp, mapped from YANG variable /interface/port_channel/protocol/ptp (container) If this variable is read-only (config: false) in the source YANG file, then _set_ptp is considered as a private method. Backends looking to populate this variable ...
[ "def", "_set_ptp", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", "...
Setter method for ptp, mapped from YANG variable /interface/port_channel/protocol/ptp (container) If this variable is read-only (config: false) in the source YANG file, then _set_ptp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_ptp()...
[ "Setter", "method", "for", "ptp", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "protocol", "/", "ptp", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface/port_channel/protocol/__init__.py#L97-L121
train
Set the PTP protocol of the
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/area/nssa/__init__.py
nssa._set_nssa_area_no_summary
def _set_nssa_area_no_summary(self, v, load=False): """ Setter method for nssa_area_no_summary, mapped from YANG variable /rbridge_id/ipv6/router/ospf/area/nssa/nssa_area_no_summary (empty) If this variable is read-only (config: false) in the source YANG file, then _set_nssa_area_no_summary is considere...
python
def _set_nssa_area_no_summary(self, v, load=False): """ Setter method for nssa_area_no_summary, mapped from YANG variable /rbridge_id/ipv6/router/ospf/area/nssa/nssa_area_no_summary (empty) If this variable is read-only (config: false) in the source YANG file, then _set_nssa_area_no_summary is considere...
[ "def", "_set_nssa_area_no_summary", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", "...
Setter method for nssa_area_no_summary, mapped from YANG variable /rbridge_id/ipv6/router/ospf/area/nssa/nssa_area_no_summary (empty) If this variable is read-only (config: false) in the source YANG file, then _set_nssa_area_no_summary is considered as a private method. Backends looking to populate this var...
[ "Setter", "method", "for", "nssa_area_no_summary", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "ipv6", "/", "router", "/", "ospf", "/", "area", "/", "nssa", "/", "nssa_area_no_summary", "(", "empty", ")", "If", "this", "variable", "is", "re...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/area/nssa/__init__.py#L209-L232
train
Set the flag to indicate that the NSSA LSA is not in the NSSA area.
StackStorm/pybind
pybind/slxos/v17s_1_02/isis_state/router_isis_config/__init__.py
router_isis_config._set_l1_auth_profile
def _set_l1_auth_profile(self, v, load=False): """ Setter method for l1_auth_profile, mapped from YANG variable /isis_state/router_isis_config/l1_auth_profile (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_auth_profile is considered as a private metho...
python
def _set_l1_auth_profile(self, v, load=False): """ Setter method for l1_auth_profile, mapped from YANG variable /isis_state/router_isis_config/l1_auth_profile (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_auth_profile is considered as a private metho...
[ "def", "_set_l1_auth_profile", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for l1_auth_profile, mapped from YANG variable /isis_state/router_isis_config/l1_auth_profile (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_auth_profile is considered as a private method. Backends looking to populate this variable should do...
[ "Setter", "method", "for", "l1_auth_profile", "mapped", "from", "YANG", "variable", "/", "isis_state", "/", "router_isis_config", "/", "l1_auth_profile", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/isis_state/router_isis_config/__init__.py#L1178-L1199
train
Sets the L1 authentication profile for the sequence of ISIS states.
StackStorm/pybind
pybind/slxos/v17s_1_02/isis_state/router_isis_config/__init__.py
router_isis_config._set_l2_auth_profile
def _set_l2_auth_profile(self, v, load=False): """ Setter method for l2_auth_profile, mapped from YANG variable /isis_state/router_isis_config/l2_auth_profile (container) If this variable is read-only (config: false) in the source YANG file, then _set_l2_auth_profile is considered as a private metho...
python
def _set_l2_auth_profile(self, v, load=False): """ Setter method for l2_auth_profile, mapped from YANG variable /isis_state/router_isis_config/l2_auth_profile (container) If this variable is read-only (config: false) in the source YANG file, then _set_l2_auth_profile is considered as a private metho...
[ "def", "_set_l2_auth_profile", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for l2_auth_profile, mapped from YANG variable /isis_state/router_isis_config/l2_auth_profile (container) If this variable is read-only (config: false) in the source YANG file, then _set_l2_auth_profile is considered as a private method. Backends looking to populate this variable should do...
[ "Setter", "method", "for", "l2_auth_profile", "mapped", "from", "YANG", "variable", "/", "isis_state", "/", "router_isis_config", "/", "l2_auth_profile", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/isis_state/router_isis_config/__init__.py#L1211-L1232
train
Sets the l2 - auth - profile for the sequence of ISIS states.
StackStorm/pybind
pybind/slxos/v17s_1_02/isis_state/router_isis_config/__init__.py
router_isis_config._set_l1_spf_timer
def _set_l1_spf_timer(self, v, load=False): """ Setter method for l1_spf_timer, mapped from YANG variable /isis_state/router_isis_config/l1_spf_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_spf_timer is considered as a private method. Backends ...
python
def _set_l1_spf_timer(self, v, load=False): """ Setter method for l1_spf_timer, mapped from YANG variable /isis_state/router_isis_config/l1_spf_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_spf_timer is considered as a private method. Backends ...
[ "def", "_set_l1_spf_timer", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for l1_spf_timer, mapped from YANG variable /isis_state/router_isis_config/l1_spf_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_spf_timer is considered as a private method. Backends looking to populate this variable should do so via c...
[ "Setter", "method", "for", "l1_spf_timer", "mapped", "from", "YANG", "variable", "/", "isis_state", "/", "router_isis_config", "/", "l1_spf_timer", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/isis_state/router_isis_config/__init__.py#L1244-L1265
train
Sets the value of the L1_SPF_TIMER parameter in the sequence of objects.
StackStorm/pybind
pybind/slxos/v17s_1_02/isis_state/router_isis_config/__init__.py
router_isis_config._set_l1_spf6_timer
def _set_l1_spf6_timer(self, v, load=False): """ Setter method for l1_spf6_timer, mapped from YANG variable /isis_state/router_isis_config/l1_spf6_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_spf6_timer is considered as a private method. Backe...
python
def _set_l1_spf6_timer(self, v, load=False): """ Setter method for l1_spf6_timer, mapped from YANG variable /isis_state/router_isis_config/l1_spf6_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_spf6_timer is considered as a private method. Backe...
[ "def", "_set_l1_spf6_timer", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for l1_spf6_timer, mapped from YANG variable /isis_state/router_isis_config/l1_spf6_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_spf6_timer is considered as a private method. Backends looking to populate this variable should do so vi...
[ "Setter", "method", "for", "l1_spf6_timer", "mapped", "from", "YANG", "variable", "/", "isis_state", "/", "router_isis_config", "/", "l1_spf6_timer", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/isis_state/router_isis_config/__init__.py#L1310-L1331
train
Sets the value of the L1_SPF6_TIMER variable in the ISIS Logical State machine.
StackStorm/pybind
pybind/slxos/v17s_1_02/isis_state/router_isis_config/__init__.py
router_isis_config._set_l2_spf6_timer
def _set_l2_spf6_timer(self, v, load=False): """ Setter method for l2_spf6_timer, mapped from YANG variable /isis_state/router_isis_config/l2_spf6_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l2_spf6_timer is considered as a private method. Backe...
python
def _set_l2_spf6_timer(self, v, load=False): """ Setter method for l2_spf6_timer, mapped from YANG variable /isis_state/router_isis_config/l2_spf6_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l2_spf6_timer is considered as a private method. Backe...
[ "def", "_set_l2_spf6_timer", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for l2_spf6_timer, mapped from YANG variable /isis_state/router_isis_config/l2_spf6_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l2_spf6_timer is considered as a private method. Backends looking to populate this variable should do so vi...
[ "Setter", "method", "for", "l2_spf6_timer", "mapped", "from", "YANG", "variable", "/", "isis_state", "/", "router_isis_config", "/", "l2_spf6_timer", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/isis_state/router_isis_config/__init__.py#L1343-L1364
train
Sets the value of the L2_SPF6_TIMER variable in the ISIS Logical State machine.
StackStorm/pybind
pybind/slxos/v17r_2_00/keychain/__init__.py
keychain._set_name_of_keychain
def _set_name_of_keychain(self, v, load=False): """ Setter method for name_of_keychain, mapped from YANG variable /keychain/name_of_keychain (string) If this variable is read-only (config: false) in the source YANG file, then _set_name_of_keychain is considered as a private method. Backends looking ...
python
def _set_name_of_keychain(self, v, load=False): """ Setter method for name_of_keychain, mapped from YANG variable /keychain/name_of_keychain (string) If this variable is read-only (config: false) in the source YANG file, then _set_name_of_keychain is considered as a private method. Backends looking ...
[ "def", "_set_name_of_keychain", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "parent", "=", "getattr", "(", "self", ",", "\"_parent\"", ",", "None", ")", "if", "parent", "is", "not", "None", "and", "load", "is", "False", ":", "raise", ...
Setter method for name_of_keychain, mapped from YANG variable /keychain/name_of_keychain (string) If this variable is read-only (config: false) in the source YANG file, then _set_name_of_keychain is considered as a private method. Backends looking to populate this variable should do so via calling thisO...
[ "Setter", "method", "for", "name_of_keychain", "mapped", "from", "YANG", "variable", "/", "keychain", "/", "name_of_keychain", "(", "string", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/keychain/__init__.py#L94-L120
train
Sets the name of the keychain.
StackStorm/pybind
pybind/slxos/v17r_2_00/keychain/__init__.py
keychain._set_key
def _set_key(self, v, load=False): """ Setter method for key, mapped from YANG variable /keychain/key (list) If this variable is read-only (config: false) in the source YANG file, then _set_key is considered as a private method. Backends looking to populate this variable should do so via calling...
python
def _set_key(self, v, load=False): """ Setter method for key, mapped from YANG variable /keychain/key (list) If this variable is read-only (config: false) in the source YANG file, then _set_key is considered as a private method. Backends looking to populate this variable should do so via calling...
[ "def", "_set_key", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", "...
Setter method for key, mapped from YANG variable /keychain/key (list) If this variable is read-only (config: false) in the source YANG file, then _set_key is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_key() directly.
[ "Setter", "method", "for", "key", "mapped", "from", "YANG", "variable", "/", "keychain", "/", "key", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file", "then",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/keychain/__init__.py#L165-L186
train
Set the key of the based on the list of key - ids.
StackStorm/pybind
pybind/slxos/v17r_2_00/cfm_state/cfm_detail/domain/ma/__init__.py
ma._set_ma_type
def _set_ma_type(self, v, load=False): """ Setter method for ma_type, mapped from YANG variable /cfm_state/cfm_detail/domain/ma/ma_type (ma-types) If this variable is read-only (config: false) in the source YANG file, then _set_ma_type is considered as a private method. Backends looking to populate ...
python
def _set_ma_type(self, v, load=False): """ Setter method for ma_type, mapped from YANG variable /cfm_state/cfm_detail/domain/ma/ma_type (ma-types) If this variable is read-only (config: false) in the source YANG file, then _set_ma_type is considered as a private method. Backends looking to populate ...
[ "def", "_set_ma_type", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for ma_type, mapped from YANG variable /cfm_state/cfm_detail/domain/ma/ma_type (ma-types) If this variable is read-only (config: false) in the source YANG file, then _set_ma_type is considered as a private method. Backends looking to populate this variable should do so via calling thisObj....
[ "Setter", "method", "for", "ma_type", "mapped", "from", "YANG", "variable", "/", "cfm_state", "/", "cfm_detail", "/", "domain", "/", "ma", "/", "ma_type", "(", "ma", "-", "types", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/cfm_state/cfm_detail/domain/ma/__init__.py#L184-L207
train
Sets the type of the MA
StackStorm/pybind
pybind/slxos/v17r_2_00/cfm_state/cfm_detail/domain/ma/__init__.py
ma._set_ccm_interval
def _set_ccm_interval(self, v, load=False): """ Setter method for ccm_interval, mapped from YANG variable /cfm_state/cfm_detail/domain/ma/ccm_interval (ccm-intervals) If this variable is read-only (config: false) in the source YANG file, then _set_ccm_interval is considered as a private method. Back...
python
def _set_ccm_interval(self, v, load=False): """ Setter method for ccm_interval, mapped from YANG variable /cfm_state/cfm_detail/domain/ma/ccm_interval (ccm-intervals) If this variable is read-only (config: false) in the source YANG file, then _set_ccm_interval is considered as a private method. Back...
[ "def", "_set_ccm_interval", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for ccm_interval, mapped from YANG variable /cfm_state/cfm_detail/domain/ma/ccm_interval (ccm-intervals) If this variable is read-only (config: false) in the source YANG file, then _set_ccm_interval is considered as a private method. Backends looking to populate this variable should do so ...
[ "Setter", "method", "for", "ccm_interval", "mapped", "from", "YANG", "variable", "/", "cfm_state", "/", "cfm_detail", "/", "domain", "/", "ma", "/", "ccm_interval", "(", "ccm", "-", "intervals", ")", "If", "this", "variable", "is", "read", "-", "only", "("...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/cfm_state/cfm_detail/domain/ma/__init__.py#L258-L281
train
Sets the interval of the CCM sequence.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/vrf/address_family/ip/unicast/ip/route/static/bfd/__init__.py
bfd._set_bfd_static_route
def _set_bfd_static_route(self, v, load=False): """ Setter method for bfd_static_route, mapped from YANG variable /rbridge_id/vrf/address_family/ip/unicast/ip/route/static/bfd/bfd_static_route (list) If this variable is read-only (config: false) in the source YANG file, then _set_bfd_static_route is con...
python
def _set_bfd_static_route(self, v, load=False): """ Setter method for bfd_static_route, mapped from YANG variable /rbridge_id/vrf/address_family/ip/unicast/ip/route/static/bfd/bfd_static_route (list) If this variable is read-only (config: false) in the source YANG file, then _set_bfd_static_route is con...
[ "def", "_set_bfd_static_route", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for bfd_static_route, mapped from YANG variable /rbridge_id/vrf/address_family/ip/unicast/ip/route/static/bfd/bfd_static_route (list) If this variable is read-only (config: false) in the source YANG file, then _set_bfd_static_route is considered as a private method. Backends looking to populat...
[ "Setter", "method", "for", "bfd_static_route", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "vrf", "/", "address_family", "/", "ip", "/", "unicast", "/", "ip", "/", "route", "/", "static", "/", "bfd", "/", "bfd_static_route", "(", "list", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/vrf/address_family/ip/unicast/ip/route/static/bfd/__init__.py#L92-L113
train
Set the value of bfd_static_route in the virtual network.
BD2KGenomics/protect
attic/ProTECT.py
parse_config_file
def parse_config_file(job, config_file): """ This module will parse the config file withing params and set up the variables that will be passed to the various tools in the pipeline. ARGUMENTS config_file: string containing path to a config file. An example config file is available...
python
def parse_config_file(job, config_file): """ This module will parse the config file withing params and set up the variables that will be passed to the various tools in the pipeline. ARGUMENTS config_file: string containing path to a config file. An example config file is available...
[ "def", "parse_config_file", "(", "job", ",", "config_file", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Parsing config file'", ")", "config_file", "=", "os", ".", "path", ".", "abspath", "(", "config_file", ")", "if", "not", "os", ".", "p...
This module will parse the config file withing params and set up the variables that will be passed to the various tools in the pipeline. ARGUMENTS config_file: string containing path to a config file. An example config file is available at https://s3-us-west-2.amaz...
[ "This", "module", "will", "parse", "the", "config", "file", "withing", "params", "and", "set", "up", "the", "variables", "that", "will", "be", "passed", "to", "the", "various", "tools", "in", "the", "pipeline", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L46-L109
train
This module will parse the config file and return the sample sets universal options and per - tool options.
BD2KGenomics/protect
attic/ProTECT.py
pipeline_launchpad
def pipeline_launchpad(job, fastqs, univ_options, tool_options): """ The precision immuno pipeline begins at this module. The DAG can be viewed in Flowchart.txt This module corresponds to node 0 on the tree """ # Add Patient id to univ_options as is is passed to every major node in the DAG and can ...
python
def pipeline_launchpad(job, fastqs, univ_options, tool_options): """ The precision immuno pipeline begins at this module. The DAG can be viewed in Flowchart.txt This module corresponds to node 0 on the tree """ # Add Patient id to univ_options as is is passed to every major node in the DAG and can ...
[ "def", "pipeline_launchpad", "(", "job", ",", "fastqs", ",", "univ_options", ",", "tool_options", ")", ":", "# Add Patient id to univ_options as is is passed to every major node in the DAG and can be used", "# as a prefix for the logfile.", "univ_options", "[", "'patient'", "]", ...
The precision immuno pipeline begins at this module. The DAG can be viewed in Flowchart.txt This module corresponds to node 0 on the tree
[ "The", "precision", "immuno", "pipeline", "begins", "at", "this", "module", ".", "The", "DAG", "can", "be", "viewed", "in", "Flowchart", ".", "txt" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L112-L235
train
This module is used to launch a tree of DAGs.
BD2KGenomics/protect
attic/ProTECT.py
delete_fastqs
def delete_fastqs(job, fastqs): """ This module will delete the fastqs from teh job Store once their purpose has been achieved (i.e. after all mapping steps) ARGUMENTS 1. fastqs: Dict of list of input fastqs fastqs +- 'tumor_rna': [<JSid for 1.fastq> , <JSid for 2.fastq>] ...
python
def delete_fastqs(job, fastqs): """ This module will delete the fastqs from teh job Store once their purpose has been achieved (i.e. after all mapping steps) ARGUMENTS 1. fastqs: Dict of list of input fastqs fastqs +- 'tumor_rna': [<JSid for 1.fastq> , <JSid for 2.fastq>] ...
[ "def", "delete_fastqs", "(", "job", ",", "fastqs", ")", ":", "for", "fq_type", "in", "[", "'tumor_rna'", ",", "'tumor_dna'", ",", "'normal_dna'", "]", ":", "for", "i", "in", "xrange", "(", "0", ",", "2", ")", ":", "job", ".", "fileStore", ".", "delet...
This module will delete the fastqs from teh job Store once their purpose has been achieved (i.e. after all mapping steps) ARGUMENTS 1. fastqs: Dict of list of input fastqs fastqs +- 'tumor_rna': [<JSid for 1.fastq> , <JSid for 2.fastq>] +- 'tumor_dna': [<JSid for 1.fastq> ,...
[ "This", "module", "will", "delete", "the", "fastqs", "from", "teh", "job", "Store", "once", "their", "purpose", "has", "been", "achieved", "(", "i", ".", "e", ".", "after", "all", "mapping", "steps", ")" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L238-L253
train
This module deletes the fastqs from the job Store.
BD2KGenomics/protect
attic/ProTECT.py
run_cutadapt
def run_cutadapt(job, fastqs, univ_options, cutadapt_options): """ This module runs cutadapt on the input RNA fastq files and then calls the RNA aligners. ARGUMENTS 1. fastqs: Dict of list of input RNA-Seq fastqs fastqs +- 'tumor_rna': [<JSid for 1.fastq> , <JSid for 2.fastq>] ...
python
def run_cutadapt(job, fastqs, univ_options, cutadapt_options): """ This module runs cutadapt on the input RNA fastq files and then calls the RNA aligners. ARGUMENTS 1. fastqs: Dict of list of input RNA-Seq fastqs fastqs +- 'tumor_rna': [<JSid for 1.fastq> , <JSid for 2.fastq>] ...
[ "def", "run_cutadapt", "(", "job", ",", "fastqs", ",", "univ_options", ",", "cutadapt_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running cutadapt on %s'", "%", "univ_options", "[", "'patient'", "]", ")", "work_dir", "=", "job", "."...
This module runs cutadapt on the input RNA fastq files and then calls the RNA aligners. ARGUMENTS 1. fastqs: Dict of list of input RNA-Seq fastqs fastqs +- 'tumor_rna': [<JSid for 1.fastq> , <JSid for 2.fastq>] 2. univ_options: Dict of universal arguments used by almost all tools ...
[ "This", "module", "runs", "cutadapt", "on", "the", "input", "RNA", "fastq", "files", "and", "then", "calls", "the", "RNA", "aligners", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L256-L298
train
This module runs cutadapt on the RNA - Seq files and then calls the RNA aligners.
BD2KGenomics/protect
attic/ProTECT.py
run_star
def run_star(job, fastqs, univ_options, star_options): """ This module uses STAR to align the RNA fastqs to the reference ARGUMENTS 1. fastqs: REFER RETURN VALUE of run_cutadapt() 2. univ_options: Dict of universal arguments used by almost all tools univ_options +- 'dockerhub...
python
def run_star(job, fastqs, univ_options, star_options): """ This module uses STAR to align the RNA fastqs to the reference ARGUMENTS 1. fastqs: REFER RETURN VALUE of run_cutadapt() 2. univ_options: Dict of universal arguments used by almost all tools univ_options +- 'dockerhub...
[ "def", "run_star", "(", "job", ",", "fastqs", ",", "univ_options", ",", "star_options", ")", ":", "assert", "star_options", "[", "'type'", "]", "in", "(", "'star'", ",", "'starlong'", ")", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running STAR on %...
This module uses STAR to align the RNA fastqs to the reference ARGUMENTS 1. fastqs: REFER RETURN VALUE of run_cutadapt() 2. univ_options: Dict of universal arguments used by almost all tools univ_options +- 'dockerhub': <dockerhub to use> 3. star_options: Dict of parameters speci...
[ "This", "module", "uses", "STAR", "to", "align", "the", "RNA", "fastqs", "to", "the", "reference" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L301-L361
train
This module uses STAR to align the RNA fastqs to the reference tree and run the star long RNA fastqs.
BD2KGenomics/protect
attic/ProTECT.py
run_bwa
def run_bwa(job, fastqs, sample_type, univ_options, bwa_options): """ This module aligns the SAMPLE_TYPE dna fastqs to the reference ARGUMENTS -- <ST> depicts the sample type. Substitute with 'tumor'/'normal' 1. fastqs: Dict of list of input WGS/WXS fastqs fastqs +- '<ST>_dna': [...
python
def run_bwa(job, fastqs, sample_type, univ_options, bwa_options): """ This module aligns the SAMPLE_TYPE dna fastqs to the reference ARGUMENTS -- <ST> depicts the sample type. Substitute with 'tumor'/'normal' 1. fastqs: Dict of list of input WGS/WXS fastqs fastqs +- '<ST>_dna': [...
[ "def", "run_bwa", "(", "job", ",", "fastqs", ",", "sample_type", ",", "univ_options", ",", "bwa_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running bwa on %s:%s'", "%", "(", "univ_options", "[", "'patient'", "]", ",", "sample_type",...
This module aligns the SAMPLE_TYPE dna fastqs to the reference ARGUMENTS -- <ST> depicts the sample type. Substitute with 'tumor'/'normal' 1. fastqs: Dict of list of input WGS/WXS fastqs fastqs +- '<ST>_dna': [<JSid for 1.fastq> , <JSid for 2.fastq>] 2. sample_type: string of 'tumor_...
[ "This", "module", "aligns", "the", "SAMPLE_TYPE", "dna", "fastqs", "to", "the", "reference" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L364-L414
train
This module aligns the DNA fastqs to the reference DNA fastqs and runs bwa on the tree tree.
BD2KGenomics/protect
attic/ProTECT.py
bam_conversion
def bam_conversion(job, samfile, sample_type, univ_options): """ This module converts SAMFILE from sam to bam ARGUMENTS 1. samfile: <JSid for a sam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools univ_opt...
python
def bam_conversion(job, samfile, sample_type, univ_options): """ This module converts SAMFILE from sam to bam ARGUMENTS 1. samfile: <JSid for a sam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools univ_opt...
[ "def", "bam_conversion", "(", "job", ",", "samfile", ",", "sample_type", ",", "univ_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running sam2bam on %s:%s'", "%", "(", "univ_options", "[", "'patient'", "]", ",", "sample_type", ")", ")...
This module converts SAMFILE from sam to bam ARGUMENTS 1. samfile: <JSid for a sam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools univ_options +- 'dockerhub': <dockerhub to use> RETURN VALUES...
[ "This", "module", "converts", "SAMFILE", "from", "sam", "to", "bam" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L417-L448
train
This module converts SAMFILE from sam to bam
BD2KGenomics/protect
attic/ProTECT.py
fix_bam_header
def fix_bam_header(job, bamfile, sample_type, univ_options): """ This module modified the header in BAMFILE ARGUMENTS 1. bamfile: <JSid for a bam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools univ_optio...
python
def fix_bam_header(job, bamfile, sample_type, univ_options): """ This module modified the header in BAMFILE ARGUMENTS 1. bamfile: <JSid for a bam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools univ_optio...
[ "def", "fix_bam_header", "(", "job", ",", "bamfile", ",", "sample_type", ",", "univ_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running reheader on %s:%s'", "%", "(", "univ_options", "[", "'patient'", "]", ",", "sample_type", ")", "...
This module modified the header in BAMFILE ARGUMENTS 1. bamfile: <JSid for a bam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools univ_options +- 'dockerhub': <dockerhub to use> RETURN VALUES ...
[ "This", "module", "modified", "the", "header", "in", "BAMFILE" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L451-L491
train
This module reheader the bam file in BAMFILE and fix the header in fixPG. bam file in BAMFILE
BD2KGenomics/protect
attic/ProTECT.py
add_readgroups
def add_readgroups(job, bamfile, sample_type, univ_options): """ This module adds the appropriate read groups to the bam file ARGUMENTS 1. bamfile: <JSid for a bam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools ...
python
def add_readgroups(job, bamfile, sample_type, univ_options): """ This module adds the appropriate read groups to the bam file ARGUMENTS 1. bamfile: <JSid for a bam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools ...
[ "def", "add_readgroups", "(", "job", ",", "bamfile", ",", "sample_type", ",", "univ_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running add_read_groups on %s:%s'", "%", "(", "univ_options", "[", "'patient'", "]", ",", "sample_type", "...
This module adds the appropriate read groups to the bam file ARGUMENTS 1. bamfile: <JSid for a bam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools univ_options |- 'dockerhub': <dockerhub to use> ...
[ "This", "module", "adds", "the", "appropriate", "read", "groups", "to", "the", "bam", "file", "ARGUMENTS", "1", ".", "bamfile", ":", "<JSid", "for", "a", "bam", "file", ">", "2", ".", "sample_type", ":", "string", "of", "tumor_dna", "or", "normal_dna", "...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L494-L530
train
This module adds the appropriate read groups to the bam file.
BD2KGenomics/protect
attic/ProTECT.py
index_bamfile
def index_bamfile(job, bamfile, sample_type, univ_options): """ This module indexes BAMFILE ARGUMENTS 1. bamfile: <JSid for a bam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools univ_options ...
python
def index_bamfile(job, bamfile, sample_type, univ_options): """ This module indexes BAMFILE ARGUMENTS 1. bamfile: <JSid for a bam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools univ_options ...
[ "def", "index_bamfile", "(", "job", ",", "bamfile", ",", "sample_type", ",", "univ_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running samtools-index on %s:%s'", "%", "(", "univ_options", "[", "'patient'", "]", ",", "sample_type", ")"...
This module indexes BAMFILE ARGUMENTS 1. bamfile: <JSid for a bam file> 2. sample_type: string of 'tumor_dna' or 'normal_dna' 3. univ_options: Dict of universal arguments used by almost all tools univ_options +- 'dockerhub': <dockerhub to use> RETURN VALUES 1. output_fil...
[ "This", "module", "indexes", "BAMFILE", "ARGUMENTS", "1", ".", "bamfile", ":", "<JSid", "for", "a", "bam", "file", ">", "2", ".", "sample_type", ":", "string", "of", "tumor_dna", "or", "normal_dna", "3", ".", "univ_options", ":", "Dict", "of", "universal",...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L533-L562
train
This module indexes a BAM file and returns a list of output files.
BD2KGenomics/protect
attic/ProTECT.py
run_rsem
def run_rsem(job, star_bams, univ_options, rsem_options): """ This module will run rsem on the RNA Bam file. ARGUMENTS 1. star_bams: Dict of input STAR bams star_bams +- 'rnaAligned.toTranscriptome.out.bam': <JSid> 2. univ_options: Dict of universal arguments used by almost a...
python
def run_rsem(job, star_bams, univ_options, rsem_options): """ This module will run rsem on the RNA Bam file. ARGUMENTS 1. star_bams: Dict of input STAR bams star_bams +- 'rnaAligned.toTranscriptome.out.bam': <JSid> 2. univ_options: Dict of universal arguments used by almost a...
[ "def", "run_rsem", "(", "job", ",", "star_bams", ",", "univ_options", ",", "rsem_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running rsem index on %s'", "%", "univ_options", "[", "'patient'", "]", ")", "work_dir", "=", "job", ".", ...
This module will run rsem on the RNA Bam file. ARGUMENTS 1. star_bams: Dict of input STAR bams star_bams +- 'rnaAligned.toTranscriptome.out.bam': <JSid> 2. univ_options: Dict of universal arguments used by almost all tools univ_options +- 'dockerhub': <docker...
[ "This", "module", "will", "run", "rsem", "on", "the", "RNA", "Bam", "file", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L565-L603
train
This module will run rsem on the RNA Bam file.
BD2KGenomics/protect
attic/ProTECT.py
assess_mhc_genes
def assess_mhc_genes(job, isoform_expression, rna_haplotype, univ_options, mhc_genes_options): """ This module will assess the prevalence of the various genes in the MHC pathway and return a report in the tsv format :param isoform_expression: Isoform expression from run_rsem :param rna_haplotype: PH...
python
def assess_mhc_genes(job, isoform_expression, rna_haplotype, univ_options, mhc_genes_options): """ This module will assess the prevalence of the various genes in the MHC pathway and return a report in the tsv format :param isoform_expression: Isoform expression from run_rsem :param rna_haplotype: PH...
[ "def", "assess_mhc_genes", "(", "job", ",", "isoform_expression", ",", "rna_haplotype", ",", "univ_options", ",", "mhc_genes_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running mhc gene assessment on %s'", "%", "univ_options", "[", "'patien...
This module will assess the prevalence of the various genes in the MHC pathway and return a report in the tsv format :param isoform_expression: Isoform expression from run_rsem :param rna_haplotype: PHLAT output from running on rna :param univ_options: Universal options for the pipeline :param mhc_g...
[ "This", "module", "will", "assess", "the", "prevalence", "of", "the", "various", "genes", "in", "the", "MHC", "pathway", "and", "return", "a", "report", "in", "the", "tsv", "format", ":", "param", "isoform_expression", ":", "Isoform", "expression", "from", "...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L606-L678
train
This module assess the prevalence of the various genes in the MHC pathway and return the MHC pathway as tsv format.
BD2KGenomics/protect
attic/ProTECT.py
merge_radia
def merge_radia(job, perchrom_rvs): """ This module will merge the per-chromosome radia files created by spawn_radia into a genome vcf. It will make 2 vcfs, one for PASSing non-germline calls, and one for all calls. ARGUMENTS 1. perchrom_rvs: REFER RETURN VALUE of spawn_radia() RETURN VALUES ...
python
def merge_radia(job, perchrom_rvs): """ This module will merge the per-chromosome radia files created by spawn_radia into a genome vcf. It will make 2 vcfs, one for PASSing non-germline calls, and one for all calls. ARGUMENTS 1. perchrom_rvs: REFER RETURN VALUE of spawn_radia() RETURN VALUES ...
[ "def", "merge_radia", "(", "job", ",", "perchrom_rvs", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running merge_radia'", ")", "work_dir", "=", "job", ".", "fileStore", ".", "getLocalTempDir", "(", ")", "# We need to squash the input dict of dicts ...
This module will merge the per-chromosome radia files created by spawn_radia into a genome vcf. It will make 2 vcfs, one for PASSing non-germline calls, and one for all calls. ARGUMENTS 1. perchrom_rvs: REFER RETURN VALUE of spawn_radia() RETURN VALUES 1. output_files: Dict of outputs ...
[ "This", "module", "will", "merge", "the", "per", "-", "chromosome", "radia", "files", "created", "by", "spawn_radia", "into", "a", "genome", "vcf", ".", "It", "will", "make", "2", "vcfs", "one", "for", "PASSing", "non", "-", "germline", "calls", "and", "...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L738-L787
train
This module will merge the radia files created by spawn_radia into a single tree of radia files.
BD2KGenomics/protect
attic/ProTECT.py
run_radia
def run_radia(job, bams, univ_options, radia_options, chrom): """ This module will run radia on the RNA and DNA bams ARGUMENTS 1. bams: Dict of bams and their indexes bams |- 'tumor_rna': <JSid> |- 'tumor_rnai': <JSid> |- 'tumor_dna': <JSid> |- 'tumor_dnai': ...
python
def run_radia(job, bams, univ_options, radia_options, chrom): """ This module will run radia on the RNA and DNA bams ARGUMENTS 1. bams: Dict of bams and their indexes bams |- 'tumor_rna': <JSid> |- 'tumor_rnai': <JSid> |- 'tumor_dna': <JSid> |- 'tumor_dnai': ...
[ "def", "run_radia", "(", "job", ",", "bams", ",", "univ_options", ",", "radia_options", ",", "chrom", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running radia on %s:%s'", "%", "(", "univ_options", "[", "'patient'", "]", ",", "chrom", ")", ...
This module will run radia on the RNA and DNA bams ARGUMENTS 1. bams: Dict of bams and their indexes bams |- 'tumor_rna': <JSid> |- 'tumor_rnai': <JSid> |- 'tumor_dna': <JSid> |- 'tumor_dnai': <JSid> |- 'normal_dna': <JSid> +- 'normal_dnai': <JSid> ...
[ "This", "module", "will", "run", "radia", "on", "the", "RNA", "and", "DNA", "bams" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L790-L857
train
This module will run radia on the RNA and DNA bams and return the results as a single vcf file.
BD2KGenomics/protect
attic/ProTECT.py
run_filter_radia
def run_filter_radia(job, bams, radia_file, univ_options, radia_options, chrom): """ This module will run filterradia on the RNA and DNA bams. ARGUMENTS 1. bams: REFER ARGUMENTS of run_radia() 2. univ_options: REFER ARGUMENTS of run_radia() 3. radia_file: <JSid of vcf generated by run_radia()> ...
python
def run_filter_radia(job, bams, radia_file, univ_options, radia_options, chrom): """ This module will run filterradia on the RNA and DNA bams. ARGUMENTS 1. bams: REFER ARGUMENTS of run_radia() 2. univ_options: REFER ARGUMENTS of run_radia() 3. radia_file: <JSid of vcf generated by run_radia()> ...
[ "def", "run_filter_radia", "(", "job", ",", "bams", ",", "radia_file", ",", "univ_options", ",", "radia_options", ",", "chrom", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running filter-radia on %s:%s'", "%", "(", "univ_options", "[", "'patien...
This module will run filterradia on the RNA and DNA bams. ARGUMENTS 1. bams: REFER ARGUMENTS of run_radia() 2. univ_options: REFER ARGUMENTS of run_radia() 3. radia_file: <JSid of vcf generated by run_radia()> 3. radia_options: REFER ARGUMENTS of run_radia() 4. chrom: REFER ARGUMENTS of run_rad...
[ "This", "module", "will", "run", "filterradia", "on", "the", "RNA", "and", "DNA", "bams", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L860-L921
train
This module will run filterradia on the RNA and DNA bams.
BD2KGenomics/protect
attic/ProTECT.py
merge_mutect
def merge_mutect(job, perchrom_rvs): """ This module will merge the per-chromosome mutect files created by spawn_mutect into a genome vcf. It will make 2 vcfs, one for PASSing non-germline calls, and one for all calls. ARGUMENTS 1. perchrom_rvs: REFER RETURN VALUE of spawn_mutect() RETURN VAL...
python
def merge_mutect(job, perchrom_rvs): """ This module will merge the per-chromosome mutect files created by spawn_mutect into a genome vcf. It will make 2 vcfs, one for PASSing non-germline calls, and one for all calls. ARGUMENTS 1. perchrom_rvs: REFER RETURN VALUE of spawn_mutect() RETURN VAL...
[ "def", "merge_mutect", "(", "job", ",", "perchrom_rvs", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running merge_mutect'", ")", "work_dir", "=", "job", ".", "fileStore", ".", "getLocalTempDir", "(", ")", "# We need to squash the input dict of dict...
This module will merge the per-chromosome mutect files created by spawn_mutect into a genome vcf. It will make 2 vcfs, one for PASSing non-germline calls, and one for all calls. ARGUMENTS 1. perchrom_rvs: REFER RETURN VALUE of spawn_mutect() RETURN VALUES 1. output_files: <JSid for mutect_passing...
[ "This", "module", "will", "merge", "the", "per", "-", "chromosome", "mutect", "files", "created", "by", "spawn_mutect", "into", "a", "genome", "vcf", ".", "It", "will", "make", "2", "vcfs", "one", "for", "PASSing", "non", "-", "germline", "calls", "and", ...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L973-L1026
train
This module will merge the per - chromosome mutect files into a single genome tree.
BD2KGenomics/protect
attic/ProTECT.py
run_mutect
def run_mutect(job, tumor_bam, normal_bam, univ_options, mutect_options, chrom): """ This module will run mutect on the DNA bams ARGUMENTS 1. tumor_bam: REFER ARGUMENTS of spawn_mutect() 2. normal_bam: REFER ARGUMENTS of spawn_mutect() 3. univ_options: REFER ARGUMENTS of spawn_mutect() 4. m...
python
def run_mutect(job, tumor_bam, normal_bam, univ_options, mutect_options, chrom): """ This module will run mutect on the DNA bams ARGUMENTS 1. tumor_bam: REFER ARGUMENTS of spawn_mutect() 2. normal_bam: REFER ARGUMENTS of spawn_mutect() 3. univ_options: REFER ARGUMENTS of spawn_mutect() 4. m...
[ "def", "run_mutect", "(", "job", ",", "tumor_bam", ",", "normal_bam", ",", "univ_options", ",", "mutect_options", ",", "chrom", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running mutect on %s:%s'", "%", "(", "univ_options", "[", "'patient'", ...
This module will run mutect on the DNA bams ARGUMENTS 1. tumor_bam: REFER ARGUMENTS of spawn_mutect() 2. normal_bam: REFER ARGUMENTS of spawn_mutect() 3. univ_options: REFER ARGUMENTS of spawn_mutect() 4. mutect_options: REFER ARGUMENTS of spawn_mutect() 5. chrom: String containing chromosome n...
[ "This", "module", "will", "run", "mutect", "on", "the", "DNA", "bams" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1029-L1083
train
This module will run the mutect on the DNA bams and return the output files.
BD2KGenomics/protect
attic/ProTECT.py
run_indel_caller
def run_indel_caller(job, tumor_bam, normal_bam, univ_options, indel_options): """ This module will run an indel caller on the DNA bams. This module will be implemented in the future. This module corresponds to node 13 on the tree """ job.fileStore.logToMaster('Running INDEL on %s' % univ_opti...
python
def run_indel_caller(job, tumor_bam, normal_bam, univ_options, indel_options): """ This module will run an indel caller on the DNA bams. This module will be implemented in the future. This module corresponds to node 13 on the tree """ job.fileStore.logToMaster('Running INDEL on %s' % univ_opti...
[ "def", "run_indel_caller", "(", "job", ",", "tumor_bam", ",", "normal_bam", ",", "univ_options", ",", "indel_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running INDEL on %s'", "%", "univ_options", "[", "'patient'", "]", ")", "indel_fi...
This module will run an indel caller on the DNA bams. This module will be implemented in the future. This module corresponds to node 13 on the tree
[ "This", "module", "will", "run", "an", "indel", "caller", "on", "the", "DNA", "bams", ".", "This", "module", "will", "be", "implemented", "in", "the", "future", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1086-L1096
train
This module will run an indel caller on the DNA bams.
BD2KGenomics/protect
attic/ProTECT.py
run_fusion_caller
def run_fusion_caller(job, star_bam, univ_options, fusion_options): """ This module will run a fusion caller on DNA bams. This module will be implemented in the future. This module corresponds to node 10 on the tree """ job.fileStore.logToMaster('Running FUSION on %s' % univ_options['patient']...
python
def run_fusion_caller(job, star_bam, univ_options, fusion_options): """ This module will run a fusion caller on DNA bams. This module will be implemented in the future. This module corresponds to node 10 on the tree """ job.fileStore.logToMaster('Running FUSION on %s' % univ_options['patient']...
[ "def", "run_fusion_caller", "(", "job", ",", "star_bam", ",", "univ_options", ",", "fusion_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running FUSION on %s'", "%", "univ_options", "[", "'patient'", "]", ")", "fusion_file", "=", "job",...
This module will run a fusion caller on DNA bams. This module will be implemented in the future. This module corresponds to node 10 on the tree
[ "This", "module", "will", "run", "a", "fusion", "caller", "on", "DNA", "bams", ".", "This", "module", "will", "be", "implemented", "in", "the", "future", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1099-L1109
train
This module will run a fusion caller on the DNA bams.
BD2KGenomics/protect
attic/ProTECT.py
run_mutation_aggregator
def run_mutation_aggregator(job, fusion_output, radia_output, mutect_output, indel_output, univ_options): """ This module will aggregate all the mutations called in the previous steps and will then call snpeff on the results. ARGUMENTS 1. fusion_output: <JSid for vcf gen...
python
def run_mutation_aggregator(job, fusion_output, radia_output, mutect_output, indel_output, univ_options): """ This module will aggregate all the mutations called in the previous steps and will then call snpeff on the results. ARGUMENTS 1. fusion_output: <JSid for vcf gen...
[ "def", "run_mutation_aggregator", "(", "job", ",", "fusion_output", ",", "radia_output", ",", "mutect_output", ",", "indel_output", ",", "univ_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Aggregating mutations for %s'", "%", "univ_options", ...
This module will aggregate all the mutations called in the previous steps and will then call snpeff on the results. ARGUMENTS 1. fusion_output: <JSid for vcf generated by the fusion caller> 2. radia_output: <JSid for vcf generated by radia> 3. mutect_output: <JSid for vcf generated by mutect> 4...
[ "This", "module", "will", "aggregate", "all", "the", "mutations", "called", "in", "the", "previous", "steps", "and", "will", "then", "call", "snpeff", "on", "the", "results", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1112-L1161
train
This module will aggregate all the mutations in the tree and then call them on the results.
BD2KGenomics/protect
attic/ProTECT.py
run_snpeff
def run_snpeff(job, merged_mutation_file, univ_options, snpeff_options): """ This module will run snpeff on the aggregated mutation calls. Currently the only mutations called are SNPs hence SnpEff suffices. This node will be replaced in the future with another translator. ARGUMENTS 1. merged_m...
python
def run_snpeff(job, merged_mutation_file, univ_options, snpeff_options): """ This module will run snpeff on the aggregated mutation calls. Currently the only mutations called are SNPs hence SnpEff suffices. This node will be replaced in the future with another translator. ARGUMENTS 1. merged_m...
[ "def", "run_snpeff", "(", "job", ",", "merged_mutation_file", ",", "univ_options", ",", "snpeff_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running snpeff on %s'", "%", "univ_options", "[", "'patient'", "]", ")", "work_dir", "=", "job...
This module will run snpeff on the aggregated mutation calls. Currently the only mutations called are SNPs hence SnpEff suffices. This node will be replaced in the future with another translator. ARGUMENTS 1. merged_mutation_file: <JSid for merged vcf> 2. univ_options: Dict of universal arguments ...
[ "This", "module", "will", "run", "snpeff", "on", "the", "aggregated", "mutation", "calls", ".", "Currently", "the", "only", "mutations", "called", "are", "SNPs", "hence", "SnpEff", "suffices", ".", "This", "node", "will", "be", "replaced", "in", "the", "futu...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1164-L1205
train
This module will run SNPs on the merged mutation file.
BD2KGenomics/protect
attic/ProTECT.py
run_transgene
def run_transgene(job, snpeffed_file, univ_options, transgene_options): """ This module will run transgene on the input vcf file from the aggregator and produce the peptides for MHC prediction ARGUMENTS 1. snpeffed_file: <JSid for snpeffed vcf> 2. univ_options: Dict of universal arguments used ...
python
def run_transgene(job, snpeffed_file, univ_options, transgene_options): """ This module will run transgene on the input vcf file from the aggregator and produce the peptides for MHC prediction ARGUMENTS 1. snpeffed_file: <JSid for snpeffed vcf> 2. univ_options: Dict of universal arguments used ...
[ "def", "run_transgene", "(", "job", ",", "snpeffed_file", ",", "univ_options", ",", "transgene_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running transgene on %s'", "%", "univ_options", "[", "'patient'", "]", ")", "work_dir", "=", "j...
This module will run transgene on the input vcf file from the aggregator and produce the peptides for MHC prediction ARGUMENTS 1. snpeffed_file: <JSid for snpeffed vcf> 2. univ_options: Dict of universal arguments used by almost all tools univ_options +- 'dockerhub': <dockerhub...
[ "This", "module", "will", "run", "transgene", "on", "the", "input", "vcf", "file", "from", "the", "aggregator", "and", "produce", "the", "peptides", "for", "MHC", "prediction" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1208-L1249
train
This module will run transgene on the input vcf file and produce the n - mer peptide fastas s.
BD2KGenomics/protect
attic/ProTECT.py
run_phlat
def run_phlat(job, fastqs, sample_type, univ_options, phlat_options): """ This module will run PHLAT on SAMPLE_TYPE fastqs. ARGUMENTS -- <ST> depicts the sample type. Substitute with 'tumor_dna', 'normal_dna', or 'tumor_rna' 1. fastqs: Dict of list of input WGS/WXS fastqs fast...
python
def run_phlat(job, fastqs, sample_type, univ_options, phlat_options): """ This module will run PHLAT on SAMPLE_TYPE fastqs. ARGUMENTS -- <ST> depicts the sample type. Substitute with 'tumor_dna', 'normal_dna', or 'tumor_rna' 1. fastqs: Dict of list of input WGS/WXS fastqs fast...
[ "def", "run_phlat", "(", "job", ",", "fastqs", ",", "sample_type", ",", "univ_options", ",", "phlat_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running phlat on %s:%s'", "%", "(", "univ_options", "[", "'patient'", "]", ",", "sample_...
This module will run PHLAT on SAMPLE_TYPE fastqs. ARGUMENTS -- <ST> depicts the sample type. Substitute with 'tumor_dna', 'normal_dna', or 'tumor_rna' 1. fastqs: Dict of list of input WGS/WXS fastqs fastqs +- '<ST>': [<JSid for 1.fastq> , <JSid for 2.fastq>] 2. sampl...
[ "This", "module", "will", "run", "PHLAT", "on", "SAMPLE_TYPE", "fastqs", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1252-L1294
train
This module will run PHLAT on the tree tree
BD2KGenomics/protect
attic/ProTECT.py
merge_phlat_calls
def merge_phlat_calls(job, tumor_phlat, normal_phlat, rna_phlat): """ This module will merge the results form running PHLAT on the 3 input fastq pairs. ARGUMENTS 1. tumor_phlat: <JSid for tumor DNA called alleles> 2. normal_phlat: <JSid for normal DNA called alleles> 3. rna_phlat: <JSid for...
python
def merge_phlat_calls(job, tumor_phlat, normal_phlat, rna_phlat): """ This module will merge the results form running PHLAT on the 3 input fastq pairs. ARGUMENTS 1. tumor_phlat: <JSid for tumor DNA called alleles> 2. normal_phlat: <JSid for normal DNA called alleles> 3. rna_phlat: <JSid for...
[ "def", "merge_phlat_calls", "(", "job", ",", "tumor_phlat", ",", "normal_phlat", ",", "rna_phlat", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Merging Phlat calls'", ")", "work_dir", "=", "job", ".", "fileStore", ".", "getLocalTempDir", "(", ...
This module will merge the results form running PHLAT on the 3 input fastq pairs. ARGUMENTS 1. tumor_phlat: <JSid for tumor DNA called alleles> 2. normal_phlat: <JSid for normal DNA called alleles> 3. rna_phlat: <JSid for tumor RNA called alleles> RETURN VALUES 1. output_files: Dict of JSi...
[ "This", "module", "will", "merge", "the", "results", "form", "running", "PHLAT", "on", "the", "3", "input", "fastq", "pairs", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1297-L1347
train
This module will merge the Phlat calls from the tumor DNA and normal DNA and RNA calls into a single tree tree
BD2KGenomics/protect
attic/ProTECT.py
spawn_antigen_predictors
def spawn_antigen_predictors(job, transgened_files, phlat_files, univ_options, mhc_options): """ Based on the number of alleles obtained from node 14, this module will spawn callers to predict MHCI:peptide and MHCII:peptide binding on the peptide files from node 17. Once all MHC:peptide predictions are...
python
def spawn_antigen_predictors(job, transgened_files, phlat_files, univ_options, mhc_options): """ Based on the number of alleles obtained from node 14, this module will spawn callers to predict MHCI:peptide and MHCII:peptide binding on the peptide files from node 17. Once all MHC:peptide predictions are...
[ "def", "spawn_antigen_predictors", "(", "job", ",", "transgened_files", ",", "phlat_files", ",", "univ_options", ",", "mhc_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running spawn_anti on %s'", "%", "univ_options", "[", "'patient'", "]",...
Based on the number of alleles obtained from node 14, this module will spawn callers to predict MHCI:peptide and MHCII:peptide binding on the peptide files from node 17. Once all MHC:peptide predictions are made, merge them via a follow-on job. ARGUMENTS 1. transgened_files: REFER RETURN VALUE of run_...
[ "Based", "on", "the", "number", "of", "alleles", "obtained", "from", "node", "14", "this", "module", "will", "spawn", "callers", "to", "predict", "MHCI", ":", "peptide", "and", "MHCII", ":", "peptide", "binding", "on", "the", "peptide", "files", "from", "n...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1350-L1449
train
This module will spawn the MHC predictors on the given transgened_files and phlat_files.
BD2KGenomics/protect
attic/ProTECT.py
predict_mhci_binding
def predict_mhci_binding(job, peptfile, allele, peplen, univ_options, mhci_options): """ This module will predict MHC:peptide binding for peptides in the files created in node XX to ALLELE. ALLELE represents an MHCI allele. This module corresponds to node 18 on the tree ""...
python
def predict_mhci_binding(job, peptfile, allele, peplen, univ_options, mhci_options): """ This module will predict MHC:peptide binding for peptides in the files created in node XX to ALLELE. ALLELE represents an MHCI allele. This module corresponds to node 18 on the tree ""...
[ "def", "predict_mhci_binding", "(", "job", ",", "peptfile", ",", "allele", ",", "peplen", ",", "univ_options", ",", "mhci_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running mhci on %s:%s:%s'", "%", "(", "univ_options", "[", "'patient...
This module will predict MHC:peptide binding for peptides in the files created in node XX to ALLELE. ALLELE represents an MHCI allele. This module corresponds to node 18 on the tree
[ "This", "module", "will", "predict", "MHC", ":", "peptide", "binding", "for", "peptides", "in", "the", "files", "created", "in", "node", "XX", "to", "ALLELE", ".", "ALLELE", "represents", "an", "MHCI", "allele", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1452-L1474
train
This module predicts the MHC binding for peptides in the tree.
BD2KGenomics/protect
attic/ProTECT.py
predict_mhcii_binding
def predict_mhcii_binding(job, peptfile, allele, univ_options, mhcii_options): """ This module will predict MHC:peptide binding for peptides in the files created in node YY to ALLELE. ALLELE represents an MHCII allele. The module returns (PREDFILE, PREDICTOR) where PREDFILE contains the predictions an...
python
def predict_mhcii_binding(job, peptfile, allele, univ_options, mhcii_options): """ This module will predict MHC:peptide binding for peptides in the files created in node YY to ALLELE. ALLELE represents an MHCII allele. The module returns (PREDFILE, PREDICTOR) where PREDFILE contains the predictions an...
[ "def", "predict_mhcii_binding", "(", "job", ",", "peptfile", ",", "allele", ",", "univ_options", ",", "mhcii_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running mhcii on %s:%s'", "%", "(", "univ_options", "[", "'patient'", "]", ",", ...
This module will predict MHC:peptide binding for peptides in the files created in node YY to ALLELE. ALLELE represents an MHCII allele. The module returns (PREDFILE, PREDICTOR) where PREDFILE contains the predictions and PREDICTOR is the predictor used (Consensus, NetMHCIIpan, or Sturniolo). This mod...
[ "This", "module", "will", "predict", "MHC", ":", "peptide", "binding", "for", "peptides", "in", "the", "files", "created", "in", "node", "YY", "to", "ALLELE", ".", "ALLELE", "represents", "an", "MHCII", "allele", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1477-L1518
train
This module predicts the MHCII binding for peptides in the tree.
BD2KGenomics/protect
attic/ProTECT.py
merge_mhc_peptide_calls
def merge_mhc_peptide_calls(job, antigen_predictions, transgened_files): """ This module will merge all the calls from nodes 18 and 19, and will filter for the top X%% of binders of each allele. The module will then call the rank boosting script to finish off the pipeline. This module corresponds ...
python
def merge_mhc_peptide_calls(job, antigen_predictions, transgened_files): """ This module will merge all the calls from nodes 18 and 19, and will filter for the top X%% of binders of each allele. The module will then call the rank boosting script to finish off the pipeline. This module corresponds ...
[ "def", "merge_mhc_peptide_calls", "(", "job", ",", "antigen_predictions", ",", "transgened_files", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Merging MHC calls'", ")", "work_dir", "=", "job", ".", "fileStore", ".", "getLocalTempDir", "(", ")", ...
This module will merge all the calls from nodes 18 and 19, and will filter for the top X%% of binders of each allele. The module will then call the rank boosting script to finish off the pipeline. This module corresponds to node 19 on the tree
[ "This", "module", "will", "merge", "all", "the", "calls", "from", "nodes", "18", "and", "19", "and", "will", "filter", "for", "the", "top", "X%%", "of", "binders", "of", "each", "allele", ".", "The", "module", "will", "then", "call", "the", "rank", "bo...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1555-L1673
train
This module will merge all the MHC calls from nodes 18 and 19 and then the MHC calls from nodes 15 and 15 MHC calls from nodes 10 and 19.
BD2KGenomics/protect
attic/ProTECT.py
boost_ranks
def boost_ranks(job, isoform_expression, merged_mhc_calls, transgene_out, univ_options, rank_boost_options): """ This is the final module in the pipeline. It will call the rank boosting R script. This module corresponds to node 21 in the tree """ job.fileStore.logToMaster('Runn...
python
def boost_ranks(job, isoform_expression, merged_mhc_calls, transgene_out, univ_options, rank_boost_options): """ This is the final module in the pipeline. It will call the rank boosting R script. This module corresponds to node 21 in the tree """ job.fileStore.logToMaster('Runn...
[ "def", "boost_ranks", "(", "job", ",", "isoform_expression", ",", "merged_mhc_calls", ",", "transgene_out", ",", "univ_options", ",", "rank_boost_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Running boost_ranks on %s'", "%", "univ_options", ...
This is the final module in the pipeline. It will call the rank boosting R script. This module corresponds to node 21 in the tree
[ "This", "is", "the", "final", "module", "in", "the", "pipeline", ".", "It", "will", "call", "the", "rank", "boosting", "R", "script", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1676-L1712
train
This module will boost the rank of the MHCs in the tree.
BD2KGenomics/protect
attic/ProTECT.py
tool_specific_param_generator
def tool_specific_param_generator(job, config_file): """ This is a generator function to parse and yield the various groups of parameters from CONFIG_FILE one at a time. Input arguments: config_file - a file handle to an open file stream that is reading the input config fil...
python
def tool_specific_param_generator(job, config_file): """ This is a generator function to parse and yield the various groups of parameters from CONFIG_FILE one at a time. Input arguments: config_file - a file handle to an open file stream that is reading the input config fil...
[ "def", "tool_specific_param_generator", "(", "job", ",", "config_file", ")", ":", "work_dir", "=", "job", ".", "fileStore", ".", "getLocalTempDir", "(", ")", "# Initialize the return values. group_name == None will be used to bypass the first #-prefixed", "# group in the file", ...
This is a generator function to parse and yield the various groups of parameters from CONFIG_FILE one at a time. Input arguments: config_file - a file handle to an open file stream that is reading the input config file to the pipeline. Return (Yielded) Values: group_nam...
[ "This", "is", "a", "generator", "function", "to", "parse", "and", "yield", "the", "various", "groups", "of", "parameters", "from", "CONFIG_FILE", "one", "at", "a", "time", ".", "Input", "arguments", ":", "config_file", "-", "a", "file", "handle", "to", "an...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1715-L1758
train
This function is used to parse and yield the various groups of parameters from the input config file. It is used to generate the various parameters from the input config file.
BD2KGenomics/protect
attic/ProTECT.py
get_pipeline_inputs
def get_pipeline_inputs(job, input_flag, input_file): """ Get the input file from s3 or disk, untargz if necessary and then write to file job store. :param job: job :param str input_flag: The name of the flag :param str input_file: The value passed in the config file :return: The jobstore ID for...
python
def get_pipeline_inputs(job, input_flag, input_file): """ Get the input file from s3 or disk, untargz if necessary and then write to file job store. :param job: job :param str input_flag: The name of the flag :param str input_file: The value passed in the config file :return: The jobstore ID for...
[ "def", "get_pipeline_inputs", "(", "job", ",", "input_flag", ",", "input_file", ")", ":", "work_dir", "=", "job", ".", "fileStore", ".", "getLocalTempDir", "(", ")", "job", ".", "fileStore", ".", "logToMaster", "(", "'Obtaining file (%s) to the file job store'", "...
Get the input file from s3 or disk, untargz if necessary and then write to file job store. :param job: job :param str input_flag: The name of the flag :param str input_file: The value passed in the config file :return: The jobstore ID for the file
[ "Get", "the", "input", "file", "from", "s3", "or", "disk", "untargz", "if", "necessary", "and", "then", "write", "to", "file", "job", "store", ".", ":", "param", "job", ":", "job", ":", "param", "str", "input_flag", ":", "The", "name", "of", "the", "...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1761-L1785
train
Get the input file from s3 or disk and write it to the job store.
BD2KGenomics/protect
attic/ProTECT.py
prepare_samples
def prepare_samples(job, fastqs, univ_options): """ This module will accept a dict object holding the 3 input prefixes and the patient id and will attempt to store the fastqs to the jobstore. The input files must satisfy the following 1. File extensions can only be fastq or fq (.gz is also allowed) ...
python
def prepare_samples(job, fastqs, univ_options): """ This module will accept a dict object holding the 3 input prefixes and the patient id and will attempt to store the fastqs to the jobstore. The input files must satisfy the following 1. File extensions can only be fastq or fq (.gz is also allowed) ...
[ "def", "prepare_samples", "(", "job", ",", "fastqs", ",", "univ_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Downloading Inputs for %s'", "%", "univ_options", "[", "'patient'", "]", ")", "allowed_samples", "=", "{", "'tumor_dna_fastq_pre...
This module will accept a dict object holding the 3 input prefixes and the patient id and will attempt to store the fastqs to the jobstore. The input files must satisfy the following 1. File extensions can only be fastq or fq (.gz is also allowed) 2. Forward and reverse reads MUST be in the same folder wit...
[ "This", "module", "will", "accept", "a", "dict", "object", "holding", "the", "3", "input", "prefixes", "and", "the", "patient", "id", "and", "will", "attempt", "to", "store", "the", "fastqs", "to", "the", "jobstore", ".", "The", "input", "files", "must", ...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1788-L1863
train
This module will download the fastqs and store them in the jobstore.
BD2KGenomics/protect
attic/ProTECT.py
get_files_from_filestore
def get_files_from_filestore(job, files, work_dir, cache=True, docker=False): """ This is adapted from John Vivian's return_input_paths from the RNA-Seq pipeline. Returns the paths of files from the FileStore if they are not present. If docker=True, return the docker path for the file. If the file ...
python
def get_files_from_filestore(job, files, work_dir, cache=True, docker=False): """ This is adapted from John Vivian's return_input_paths from the RNA-Seq pipeline. Returns the paths of files from the FileStore if they are not present. If docker=True, return the docker path for the file. If the file ...
[ "def", "get_files_from_filestore", "(", "job", ",", "files", ",", "work_dir", ",", "cache", "=", "True", ",", "docker", "=", "False", ")", ":", "for", "name", "in", "files", ".", "keys", "(", ")", ":", "outfile", "=", "job", ".", "fileStore", ".", "r...
This is adapted from John Vivian's return_input_paths from the RNA-Seq pipeline. Returns the paths of files from the FileStore if they are not present. If docker=True, return the docker path for the file. If the file extension is tar.gz, then tar -zxvf it. files is a dict with: keys = the name...
[ "This", "is", "adapted", "from", "John", "Vivian", "s", "return_input_paths", "from", "the", "RNA", "-", "Seq", "pipeline", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1866-L1904
train
This function returns the input paths of files from the FileStore.
BD2KGenomics/protect
attic/ProTECT.py
most_probable_alleles
def most_probable_alleles(allele_list): """ This module accepts a list of tuples of (allele, p_value) pairs. It returns the 2 most probable alleles for that group. """ all_alleles = defaultdict() # First collect all the keys. Make a dict with allele as key and list of pvalues as value for a...
python
def most_probable_alleles(allele_list): """ This module accepts a list of tuples of (allele, p_value) pairs. It returns the 2 most probable alleles for that group. """ all_alleles = defaultdict() # First collect all the keys. Make a dict with allele as key and list of pvalues as value for a...
[ "def", "most_probable_alleles", "(", "allele_list", ")", ":", "all_alleles", "=", "defaultdict", "(", ")", "# First collect all the keys. Make a dict with allele as key and list of pvalues as value", "for", "allele", ",", "pvalue", "in", "allele_list", ":", "allele", "=", ...
This module accepts a list of tuples of (allele, p_value) pairs. It returns the 2 most probable alleles for that group.
[ "This", "module", "accepts", "a", "list", "of", "tuples", "of", "(", "allele", "p_value", ")", "pairs", ".", "It", "returns", "the", "2", "most", "probable", "alleles", "for", "that", "group", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1907-L1936
train
This module accepts a list of tuples of alleles and p_value pairs and returns the 2 most probable alleles for that group. It returns the 2 most probable alleles for that group.
BD2KGenomics/protect
attic/ProTECT.py
merge_vcfs
def merge_vcfs(vcf_file, merged_mut_file): """ This module will accept the vcf files for mutect and radia read into memory in a dict object VCF_FILE and will merge the calls. Merged calls are printed to MERGED_MUT_FILE. VCF_FILE is a dict with key : mutation caller (mutect or radia) value : di...
python
def merge_vcfs(vcf_file, merged_mut_file): """ This module will accept the vcf files for mutect and radia read into memory in a dict object VCF_FILE and will merge the calls. Merged calls are printed to MERGED_MUT_FILE. VCF_FILE is a dict with key : mutation caller (mutect or radia) value : di...
[ "def", "merge_vcfs", "(", "vcf_file", ",", "merged_mut_file", ")", ":", "mutect_keys", "=", "set", "(", "vcf_file", "[", "'mutect'", "]", ".", "keys", "(", ")", ")", "radia_keys", "=", "set", "(", "vcf_file", "[", "'radia'", "]", ".", "keys", "(", ")",...
This module will accept the vcf files for mutect and radia read into memory in a dict object VCF_FILE and will merge the calls. Merged calls are printed to MERGED_MUT_FILE. VCF_FILE is a dict with key : mutation caller (mutect or radia) value : dict with key: (chrom, pos, ref, alt) ...
[ "This", "module", "will", "accept", "the", "vcf", "files", "for", "mutect", "and", "radia", "read", "into", "memory", "in", "a", "dict", "object", "VCF_FILE", "and", "will", "merge", "the", "calls", ".", "Merged", "calls", "are", "printed", "to", "MERGED_M...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1956-L1974
train
This module will accept the vcf files for mutect and radia and merge them into a single object MERGED_MUT_FILE.
BD2KGenomics/protect
attic/ProTECT.py
parse_radia_multi_alt
def parse_radia_multi_alt(infile, outfile): """ This function will parse the vcf to detect sites having multiple alt alleles and pick out on the most likely ones. INFILE : open file handle for the input vcf OUTFILE : open file handle for the output vcf The columns in INFILE are [0] CHROM ...
python
def parse_radia_multi_alt(infile, outfile): """ This function will parse the vcf to detect sites having multiple alt alleles and pick out on the most likely ones. INFILE : open file handle for the input vcf OUTFILE : open file handle for the output vcf The columns in INFILE are [0] CHROM ...
[ "def", "parse_radia_multi_alt", "(", "infile", ",", "outfile", ")", ":", "for", "line", "in", "infile", ":", "# Print header to putfile", "if", "line", ".", "startswith", "(", "'#'", ")", ":", "print", "(", "line", ".", "strip", "(", ")", ",", "file", "=...
This function will parse the vcf to detect sites having multiple alt alleles and pick out on the most likely ones. INFILE : open file handle for the input vcf OUTFILE : open file handle for the output vcf The columns in INFILE are [0] CHROM [1] POS [2] ID [3] REF [4] ALT [...
[ "This", "function", "will", "parse", "the", "vcf", "to", "detect", "sites", "having", "multiple", "alt", "alleles", "and", "pick", "out", "on", "the", "most", "likely", "ones", ".", "INFILE", ":", "open", "file", "handle", "for", "the", "input", "vcf", "...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L1977-L2088
train
This function will parse the RADIA multi - alt vcf file and return the set of most likely sites.
BD2KGenomics/protect
attic/ProTECT.py
print_mhc_peptide
def print_mhc_peptide(neoepitope_info, peptides, pepmap, outfile): """ To reduce code redundancy, this module will accept data from merge_mhc_peptide_calls for a given neoepitope and print it to outfile ARGUMENTS 1. neoepitope_info: Tuple of (<allele>, <peptide_sequence>, ...
python
def print_mhc_peptide(neoepitope_info, peptides, pepmap, outfile): """ To reduce code redundancy, this module will accept data from merge_mhc_peptide_calls for a given neoepitope and print it to outfile ARGUMENTS 1. neoepitope_info: Tuple of (<allele>, <peptide_sequence>, ...
[ "def", "print_mhc_peptide", "(", "neoepitope_info", ",", "peptides", ",", "pepmap", ",", "outfile", ")", ":", "allele", ",", "pept", ",", "pred", ",", "core", "=", "neoepitope_info", "peptide_names", "=", "[", "x", "for", "x", ",", "y", "in", "peptides", ...
To reduce code redundancy, this module will accept data from merge_mhc_peptide_calls for a given neoepitope and print it to outfile ARGUMENTS 1. neoepitope_info: Tuple of (<allele>, <peptide_sequence>, <binding_prediction>) 2. peptides: Dict of all IARS considered ...
[ "To", "reduce", "code", "redundancy", "this", "module", "will", "accept", "data", "from", "merge_mhc_peptide_calls", "for", "a", "given", "neoepitope", "and", "print", "it", "to", "outfile", "ARGUMENTS", "1", ".", "neoepitope_info", ":", "Tuple", "of", "(", "<...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2091-L2119
train
This function is used to print a neoepitope from merge_mhc_peptide_calls to outfile.
BD2KGenomics/protect
attic/ProTECT.py
docker_call
def docker_call(tool, tool_parameters, work_dir, java_opts=None, outfile=None, dockerhub='aarjunrao', interactive=False): """ Makes subprocess call of a command to a docker container. work_dir MUST BE AN ABSOLUTE PATH or the call will fail. outfile is an open file descriptor to a writeable ...
python
def docker_call(tool, tool_parameters, work_dir, java_opts=None, outfile=None, dockerhub='aarjunrao', interactive=False): """ Makes subprocess call of a command to a docker container. work_dir MUST BE AN ABSOLUTE PATH or the call will fail. outfile is an open file descriptor to a writeable ...
[ "def", "docker_call", "(", "tool", ",", "tool_parameters", ",", "work_dir", ",", "java_opts", "=", "None", ",", "outfile", "=", "None", ",", "dockerhub", "=", "'aarjunrao'", ",", "interactive", "=", "False", ")", ":", "# If an outifle has been provided, then ensur...
Makes subprocess call of a command to a docker container. work_dir MUST BE AN ABSOLUTE PATH or the call will fail. outfile is an open file descriptor to a writeable file.
[ "Makes", "subprocess", "call", "of", "a", "command", "to", "a", "docker", "container", ".", "work_dir", "MUST", "BE", "AN", "ABSOLUTE", "PATH", "or", "the", "call", "will", "fail", ".", "outfile", "is", "an", "open", "file", "descriptor", "to", "a", "wri...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2130-L2182
train
This function is used to call a docker command on a container.
BD2KGenomics/protect
attic/ProTECT.py
untargz
def untargz(input_targz_file, untar_to_dir): """ This module accepts a tar.gz archive and untars it. RETURN VALUE: path to the untar-ed directory/file NOTE: this module expects the multiple files to be in a directory before being tar-ed. """ assert tarfile.is_tarfile(input_targz_file...
python
def untargz(input_targz_file, untar_to_dir): """ This module accepts a tar.gz archive and untars it. RETURN VALUE: path to the untar-ed directory/file NOTE: this module expects the multiple files to be in a directory before being tar-ed. """ assert tarfile.is_tarfile(input_targz_file...
[ "def", "untargz", "(", "input_targz_file", ",", "untar_to_dir", ")", ":", "assert", "tarfile", ".", "is_tarfile", "(", "input_targz_file", ")", ",", "'Not a tar file.'", "tarball", "=", "tarfile", ".", "open", "(", "input_targz_file", ")", "return_value", "=", "...
This module accepts a tar.gz archive and untars it. RETURN VALUE: path to the untar-ed directory/file NOTE: this module expects the multiple files to be in a directory before being tar-ed.
[ "This", "module", "accepts", "a", "tar", ".", "gz", "archive", "and", "untars", "it", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2185-L2199
train
This module accepts a tar. gz archive and untars it.
BD2KGenomics/protect
attic/ProTECT.py
is_gzipfile
def is_gzipfile(filename): """ This function attempts to ascertain the gzip status of a file based on the "magic signatures" of the file. This was taken from the stack overflow http://stackoverflow.com/questions/13044562/python-mechanism-to-identify-compressed-file-type\ -and-uncompress """ ...
python
def is_gzipfile(filename): """ This function attempts to ascertain the gzip status of a file based on the "magic signatures" of the file. This was taken from the stack overflow http://stackoverflow.com/questions/13044562/python-mechanism-to-identify-compressed-file-type\ -and-uncompress """ ...
[ "def", "is_gzipfile", "(", "filename", ")", ":", "assert", "os", ".", "path", ".", "exists", "(", "filename", ")", ",", "'Input {} does not '", ".", "format", "(", "filename", ")", "+", "'point to a file.'", "with", "file", "(", "filename", ",", "'rb'", ")...
This function attempts to ascertain the gzip status of a file based on the "magic signatures" of the file. This was taken from the stack overflow http://stackoverflow.com/questions/13044562/python-mechanism-to-identify-compressed-file-type\ -and-uncompress
[ "This", "function", "attempts", "to", "ascertain", "the", "gzip", "status", "of", "a", "file", "based", "on", "the", "magic", "signatures", "of", "the", "file", ".", "This", "was", "taken", "from", "the", "stack", "overflow", "http", ":", "//", "stackoverf...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2202-L2223
train
Returns True if the file is a gzipped file.
BD2KGenomics/protect
attic/ProTECT.py
get_file_from_cghub
def get_file_from_cghub(job, cghub_xml, cghub_key, univ_options, write_to_jobstore=True): """ This function will download the file from cghub using the xml specified by cghub_xml ARGUMENTS 1. cghub_xml: Path to an xml file for cghub. 2. cghub_key: Credentials for a cghub download operation. 3. ...
python
def get_file_from_cghub(job, cghub_xml, cghub_key, univ_options, write_to_jobstore=True): """ This function will download the file from cghub using the xml specified by cghub_xml ARGUMENTS 1. cghub_xml: Path to an xml file for cghub. 2. cghub_key: Credentials for a cghub download operation. 3. ...
[ "def", "get_file_from_cghub", "(", "job", ",", "cghub_xml", ",", "cghub_key", ",", "univ_options", ",", "write_to_jobstore", "=", "True", ")", ":", "work_dir", "=", "job", ".", "fileStore", ".", "getLocalTempDir", "(", ")", "# Get from S3 if required", "if", "cg...
This function will download the file from cghub using the xml specified by cghub_xml ARGUMENTS 1. cghub_xml: Path to an xml file for cghub. 2. cghub_key: Credentials for a cghub download operation. 3. write_to_jobstore: Flag indicating whether the final product should be written to jobStore. RETUR...
[ "This", "function", "will", "download", "the", "file", "from", "cghub", "using", "the", "xml", "specified", "by", "cghub_xml" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2308-L2383
train
This function will download the file from cghub using the cghub key and cghub_xml.
BD2KGenomics/protect
attic/ProTECT.py
bam2fastq
def bam2fastq(job, bamfile, univ_options): """ split an input bam to paired fastqs. ARGUMENTS 1. bamfile: Path to a bam file 2. univ_options: Dict of universal arguments used by almost all tools univ_options |- 'dockerhub': <dockerhub to use> +- 'java_Xmx': ...
python
def bam2fastq(job, bamfile, univ_options): """ split an input bam to paired fastqs. ARGUMENTS 1. bamfile: Path to a bam file 2. univ_options: Dict of universal arguments used by almost all tools univ_options |- 'dockerhub': <dockerhub to use> +- 'java_Xmx': ...
[ "def", "bam2fastq", "(", "job", ",", "bamfile", ",", "univ_options", ")", ":", "work_dir", "=", "os", ".", "path", ".", "split", "(", "bamfile", ")", "[", "0", "]", "base_name", "=", "os", ".", "path", ".", "split", "(", "os", ".", "path", ".", "...
split an input bam to paired fastqs. ARGUMENTS 1. bamfile: Path to a bam file 2. univ_options: Dict of universal arguments used by almost all tools univ_options |- 'dockerhub': <dockerhub to use> +- 'java_Xmx': value for max heap passed to java
[ "split", "an", "input", "bam", "to", "paired", "fastqs", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2386-L2408
train
This function will split an input bam to paired fastqs.
BD2KGenomics/protect
attic/ProTECT.py
export_results
def export_results(file_path, univ_options): """ Write out a file to a given location. The location can be either a directory on the local machine, or a folder with a bucket on AWS. TODO: Azure support :param file_path: The path to the file that neeeds to be transferred to the new location. :par...
python
def export_results(file_path, univ_options): """ Write out a file to a given location. The location can be either a directory on the local machine, or a folder with a bucket on AWS. TODO: Azure support :param file_path: The path to the file that neeeds to be transferred to the new location. :par...
[ "def", "export_results", "(", "file_path", ",", "univ_options", ")", ":", "try", ":", "assert", "univ_options", "[", "'output_folder'", "]", ",", "'Need a path to a folder to write out files'", "assert", "univ_options", "[", "'storage_location'", "]", ",", "'Need to kno...
Write out a file to a given location. The location can be either a directory on the local machine, or a folder with a bucket on AWS. TODO: Azure support :param file_path: The path to the file that neeeds to be transferred to the new location. :param univ_options: A dict of the universal options passed t...
[ "Write", "out", "a", "file", "to", "a", "given", "location", ".", "The", "location", "can", "be", "either", "a", "directory", "on", "the", "local", "machine", "or", "a", "folder", "with", "a", "bucket", "on", "AWS", ".", "TODO", ":", "Azure", "support"...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2411-L2461
train
This function takes a file path and creates a new location for the archive.
BD2KGenomics/protect
attic/ProTECT.py
parse_phlat_file
def parse_phlat_file(phlatfile, mhc_alleles): """ Parse the input phlat file to pull out the alleles it contains :param phlatfile: Open file descriptor for a phlat output sum file :param mhc_alleles: dictionary of alleles. """ for line in phlatfile: if line.startswith('Locus'): ...
python
def parse_phlat_file(phlatfile, mhc_alleles): """ Parse the input phlat file to pull out the alleles it contains :param phlatfile: Open file descriptor for a phlat output sum file :param mhc_alleles: dictionary of alleles. """ for line in phlatfile: if line.startswith('Locus'): ...
[ "def", "parse_phlat_file", "(", "phlatfile", ",", "mhc_alleles", ")", ":", "for", "line", "in", "phlatfile", ":", "if", "line", ".", "startswith", "(", "'Locus'", ")", ":", "continue", "line", "=", "line", ".", "strip", "(", ")", ".", "split", "(", ")"...
Parse the input phlat file to pull out the alleles it contains :param phlatfile: Open file descriptor for a phlat output sum file :param mhc_alleles: dictionary of alleles.
[ "Parse", "the", "input", "phlat", "file", "to", "pull", "out", "the", "alleles", "it", "contains", ":", "param", "phlatfile", ":", "Open", "file", "descriptor", "for", "a", "phlat", "output", "sum", "file", ":", "param", "mhc_alleles", ":", "dictionary", "...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2464-L2489
train
Parse the input phlat file to pull out the alleles it contains
BD2KGenomics/protect
attic/ProTECT.py
file_xext
def file_xext(filepath): """ Get the file extension wrt compression from the filename (is it tar or targz) :param str filepath: Path to the file :return str ext: Compression extension name """ ext = os.path.splitext(filepath)[1] if ext == '.gz': xext = os.path.splitext(os.path.splite...
python
def file_xext(filepath): """ Get the file extension wrt compression from the filename (is it tar or targz) :param str filepath: Path to the file :return str ext: Compression extension name """ ext = os.path.splitext(filepath)[1] if ext == '.gz': xext = os.path.splitext(os.path.splite...
[ "def", "file_xext", "(", "filepath", ")", ":", "ext", "=", "os", ".", "path", ".", "splitext", "(", "filepath", ")", "[", "1", "]", "if", "ext", "==", "'.gz'", ":", "xext", "=", "os", ".", "path", ".", "splitext", "(", "os", ".", "path", ".", "...
Get the file extension wrt compression from the filename (is it tar or targz) :param str filepath: Path to the file :return str ext: Compression extension name
[ "Get", "the", "file", "extension", "wrt", "compression", "from", "the", "filename", "(", "is", "it", "tar", "or", "targz", ")", ":", "param", "str", "filepath", ":", "Path", "to", "the", "file", ":", "return", "str", "ext", ":", "Compression", "extension...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2492-L2507
train
Get the file extension wrt compression from the filename
BD2KGenomics/protect
attic/ProTECT.py
strip_xext
def strip_xext(filepath): """ Strips the compression extension from the filename :param filepath: Path to compressed file. :return str filepath: Path to the file with the compression extension stripped off. """ ext_size = len(file_xext(filepath).split('.')) - 1 for i in xrange(0, ext_size): ...
python
def strip_xext(filepath): """ Strips the compression extension from the filename :param filepath: Path to compressed file. :return str filepath: Path to the file with the compression extension stripped off. """ ext_size = len(file_xext(filepath).split('.')) - 1 for i in xrange(0, ext_size): ...
[ "def", "strip_xext", "(", "filepath", ")", ":", "ext_size", "=", "len", "(", "file_xext", "(", "filepath", ")", ".", "split", "(", "'.'", ")", ")", "-", "1", "for", "i", "in", "xrange", "(", "0", ",", "ext_size", ")", ":", "filepath", "=", "os", ...
Strips the compression extension from the filename :param filepath: Path to compressed file. :return str filepath: Path to the file with the compression extension stripped off.
[ "Strips", "the", "compression", "extension", "from", "the", "filename", ":", "param", "filepath", ":", "Path", "to", "compressed", "file", ".", ":", "return", "str", "filepath", ":", "Path", "to", "the", "file", "with", "the", "compression", "extension", "st...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2510-L2519
train
Strips the compression extension from the filename
BD2KGenomics/protect
attic/ProTECT.py
main
def main(): """ This is the main function for the UCSC Precision Immuno pipeline. """ parser = argparse.ArgumentParser() parser.add_argument('--config_file', dest='config_file', help='Config file to be used in the' + 'run.', type=str, required=True, default=None) Job.Runn...
python
def main(): """ This is the main function for the UCSC Precision Immuno pipeline. """ parser = argparse.ArgumentParser() parser.add_argument('--config_file', dest='config_file', help='Config file to be used in the' + 'run.', type=str, required=True, default=None) Job.Runn...
[ "def", "main", "(", ")", ":", "parser", "=", "argparse", ".", "ArgumentParser", "(", ")", "parser", ".", "add_argument", "(", "'--config_file'", ",", "dest", "=", "'config_file'", ",", "help", "=", "'Config file to be used in the'", "+", "'run.'", ",", "type",...
This is the main function for the UCSC Precision Immuno pipeline.
[ "This", "is", "the", "main", "function", "for", "the", "UCSC", "Precision", "Immuno", "pipeline", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/attic/ProTECT.py#L2530-L2541
train
This is the main function for the UCSC Precision Immuno pipeline.
BD2KGenomics/protect
src/protect/mutation_calling/strelka.py
run_strelka_with_merge
def run_strelka_with_merge(job, tumor_bam, normal_bam, univ_options, strelka_options): """ A wrapper for the the entire strelka sub-graph. :param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq :param dict normal_bam: Dict of bam and bai for normal DNA-Seq :param dict univ_options: Dict of un...
python
def run_strelka_with_merge(job, tumor_bam, normal_bam, univ_options, strelka_options): """ A wrapper for the the entire strelka sub-graph. :param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq :param dict normal_bam: Dict of bam and bai for normal DNA-Seq :param dict univ_options: Dict of un...
[ "def", "run_strelka_with_merge", "(", "job", ",", "tumor_bam", ",", "normal_bam", ",", "univ_options", ",", "strelka_options", ")", ":", "spawn", "=", "job", ".", "wrapJobFn", "(", "run_strelka", ",", "tumor_bam", ",", "normal_bam", ",", "univ_options", ",", "...
A wrapper for the the entire strelka sub-graph. :param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq :param dict normal_bam: Dict of bam and bai for normal DNA-Seq :param dict univ_options: Dict of universal options used by almost all tools :param dict strelka_options: Options specific to strel...
[ "A", "wrapper", "for", "the", "the", "entire", "strelka", "sub", "-", "graph", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/strelka.py#L39-L53
train
A wrapper for the entire strelka sub - graph.
BD2KGenomics/protect
src/protect/mutation_calling/strelka.py
run_strelka
def run_strelka(job, tumor_bam, normal_bam, univ_options, strelka_options, split=True): """ Run the strelka subgraph on the DNA bams. Optionally split the results into per-chromosome vcfs. :param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq :param dict normal_bam: Dict of bam and bai for ...
python
def run_strelka(job, tumor_bam, normal_bam, univ_options, strelka_options, split=True): """ Run the strelka subgraph on the DNA bams. Optionally split the results into per-chromosome vcfs. :param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq :param dict normal_bam: Dict of bam and bai for ...
[ "def", "run_strelka", "(", "job", ",", "tumor_bam", ",", "normal_bam", ",", "univ_options", ",", "strelka_options", ",", "split", "=", "True", ")", ":", "if", "strelka_options", "[", "'chromosomes'", "]", ":", "chromosomes", "=", "strelka_options", "[", "'chro...
Run the strelka subgraph on the DNA bams. Optionally split the results into per-chromosome vcfs. :param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq :param dict normal_bam: Dict of bam and bai for normal DNA-Seq :param dict univ_options: Dict of universal options used by almost all tools ...
[ "Run", "the", "strelka", "subgraph", "on", "the", "DNA", "bams", ".", "Optionally", "split", "the", "results", "into", "per", "-", "chromosome", "vcfs", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/strelka.py#L56-L102
train
This function runs the strelka subgraph on the DNA bams.
BD2KGenomics/protect
src/protect/mutation_calling/strelka.py
run_strelka_full
def run_strelka_full(job, tumor_bam, normal_bam, univ_options, strelka_options): """ Run strelka on the DNA bams. :param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq :param dict normal_bam: Dict of bam and bai for normal DNA-Seq :param dict univ_options: Dict of universal options used by a...
python
def run_strelka_full(job, tumor_bam, normal_bam, univ_options, strelka_options): """ Run strelka on the DNA bams. :param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq :param dict normal_bam: Dict of bam and bai for normal DNA-Seq :param dict univ_options: Dict of universal options used by a...
[ "def", "run_strelka_full", "(", "job", ",", "tumor_bam", ",", "normal_bam", ",", "univ_options", ",", "strelka_options", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "input_files", "=", "{", "'tumor.bam'", ":", "tumor_bam", "[", "'tumor_dna_fix_pg...
Run strelka on the DNA bams. :param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq :param dict normal_bam: Dict of bam and bai for normal DNA-Seq :param dict univ_options: Dict of universal options used by almost all tools :param dict strelka_options: Options specific to strelka :return: Dic...
[ "Run", "strelka", "on", "the", "DNA", "bams", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/strelka.py#L105-L148
train
This function runs strelka on the DNA bams and returns the fsIDs snvs and indels for the next run.
BD2KGenomics/protect
src/protect/mutation_calling/strelka.py
wrap_unmerge
def wrap_unmerge(job, strelka_out, chromosomes, strelka_options, univ_options): """ A wwrapper to unmerge the strelka snvs and indels :param dict strelka_out: Results from run_strelka :param list chromosomes: List of chromosomes to retain :param dict strelka_options: Options specific to strelka ...
python
def wrap_unmerge(job, strelka_out, chromosomes, strelka_options, univ_options): """ A wwrapper to unmerge the strelka snvs and indels :param dict strelka_out: Results from run_strelka :param list chromosomes: List of chromosomes to retain :param dict strelka_options: Options specific to strelka ...
[ "def", "wrap_unmerge", "(", "job", ",", "strelka_out", ",", "chromosomes", ",", "strelka_options", ",", "univ_options", ")", ":", "return", "{", "'snvs'", ":", "job", ".", "addChildJobFn", "(", "unmerge", ",", "strelka_out", "[", "'snvs'", "]", ",", "'strelk...
A wwrapper to unmerge the strelka snvs and indels :param dict strelka_out: Results from run_strelka :param list chromosomes: List of chromosomes to retain :param dict strelka_options: Options specific to strelka :param dict univ_options: Dict of universal options used by almost all tools :return: D...
[ "A", "wwrapper", "to", "unmerge", "the", "strelka", "snvs", "and", "indels" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/strelka.py#L165-L190
train
A wrapper to unmerge the snvs and indels in a new set of chromosomes.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/ip/__init__.py
ip._set_prefix_list
def _set_prefix_list(self, v, load=False): """ Setter method for prefix_list, mapped from YANG variable /rbridge_id/ip/prefix_list (list) If this variable is read-only (config: false) in the source YANG file, then _set_prefix_list is considered as a private method. Backends looking to populate this ...
python
def _set_prefix_list(self, v, load=False): """ Setter method for prefix_list, mapped from YANG variable /rbridge_id/ip/prefix_list (list) If this variable is read-only (config: false) in the source YANG file, then _set_prefix_list is considered as a private method. Backends looking to populate this ...
[ "def", "_set_prefix_list", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for prefix_list, mapped from YANG variable /rbridge_id/ip/prefix_list (list) If this variable is read-only (config: false) in the source YANG file, then _set_prefix_list is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_pref...
[ "Setter", "method", "for", "prefix_list", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "ip", "/", "prefix_list", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "sourc...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ip/__init__.py#L176-L199
train
Sets the prefix list of the .
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/ip/__init__.py
ip._set_rtm_config
def _set_rtm_config(self, v, load=False): """ Setter method for rtm_config, mapped from YANG variable /rbridge_id/ip/rtm_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_rtm_config is considered as a private method. Backends looking to populate this...
python
def _set_rtm_config(self, v, load=False): """ Setter method for rtm_config, mapped from YANG variable /rbridge_id/ip/rtm_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_rtm_config is considered as a private method. Backends looking to populate this...
[ "def", "_set_rtm_config", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for rtm_config, mapped from YANG variable /rbridge_id/ip/rtm_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_rtm_config is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_rt...
[ "Setter", "method", "for", "rtm_config", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "ip", "/", "rtm_config", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "so...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ip/__init__.py#L310-L331
train
Sets the value of the RTM_CONFIG property in the base node.
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py
rsvp._set_rsvp_reservable_bandwidth
def _set_rsvp_reservable_bandwidth(self, v, load=False): """ Setter method for rsvp_reservable_bandwidth, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/rsvp_reservable_bandwidth (container) If this variable is read-only (config: false) in the source YANG file, t...
python
def _set_rsvp_reservable_bandwidth(self, v, load=False): """ Setter method for rsvp_reservable_bandwidth, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/rsvp_reservable_bandwidth (container) If this variable is read-only (config: false) in the source YANG file, t...
[ "def", "_set_rsvp_reservable_bandwidth", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v"...
Setter method for rsvp_reservable_bandwidth, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/rsvp_reservable_bandwidth (container) If this variable is read-only (config: false) in the source YANG file, then _set_rsvp_reservable_bandwidth is considered as a private met...
[ "Setter", "method", "for", "rsvp_reservable_bandwidth", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "mpls_interface", "/", "rsvp", "/", "rsvp_reservable_bandwidth", "(", "container", ")", "If", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py#L105-L126
train
Sets the rsvp reservable bandwidth for the MPLS interface.
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py
rsvp._set_rsvp_authentication
def _set_rsvp_authentication(self, v, load=False): """ Setter method for rsvp_authentication, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/rsvp_authentication (container) If this variable is read-only (config: false) in the source YANG file, then _set_rsvp_auth...
python
def _set_rsvp_authentication(self, v, load=False): """ Setter method for rsvp_authentication, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/rsvp_authentication (container) If this variable is read-only (config: false) in the source YANG file, then _set_rsvp_auth...
[ "def", "_set_rsvp_authentication", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",...
Setter method for rsvp_authentication, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/rsvp_authentication (container) If this variable is read-only (config: false) in the source YANG file, then _set_rsvp_authentication is considered as a private method. Backends look...
[ "Setter", "method", "for", "rsvp_authentication", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "mpls_interface", "/", "rsvp", "/", "rsvp_authentication", "(", "container", ")", "If", "this", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py#L138-L159
train
Sets the rsvp authentication for the
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py
rsvp._set_interface_rsvp_hello
def _set_interface_rsvp_hello(self, v, load=False): """ Setter method for interface_rsvp_hello, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/interface_rsvp_hello (container) If this variable is read-only (config: false) in the source YANG file, then _set_interf...
python
def _set_interface_rsvp_hello(self, v, load=False): """ Setter method for interface_rsvp_hello, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/interface_rsvp_hello (container) If this variable is read-only (config: false) in the source YANG file, then _set_interf...
[ "def", "_set_interface_rsvp_hello", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", "...
Setter method for interface_rsvp_hello, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/interface_rsvp_hello (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_rsvp_hello is considered as a private method. Backends l...
[ "Setter", "method", "for", "interface_rsvp_hello", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "mpls_interface", "/", "rsvp", "/", "interface_rsvp_hello", "(", "container", ")", "If", "this", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py#L171-L192
train
Set the hello value of the rsvp server.
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py
rsvp._set_rsvp_hello_disable
def _set_rsvp_hello_disable(self, v, load=False): """ Setter method for rsvp_hello_disable, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/rsvp_hello_disable (empty) If this variable is read-only (config: false) in the source YANG file, then _set_rsvp_hello_disab...
python
def _set_rsvp_hello_disable(self, v, load=False): """ Setter method for rsvp_hello_disable, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/rsvp_hello_disable (empty) If this variable is read-only (config: false) in the source YANG file, then _set_rsvp_hello_disab...
[ "def", "_set_rsvp_hello_disable", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for rsvp_hello_disable, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/rsvp_hello_disable (empty) If this variable is read-only (config: false) in the source YANG file, then _set_rsvp_hello_disable is considered as a private method. Backends looking to ...
[ "Setter", "method", "for", "rsvp_hello_disable", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "mpls_interface", "/", "rsvp", "/", "rsvp_hello_disable", "(", "empty", ")", "If", "this", "varia...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py#L204-L225
train
Sets the rsvp - hello - disable variable in the rsvp - archive.
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py
rsvp._set_interface_refresh_reduction
def _set_interface_refresh_reduction(self, v, load=False): """ Setter method for interface_refresh_reduction, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/interface_refresh_reduction (container) If this variable is read-only (config: false) in the source YANG f...
python
def _set_interface_refresh_reduction(self, v, load=False): """ Setter method for interface_refresh_reduction, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/interface_refresh_reduction (container) If this variable is read-only (config: false) in the source YANG f...
[ "def", "_set_interface_refresh_reduction", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "...
Setter method for interface_refresh_reduction, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/interface_refresh_reduction (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_refresh_reduction is considered as a private ...
[ "Setter", "method", "for", "interface_refresh_reduction", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "mpls_interface", "/", "rsvp", "/", "interface_refresh_reduction", "(", "container", ")", "I...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py#L336-L357
train
Sets the refresh reduction of the specified node.
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py
rsvp._set_interface_reliable_messaging
def _set_interface_reliable_messaging(self, v, load=False): """ Setter method for interface_reliable_messaging, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/interface_reliable_messaging (container) If this variable is read-only (config: false) in the source YAN...
python
def _set_interface_reliable_messaging(self, v, load=False): """ Setter method for interface_reliable_messaging, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/interface_reliable_messaging (container) If this variable is read-only (config: false) in the source YAN...
[ "def", "_set_interface_reliable_messaging", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", ...
Setter method for interface_reliable_messaging, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/interface_reliable_messaging (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_reliable_messaging is considered as a privat...
[ "Setter", "method", "for", "interface_reliable_messaging", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "mpls_interface", "/", "rsvp", "/", "interface_reliable_messaging", "(", "container", ")", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/rsvp/__init__.py#L369-L390
train
Set the value of the interface_reliable_messaging property.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_zone_rpc/__init__.py
brocade_zone._set_show_zoning_enabled_configuration
def _set_show_zoning_enabled_configuration(self, v, load=False): """ Setter method for show_zoning_enabled_configuration, mapped from YANG variable /brocade_zone_rpc/show_zoning_enabled_configuration (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_zoning_enabl...
python
def _set_show_zoning_enabled_configuration(self, v, load=False): """ Setter method for show_zoning_enabled_configuration, mapped from YANG variable /brocade_zone_rpc/show_zoning_enabled_configuration (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_zoning_enabl...
[ "def", "_set_show_zoning_enabled_configuration", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(...
Setter method for show_zoning_enabled_configuration, mapped from YANG variable /brocade_zone_rpc/show_zoning_enabled_configuration (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_zoning_enabled_configuration is considered as a private method. Backends looking to p...
[ "Setter", "method", "for", "show_zoning_enabled_configuration", "mapped", "from", "YANG", "variable", "/", "brocade_zone_rpc", "/", "show_zoning_enabled_configuration", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_zone_rpc/__init__.py#L95-L119
train
Sets the show_zoning_enabled_configuration of the based on show_zoning_enabled_configuration_rpc.
StackStorm/pybind
pybind/nos/v6_0_2f/policy_map/class_/set_/__init__.py
set_._set_set_dscp
def _set_set_dscp(self, v, load=False): """ Setter method for set_dscp, mapped from YANG variable /policy_map/class/set/set_dscp (container) If this variable is read-only (config: false) in the source YANG file, then _set_set_dscp is considered as a private method. Backends looking to populate this ...
python
def _set_set_dscp(self, v, load=False): """ Setter method for set_dscp, mapped from YANG variable /policy_map/class/set/set_dscp (container) If this variable is read-only (config: false) in the source YANG file, then _set_set_dscp is considered as a private method. Backends looking to populate this ...
[ "def", "_set_set_dscp", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for set_dscp, mapped from YANG variable /policy_map/class/set/set_dscp (container) If this variable is read-only (config: false) in the source YANG file, then _set_set_dscp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_s...
[ "Setter", "method", "for", "set_dscp", "mapped", "from", "YANG", "variable", "/", "policy_map", "/", "class", "/", "set", "/", "set_dscp", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/policy_map/class_/set_/__init__.py#L127-L148
train
Sets the DSCP of the current node.
StackStorm/pybind
pybind/slxos/v17s_1_02/lag/hash/__init__.py
hash._set_speculate_mpls
def _set_speculate_mpls(self, v, load=False): """ Setter method for speculate_mpls, mapped from YANG variable /lag/hash/speculate_mpls (container) If this variable is read-only (config: false) in the source YANG file, then _set_speculate_mpls is considered as a private method. Backends looking to po...
python
def _set_speculate_mpls(self, v, load=False): """ Setter method for speculate_mpls, mapped from YANG variable /lag/hash/speculate_mpls (container) If this variable is read-only (config: false) in the source YANG file, then _set_speculate_mpls is considered as a private method. Backends looking to po...
[ "def", "_set_speculate_mpls", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for speculate_mpls, mapped from YANG variable /lag/hash/speculate_mpls (container) If this variable is read-only (config: false) in the source YANG file, then _set_speculate_mpls is considered as a private method. Backends looking to populate this variable should do so via calling thisObj....
[ "Setter", "method", "for", "speculate_mpls", "mapped", "from", "YANG", "variable", "/", "lag", "/", "hash", "/", "speculate_mpls", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/lag/hash/__init__.py#L332-L353
train
Sets the speculate_mpls field of the .
budacom/trading-bots
trading_bots/utils.py
get_iso_time_str
def get_iso_time_str(timestamp: Union[int, float, str, datetime]=None) -> str: """Get the ISO time string from a timestamp or date obj. Returns current time str if no timestamp is passed""" if isinstance(timestamp, (int, float)): maya_dt = maya.MayaDT(timestamp) elif isinstance(timestamp, str): ...
python
def get_iso_time_str(timestamp: Union[int, float, str, datetime]=None) -> str: """Get the ISO time string from a timestamp or date obj. Returns current time str if no timestamp is passed""" if isinstance(timestamp, (int, float)): maya_dt = maya.MayaDT(timestamp) elif isinstance(timestamp, str): ...
[ "def", "get_iso_time_str", "(", "timestamp", ":", "Union", "[", "int", ",", "float", ",", "str", ",", "datetime", "]", "=", "None", ")", "->", "str", ":", "if", "isinstance", "(", "timestamp", ",", "(", "int", ",", "float", ")", ")", ":", "maya_dt", ...
Get the ISO time string from a timestamp or date obj. Returns current time str if no timestamp is passed
[ "Get", "the", "ISO", "time", "string", "from", "a", "timestamp", "or", "date", "obj", ".", "Returns", "current", "time", "str", "if", "no", "timestamp", "is", "passed" ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/utils.py#L27-L37
train
Get the ISO time string from a timestamp or date obj. Returns current time str if no timestamp is passed.
budacom/trading-bots
trading_bots/utils.py
truncate
def truncate(value: Decimal, n_digits: int) -> Decimal: """Truncates a value to a number of decimals places""" return Decimal(math.trunc(value * (10 ** n_digits))) / (10 ** n_digits)
python
def truncate(value: Decimal, n_digits: int) -> Decimal: """Truncates a value to a number of decimals places""" return Decimal(math.trunc(value * (10 ** n_digits))) / (10 ** n_digits)
[ "def", "truncate", "(", "value", ":", "Decimal", ",", "n_digits", ":", "int", ")", "->", "Decimal", ":", "return", "Decimal", "(", "math", ".", "trunc", "(", "value", "*", "(", "10", "**", "n_digits", ")", ")", ")", "/", "(", "10", "**", "n_digits"...
Truncates a value to a number of decimals places
[ "Truncates", "a", "value", "to", "a", "number", "of", "decimals", "places" ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/utils.py#L40-L42
train
Truncates a value to a number of decimals places
budacom/trading-bots
trading_bots/utils.py
truncate_to
def truncate_to(value: Decimal, currency: str) -> Decimal: """Truncates a value to the number of decimals corresponding to the currency""" decimal_places = DECIMALS.get(currency.upper(), 2) return truncate(value, decimal_places)
python
def truncate_to(value: Decimal, currency: str) -> Decimal: """Truncates a value to the number of decimals corresponding to the currency""" decimal_places = DECIMALS.get(currency.upper(), 2) return truncate(value, decimal_places)
[ "def", "truncate_to", "(", "value", ":", "Decimal", ",", "currency", ":", "str", ")", "->", "Decimal", ":", "decimal_places", "=", "DECIMALS", ".", "get", "(", "currency", ".", "upper", "(", ")", ",", "2", ")", "return", "truncate", "(", "value", ",", ...
Truncates a value to the number of decimals corresponding to the currency
[ "Truncates", "a", "value", "to", "the", "number", "of", "decimals", "corresponding", "to", "the", "currency" ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/utils.py#L45-L48
train
Truncates a value to the number of decimals corresponding to the currency
budacom/trading-bots
trading_bots/utils.py
truncate_money
def truncate_money(money: Money) -> Money: """Truncates money amount to the number of decimals corresponding to the currency""" amount = truncate_to(money.amount, money.currency) return Money(amount, money.currency)
python
def truncate_money(money: Money) -> Money: """Truncates money amount to the number of decimals corresponding to the currency""" amount = truncate_to(money.amount, money.currency) return Money(amount, money.currency)
[ "def", "truncate_money", "(", "money", ":", "Money", ")", "->", "Money", ":", "amount", "=", "truncate_to", "(", "money", ".", "amount", ",", "money", ".", "currency", ")", "return", "Money", "(", "amount", ",", "money", ".", "currency", ")" ]
Truncates money amount to the number of decimals corresponding to the currency
[ "Truncates", "money", "amount", "to", "the", "number", "of", "decimals", "corresponding", "to", "the", "currency" ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/utils.py#L51-L54
train
Truncates money amount to the number of decimals corresponding to the currency
budacom/trading-bots
trading_bots/utils.py
spread_value
def spread_value(value: Decimal, spread_p: Decimal) -> Tuple[Decimal, Decimal]: """Returns a lower and upper value separated by a spread percentage""" upper = value * (1 + spread_p) lower = value / (1 + spread_p) return lower, upper
python
def spread_value(value: Decimal, spread_p: Decimal) -> Tuple[Decimal, Decimal]: """Returns a lower and upper value separated by a spread percentage""" upper = value * (1 + spread_p) lower = value / (1 + spread_p) return lower, upper
[ "def", "spread_value", "(", "value", ":", "Decimal", ",", "spread_p", ":", "Decimal", ")", "->", "Tuple", "[", "Decimal", ",", "Decimal", "]", ":", "upper", "=", "value", "*", "(", "1", "+", "spread_p", ")", "lower", "=", "value", "/", "(", "1", "+...
Returns a lower and upper value separated by a spread percentage
[ "Returns", "a", "lower", "and", "upper", "value", "separated", "by", "a", "spread", "percentage" ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/utils.py#L57-L61
train
Returns a lower and upper value separated by a spread percentage
budacom/trading-bots
trading_bots/utils.py
spread_money
def spread_money(money: Money, spread_p: Decimal) -> Tuple[Money, Money]: """Returns a lower and upper money amount separated by a spread percentage""" upper, lower = spread_value(money.amount, spread_p) return Money(upper, money.currency), Money(lower, money.currency)
python
def spread_money(money: Money, spread_p: Decimal) -> Tuple[Money, Money]: """Returns a lower and upper money amount separated by a spread percentage""" upper, lower = spread_value(money.amount, spread_p) return Money(upper, money.currency), Money(lower, money.currency)
[ "def", "spread_money", "(", "money", ":", "Money", ",", "spread_p", ":", "Decimal", ")", "->", "Tuple", "[", "Money", ",", "Money", "]", ":", "upper", ",", "lower", "=", "spread_value", "(", "money", ".", "amount", ",", "spread_p", ")", "return", "Mone...
Returns a lower and upper money amount separated by a spread percentage
[ "Returns", "a", "lower", "and", "upper", "money", "amount", "separated", "by", "a", "spread", "percentage" ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/utils.py#L64-L67
train
Returns a lower and upper money amount separated by a spread percentage
budacom/trading-bots
trading_bots/utils.py
validate_age
def validate_age(name: str, tolerance: float, from_timestamp: float, to_timestamp: float) -> None: """Check if age is valid (within tolerance)""" age = to_timestamp - from_timestamp assert age <= tolerance, f'{name} is too old! (Age: {age} > Tolerance: {tolerance})'
python
def validate_age(name: str, tolerance: float, from_timestamp: float, to_timestamp: float) -> None: """Check if age is valid (within tolerance)""" age = to_timestamp - from_timestamp assert age <= tolerance, f'{name} is too old! (Age: {age} > Tolerance: {tolerance})'
[ "def", "validate_age", "(", "name", ":", "str", ",", "tolerance", ":", "float", ",", "from_timestamp", ":", "float", ",", "to_timestamp", ":", "float", ")", "->", "None", ":", "age", "=", "to_timestamp", "-", "from_timestamp", "assert", "age", "<=", "toler...
Check if age is valid (within tolerance)
[ "Check", "if", "age", "is", "valid", "(", "within", "tolerance", ")" ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/utils.py#L75-L78
train
Check if age is valid.
StackStorm/pybind
pybind/nos/v7_2_0/rbridge_id/maps/policy/__init__.py
policy._set_ruleaction
def _set_ruleaction(self, v, load=False): """ Setter method for ruleaction, mapped from YANG variable /rbridge_id/maps/policy/ruleaction (list) If this variable is read-only (config: false) in the source YANG file, then _set_ruleaction is considered as a private method. Backends looking to populate ...
python
def _set_ruleaction(self, v, load=False): """ Setter method for ruleaction, mapped from YANG variable /rbridge_id/maps/policy/ruleaction (list) If this variable is read-only (config: false) in the source YANG file, then _set_ruleaction is considered as a private method. Backends looking to populate ...
[ "def", "_set_ruleaction", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for ruleaction, mapped from YANG variable /rbridge_id/maps/policy/ruleaction (list) If this variable is read-only (config: false) in the source YANG file, then _set_ruleaction is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._se...
[ "Setter", "method", "for", "ruleaction", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "maps", "/", "policy", "/", "ruleaction", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/maps/policy/__init__.py#L131-L152
train
Sets the ruleaction of the based on the policy ruleaction list.
nepalicalendar/nepalicalendar-py
nepalicalendar/functions.py
check_valid_ad_range
def check_valid_ad_range(date): """ Checks if the english date is in valid range for conversion """ if date < values.START_EN_DATE or date > values.END_EN_DATE: raise ValueError("Date out of range") return True
python
def check_valid_ad_range(date): """ Checks if the english date is in valid range for conversion """ if date < values.START_EN_DATE or date > values.END_EN_DATE: raise ValueError("Date out of range") return True
[ "def", "check_valid_ad_range", "(", "date", ")", ":", "if", "date", "<", "values", ".", "START_EN_DATE", "or", "date", ">", "values", ".", "END_EN_DATE", ":", "raise", "ValueError", "(", "\"Date out of range\"", ")", "return", "True" ]
Checks if the english date is in valid range for conversion
[ "Checks", "if", "the", "english", "date", "is", "in", "valid", "range", "for", "conversion" ]
a589c28b8e085049f30a7287753476b59eca6f50
https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/functions.py#L8-L14
train
Checks if the english date is in valid range for conversion
nepalicalendar/nepalicalendar-py
nepalicalendar/functions.py
check_valid_bs_range
def check_valid_bs_range(date): """ Checks if the nepali date is in valid range for conversion """ ERR_MSG = "%s out of range" % str(date) if date.year < values.START_NP_YEAR or date.year > values.END_NP_YEAR: raise ValueError(ERR_MSG) if date.month < 1 or date.month > 12: raise...
python
def check_valid_bs_range(date): """ Checks if the nepali date is in valid range for conversion """ ERR_MSG = "%s out of range" % str(date) if date.year < values.START_NP_YEAR or date.year > values.END_NP_YEAR: raise ValueError(ERR_MSG) if date.month < 1 or date.month > 12: raise...
[ "def", "check_valid_bs_range", "(", "date", ")", ":", "ERR_MSG", "=", "\"%s out of range\"", "%", "str", "(", "date", ")", "if", "date", ".", "year", "<", "values", ".", "START_NP_YEAR", "or", "date", ".", "year", ">", "values", ".", "END_NP_YEAR", ":", ...
Checks if the nepali date is in valid range for conversion
[ "Checks", "if", "the", "nepali", "date", "is", "in", "valid", "range", "for", "conversion" ]
a589c28b8e085049f30a7287753476b59eca6f50
https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/functions.py#L17-L29
train
Checks if the nepali date is in valid range for conversion
nepalicalendar/nepalicalendar-py
nepalicalendar/functions.py
nepali_number
def nepali_number(number): """ Convert a number to nepali """ nepnum = "" for n in str(number): nepnum += values.NEPDIGITS[int(n)] return nepnum
python
def nepali_number(number): """ Convert a number to nepali """ nepnum = "" for n in str(number): nepnum += values.NEPDIGITS[int(n)] return nepnum
[ "def", "nepali_number", "(", "number", ")", ":", "nepnum", "=", "\"\"", "for", "n", "in", "str", "(", "number", ")", ":", "nepnum", "+=", "values", ".", "NEPDIGITS", "[", "int", "(", "n", ")", "]", "return", "nepnum" ]
Convert a number to nepali
[ "Convert", "a", "number", "to", "nepali" ]
a589c28b8e085049f30a7287753476b59eca6f50
https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/functions.py#L31-L38
train
Convert a number to nepali
StackStorm/pybind
pybind/slxos/v17s_1_02/hardware/__init__.py
hardware._set_connector
def _set_connector(self, v, load=False): """ Setter method for connector, mapped from YANG variable /hardware/connector (list) If this variable is read-only (config: false) in the source YANG file, then _set_connector is considered as a private method. Backends looking to populate this variable shou...
python
def _set_connector(self, v, load=False): """ Setter method for connector, mapped from YANG variable /hardware/connector (list) If this variable is read-only (config: false) in the source YANG file, then _set_connector is considered as a private method. Backends looking to populate this variable shou...
[ "def", "_set_connector", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for connector, mapped from YANG variable /hardware/connector (list) If this variable is read-only (config: false) in the source YANG file, then _set_connector is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_connector() dir...
[ "Setter", "method", "for", "connector", "mapped", "from", "YANG", "variable", "/", "hardware", "/", "connector", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/hardware/__init__.py#L103-L124
train
Set connector for the
StackStorm/pybind
pybind/slxos/v17s_1_02/hardware/__init__.py
hardware._set_port_group
def _set_port_group(self, v, load=False): """ Setter method for port_group, mapped from YANG variable /hardware/port_group (list) If this variable is read-only (config: false) in the source YANG file, then _set_port_group is considered as a private method. Backends looking to populate this variable ...
python
def _set_port_group(self, v, load=False): """ Setter method for port_group, mapped from YANG variable /hardware/port_group (list) If this variable is read-only (config: false) in the source YANG file, then _set_port_group is considered as a private method. Backends looking to populate this variable ...
[ "def", "_set_port_group", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for port_group, mapped from YANG variable /hardware/port_group (list) If this variable is read-only (config: false) in the source YANG file, then _set_port_group is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_port_group()...
[ "Setter", "method", "for", "port_group", "mapped", "from", "YANG", "variable", "/", "hardware", "/", "port_group", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "fi...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/hardware/__init__.py#L136-L157
train
Sets the port - group of the .
StackStorm/pybind
pybind/slxos/v17s_1_02/hardware/__init__.py
hardware._set_system_mode
def _set_system_mode(self, v, load=False): """ Setter method for system_mode, mapped from YANG variable /hardware/system_mode (system-mode-type) If this variable is read-only (config: false) in the source YANG file, then _set_system_mode is considered as a private method. Backends looking to populat...
python
def _set_system_mode(self, v, load=False): """ Setter method for system_mode, mapped from YANG variable /hardware/system_mode (system-mode-type) If this variable is read-only (config: false) in the source YANG file, then _set_system_mode is considered as a private method. Backends looking to populat...
[ "def", "_set_system_mode", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for system_mode, mapped from YANG variable /hardware/system_mode (system-mode-type) If this variable is read-only (config: false) in the source YANG file, then _set_system_mode is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._s...
[ "Setter", "method", "for", "system_mode", "mapped", "from", "YANG", "variable", "/", "hardware", "/", "system_mode", "(", "system", "-", "mode", "-", "type", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/hardware/__init__.py#L235-L256
train
Sets the system mode of the
StackStorm/pybind
pybind/slxos/v17s_1_02/openflow_state/__init__.py
openflow_state._set_detail
def _set_detail(self, v, load=False): """ Setter method for detail, mapped from YANG variable /openflow_state/detail (container) If this variable is read-only (config: false) in the source YANG file, then _set_detail is considered as a private method. Backends looking to populate this variable shoul...
python
def _set_detail(self, v, load=False): """ Setter method for detail, mapped from YANG variable /openflow_state/detail (container) If this variable is read-only (config: false) in the source YANG file, then _set_detail is considered as a private method. Backends looking to populate this variable shoul...
[ "def", "_set_detail", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for detail, mapped from YANG variable /openflow_state/detail (container) If this variable is read-only (config: false) in the source YANG file, then _set_detail is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_detail() dire...
[ "Setter", "method", "for", "detail", "mapped", "from", "YANG", "variable", "/", "openflow_state", "/", "detail", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/openflow_state/__init__.py#L116-L137
train
Sets the detail variable of the
StackStorm/pybind
pybind/slxos/v17s_1_02/openflow_state/__init__.py
openflow_state._set_flow
def _set_flow(self, v, load=False): """ Setter method for flow, mapped from YANG variable /openflow_state/flow (container) If this variable is read-only (config: false) in the source YANG file, then _set_flow is considered as a private method. Backends looking to populate this variable should do...
python
def _set_flow(self, v, load=False): """ Setter method for flow, mapped from YANG variable /openflow_state/flow (container) If this variable is read-only (config: false) in the source YANG file, then _set_flow is considered as a private method. Backends looking to populate this variable should do...
[ "def", "_set_flow", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for flow, mapped from YANG variable /openflow_state/flow (container) If this variable is read-only (config: false) in the source YANG file, then _set_flow is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_flow() directly. ...
[ "Setter", "method", "for", "flow", "mapped", "from", "YANG", "variable", "/", "openflow_state", "/", "flow", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "fil...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/openflow_state/__init__.py#L151-L174
train
Sets the flow of the
StackStorm/pybind
pybind/slxos/v17s_1_02/openflow_state/__init__.py
openflow_state._set_group
def _set_group(self, v, load=False): """ Setter method for group, mapped from YANG variable /openflow_state/group (container) If this variable is read-only (config: false) in the source YANG file, then _set_group is considered as a private method. Backends looking to populate this variable should ...
python
def _set_group(self, v, load=False): """ Setter method for group, mapped from YANG variable /openflow_state/group (container) If this variable is read-only (config: false) in the source YANG file, then _set_group is considered as a private method. Backends looking to populate this variable should ...
[ "def", "_set_group", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for group, mapped from YANG variable /openflow_state/group (container) If this variable is read-only (config: false) in the source YANG file, then _set_group is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_group() directly...
[ "Setter", "method", "for", "group", "mapped", "from", "YANG", "variable", "/", "openflow_state", "/", "group", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "f...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/openflow_state/__init__.py#L188-L211
train
Sets the group of the
StackStorm/pybind
pybind/slxos/v17s_1_02/openflow_state/__init__.py
openflow_state._set_meter
def _set_meter(self, v, load=False): """ Setter method for meter, mapped from YANG variable /openflow_state/meter (container) If this variable is read-only (config: false) in the source YANG file, then _set_meter is considered as a private method. Backends looking to populate this variable should ...
python
def _set_meter(self, v, load=False): """ Setter method for meter, mapped from YANG variable /openflow_state/meter (container) If this variable is read-only (config: false) in the source YANG file, then _set_meter is considered as a private method. Backends looking to populate this variable should ...
[ "def", "_set_meter", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for meter, mapped from YANG variable /openflow_state/meter (container) If this variable is read-only (config: false) in the source YANG file, then _set_meter is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_meter() directly...
[ "Setter", "method", "for", "meter", "mapped", "from", "YANG", "variable", "/", "openflow_state", "/", "meter", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "f...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/openflow_state/__init__.py#L225-L248
train
Sets the meter of the current node.
StackStorm/pybind
pybind/slxos/v17s_1_02/openflow_state/__init__.py
openflow_state._set_resources
def _set_resources(self, v, load=False): """ Setter method for resources, mapped from YANG variable /openflow_state/resources (container) If this variable is read-only (config: false) in the source YANG file, then _set_resources is considered as a private method. Backends looking to populate this va...
python
def _set_resources(self, v, load=False): """ Setter method for resources, mapped from YANG variable /openflow_state/resources (container) If this variable is read-only (config: false) in the source YANG file, then _set_resources is considered as a private method. Backends looking to populate this va...
[ "def", "_set_resources", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for resources, mapped from YANG variable /openflow_state/resources (container) If this variable is read-only (config: false) in the source YANG file, then _set_resources is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_reso...
[ "Setter", "method", "for", "resources", "mapped", "from", "YANG", "variable", "/", "openflow_state", "/", "resources", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YAN...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/openflow_state/__init__.py#L262-L285
train
Sets the resources property of the
StackStorm/pybind
pybind/slxos/v17s_1_02/openflow_state/__init__.py
openflow_state._set_flow_id
def _set_flow_id(self, v, load=False): """ Setter method for flow_id, mapped from YANG variable /openflow_state/flow_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_flow_id is considered as a private method. Backends looking to populate this variable s...
python
def _set_flow_id(self, v, load=False): """ Setter method for flow_id, mapped from YANG variable /openflow_state/flow_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_flow_id is considered as a private method. Backends looking to populate this variable s...
[ "def", "_set_flow_id", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for flow_id, mapped from YANG variable /openflow_state/flow_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_flow_id is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_flow_id() ...
[ "Setter", "method", "for", "flow_id", "mapped", "from", "YANG", "variable", "/", "openflow_state", "/", "flow_id", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/openflow_state/__init__.py#L404-L425
train
Sets the flow_id of the
StackStorm/pybind
pybind/slxos/v17s_1_02/openflow_state/__init__.py
openflow_state._set_group_id
def _set_group_id(self, v, load=False): """ Setter method for group_id, mapped from YANG variable /openflow_state/group_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_group_id is considered as a private method. Backends looking to populate this variab...
python
def _set_group_id(self, v, load=False): """ Setter method for group_id, mapped from YANG variable /openflow_state/group_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_group_id is considered as a private method. Backends looking to populate this variab...
[ "def", "_set_group_id", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for group_id, mapped from YANG variable /openflow_state/group_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_group_id is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_group_i...
[ "Setter", "method", "for", "group_id", "mapped", "from", "YANG", "variable", "/", "openflow_state", "/", "group_id", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/openflow_state/__init__.py#L437-L458
train
Sets the group_id of the
StackStorm/pybind
pybind/slxos/v17s_1_02/openflow_state/__init__.py
openflow_state._set_meter_id
def _set_meter_id(self, v, load=False): """ Setter method for meter_id, mapped from YANG variable /openflow_state/meter_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_meter_id is considered as a private method. Backends looking to populate this variab...
python
def _set_meter_id(self, v, load=False): """ Setter method for meter_id, mapped from YANG variable /openflow_state/meter_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_meter_id is considered as a private method. Backends looking to populate this variab...
[ "def", "_set_meter_id", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for meter_id, mapped from YANG variable /openflow_state/meter_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_meter_id is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_meter_i...
[ "Setter", "method", "for", "meter_id", "mapped", "from", "YANG", "variable", "/", "openflow_state", "/", "meter_id", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/openflow_state/__init__.py#L470-L491
train
Sets the meter_id of the current node.
StackStorm/pybind
pybind/slxos/v17s_1_02/openflow_state/__init__.py
openflow_state._set_queues_interface
def _set_queues_interface(self, v, load=False): """ Setter method for queues_interface, mapped from YANG variable /openflow_state/queues_interface (container) If this variable is read-only (config: false) in the source YANG file, then _set_queues_interface is considered as a private method. Backends...
python
def _set_queues_interface(self, v, load=False): """ Setter method for queues_interface, mapped from YANG variable /openflow_state/queues_interface (container) If this variable is read-only (config: false) in the source YANG file, then _set_queues_interface is considered as a private method. Backends...
[ "def", "_set_queues_interface", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for queues_interface, mapped from YANG variable /openflow_state/queues_interface (container) If this variable is read-only (config: false) in the source YANG file, then _set_queues_interface is considered as a private method. Backends looking to populate this variable should do so via call...
[ "Setter", "method", "for", "queues_interface", "mapped", "from", "YANG", "variable", "/", "openflow_state", "/", "queues_interface", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "s...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/openflow_state/__init__.py#L503-L524
train
Sets the queues_interface variable.
bkg/django-spillway
spillway/renderers/renderers.py
GeoJSONRenderer.render
def render(self, data, accepted_media_type=None, renderer_context=None): """Returns *data* encoded as GeoJSON.""" data = collections.as_feature(data) try: return data.geojson except AttributeError: return super(GeoJSONRenderer, self).render( data, ...
python
def render(self, data, accepted_media_type=None, renderer_context=None): """Returns *data* encoded as GeoJSON.""" data = collections.as_feature(data) try: return data.geojson except AttributeError: return super(GeoJSONRenderer, self).render( data, ...
[ "def", "render", "(", "self", ",", "data", ",", "accepted_media_type", "=", "None", ",", "renderer_context", "=", "None", ")", ":", "data", "=", "collections", ".", "as_feature", "(", "data", ")", "try", ":", "return", "data", ".", "geojson", "except", "...
Returns *data* encoded as GeoJSON.
[ "Returns", "*", "data", "*", "encoded", "as", "GeoJSON", "." ]
c488a62642430b005f1e0d4a19e160d8d5964b67
https://github.com/bkg/django-spillway/blob/c488a62642430b005f1e0d4a19e160d8d5964b67/spillway/renderers/renderers.py#L18-L25
train
Returns * data * encoded as GeoJSON.
bkg/django-spillway
spillway/serializers.py
GeoModelSerializer.get_fields
def get_fields(self): """Returns a fields dict for this serializer with a 'geometry' field added. """ fields = super(GeoModelSerializer, self).get_fields() # Set the geometry field name when it's undeclared. if not self.Meta.geom_field: for name, field in fiel...
python
def get_fields(self): """Returns a fields dict for this serializer with a 'geometry' field added. """ fields = super(GeoModelSerializer, self).get_fields() # Set the geometry field name when it's undeclared. if not self.Meta.geom_field: for name, field in fiel...
[ "def", "get_fields", "(", "self", ")", ":", "fields", "=", "super", "(", "GeoModelSerializer", ",", "self", ")", ".", "get_fields", "(", ")", "# Set the geometry field name when it's undeclared.", "if", "not", "self", ".", "Meta", ".", "geom_field", ":", "for", ...
Returns a fields dict for this serializer with a 'geometry' field added.
[ "Returns", "a", "fields", "dict", "for", "this", "serializer", "with", "a", "geometry", "field", "added", "." ]
c488a62642430b005f1e0d4a19e160d8d5964b67
https://github.com/bkg/django-spillway/blob/c488a62642430b005f1e0d4a19e160d8d5964b67/spillway/serializers.py#L31-L42
train
Returns a dict of fields for this serializer with a geometry field added.
StackStorm/pybind
pybind/slxos/v17r_1_01a/routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_additional_paths/__init__.py
af_additional_paths._set_addpath_select
def _set_addpath_select(self, v, load=False): """ Setter method for addpath_select, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_additional_paths/addpath_select (container) If this variable is read-only (config: false) in the source YANG fil...
python
def _set_addpath_select(self, v, load=False): """ Setter method for addpath_select, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_additional_paths/addpath_select (container) If this variable is read-only (config: false) in the source YANG fil...
[ "def", "_set_addpath_select", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for addpath_select, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_additional_paths/addpath_select (container) If this variable is read-only (config: false) in the source YANG file, then _set_addpath_select is considered as a private ...
[ "Setter", "method", "for", "addpath_select", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "router_bgp", "/", "address_family", "/", "ipv6", "/", "ipv6_unicast", "/", "af_ipv6_vrf", "/", "af_additional_paths", "/", "addpath_select"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_additional_paths/__init__.py#L127-L148
train
Sets the selected paths in the BGP additional paths table.