moca.wigoperations package

Submodules

moca.wigoperations.query module

Perform query on bigwig files

class moca.wigoperations.query.WigReader(wig_location)[source]

Bases: future.types.newobject.newobject

Class for reading and querying wigfiles

get_chromosomes

Return list of chromsome and their sizes as in the wig file

Returns:chroms – Dictionary with {“chr”: “Length”} format
Return type:dict
query(intervals)[source]

Query regions for scores

Parameters:intervals (list of tuples) – A list of tuples with the following format: (chr, chrStart, chrEnd, strand)
Returns:scores – A numpy array containing scores for each tuple
Return type:np.array

Module contents