lib5c.parsers.bias module

Module for parsing bias vector files.

lib5c.parsers.bias.load_bias_vector(bias_file, pixelmap)[source]

Loads in bias vectors from a bias vector file.

  • bias_file (str) – String reference to the location of a .bias file to load bias vectors from.

  • pixelmap (Dict[str, List[Dict[str, Any]]]) – A primermap or pixelmap specifying the information about the regions and loci whose bias factors are contained in the bias_file.


The keys are region names as strings, the values are the one-dimensional bias vectors for that region.

Return type

Dict[str, np.ndarray]