RNAmediator.Tweaks.RNAmediator.read_constraints
- RNAmediator.Tweaks.RNAmediator.read_constraints(constraint: str, linewise: bool = False, constraintype: str = 'hard') Dict[str, List[str]]
Reads constraints from the constraints file
- Parameters:
constraint (Union[None, Dict]) – file location of the constrains file
linewise (bool, optional) – does not add the gene identifier to the returned cinstrantslist dictionary is set to True (default is False)
constraintype (str, optional) – sets type of constraint (default is hard)
- Returns:
Dictionary containing the goi in the bed file as keys and constraints in string format (start-end|strand) as values. If linewise is set to True only a single key (“lw”) is used to store all constraints.
- Return type:
Dict[str, List[str]]