Converter Module

TSV to Excel conversion and formatting

File conversion module.

This module provides functionality to convert TSV files to XLSX format and append additional sheets in a single writer session. It also supports producing JSON files for the HTML report.

variantcentrifuge.converter.convert_to_excel(tsv_file, cfg, df=None, extra_sheets=None, output_file=None)[source]

Convert a TSV file or DataFrame to XLSX format with Results and optional extra sheets.

Parameters:
Return type:

str

variantcentrifuge.converter.produce_report_json(variant_tsv, output_dir)[source]

Produce JSON files (variants.json and summary.json) from a TSV of variants.

Parameters:
  • variant_tsv (str) – Path to the TSV file containing annotated variants.

  • output_dir (str) – Directory to write the JSON outputs (variants.json, summary.json).

Return type:

None