pycallingcards.preprocessing.down_sample#

pycallingcards.preprocessing.down_sample(qbed, number=10000000, random_state=1)[source]#

Down sample insertion data.

Parameters:
  • qbed (DataFrame) – pd.DataFrame for qbed data.

  • number (int (default: 10000000)) – The target number for downsampling. It should be less than the total number of insertions.

  • random_state (int (default: 1)) – The random seed.

Examples:

>>> import pycallingcards as cc
>>> qbed_data = cc.datasets.mousecortex_data(data="qbed")
>>> peak_data = cc.pp.down_sample(qbed_data, number = 10000)