viola.Vcf.append_infos

Vcf.append_infos(base_df, ls_tablenames, left_on='id', auto_fillna=True)

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, default 'id') – The name of SV id column of base_df

  • auto_fillna (bool, default True) – If True, use the header information to handle missing values after merging DataFrames.

Returns

A DataFrame which the INFO tables are added.

Return type

DataFrame