Motif Type¶
-
rnamake.motif_type.
str_to_type
(type_name)[source]¶ converts string to its corresponding motif_type
Parameters: type_name – name of motif_type enum Returns: corresponding motif_type enum Return type: motif_type >>> import motif_type >>> motif_type.str_to_type('TWOWAY') 0
-
rnamake.motif_type.
type_to_str
(mtype)[source]¶ convery motif_type enum value into a string for each printing
Parameters: mtype (motif_type) – motif type value Returns: return string name of motif_type from type_to_str_dict Return type: string Examples: >>> import motif_type >>> motif_type.type_to_str(motif_type.TWOWAY) TWOWAY