viola.Bedpe.append_infos

Bedpe.append_infos(base_df, ls_tablenames, left_on='id')

Append INFO tables to the right of the base_df, based on the SV id columns. If the name of the SV id column in base_df is not ‘id’, specify column name into left_on argument.

Parameters
  • base_df (DataFrame) – The DataFrame to which the INFO tables are appended.

  • ls_tablenames (list-like) – The list of INFO table names to be appended.

  • left_on (str) – The name of SV id column of base_df

Returns

A DataFrame which the INFO tables are added.

Return type

DataFrame