pycallingcards.reading.combine_qbed#

pycallingcards.reading.combine_qbed(filelist, name=['Chr', 'Start'])[source]#

Combine .qbed file.

Parameters:
  • filelist (list) – List containing all of the pd.DataFrames that need to be combined.

  • name (List (default: ['Chr', 'Start'])) – Name of the first two colums. Default is [“Chr”, “Start”].

Returns:

pd.DataFrame after combined.

Return type:

DataFrame

Example:

>>> import pycallingcards as cc
>>> P10 = cc.rd.read_qbed("https://github.com/The-Mitra-Lab/pycallingcards_data/releases/download/data/SP1_P10.txt")
>>> P28 = cc.rd.read_qbed("https://github.com/The-Mitra-Lab/pycallingcards_data/releases/download/data/SP1_P28.txt")
>>> qbed = cc.rd.combine_qbed([P10,P28])