snipar.utilities module
- class snipar.utilities.NumRangeAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]
Bases:
Action
flattens and sorts the resulting num range. also removes duplicates
- snipar.utilities.make_id_dict(x, col=0)[source]
Make a dictionary that maps from the values in the given column (col) to their row-index in the input array
- snipar.utilities.open_bgen(filename: str, verbose: bool = False) open_bgen [source]
Wrapper of bgen_reader.open_bgen that checks if sample ids make sense.