Skip to contents

These pre-processing steps are:

  1. Replaces chromosome 'X' for '23'.

  2. Removes segments in chromosome 'Y'.

  3. Adds an extra column for the End Position of the segment.

  4. Removes segments whose ratio and ratio_median are -1.

  5. Log2 transforms the ratio and ratio_median columns.

  6. Removes segments with a ratio_median = -Inf.

Usage

CleanBamRatiosFrame(raw_bam_ratios, log_transform)

Arguments

raw_bam_ratios

A data frame: the raw bam ratios file obtained from the bam_ratio.txt file.

log_transform

A boolean: TRUE if you want to log2 transform the ratio_median column. FALSE otherwise. If dealing with Controlfreec data, log_transform should be TRUE. If QDNAseq, log_transform should be FALSE.