orient_compartment: Orient the compartment score signs according to 'reference'

View source: R/analysis.R

orient_compartmentR Documentation

Orient the compartment score signs according to reference

Description

Orient the compartment score signs according to reference

Usage

orient_compartment(compartment, reference, score_cols = c("score"))

Arguments

compartment

A GRanges object for compartment scores.

reference

A GRanges for the reference compartment track.

score_cols

A character vector indicating which columns are candidates for compartment scores. For example, c("PC1", "PC2") means from PC1 and PC2, picking the one most likely to be associated with A/B compartments, and orient it if necessary.

Value

The compartment. The signs of compartment scores may have been flipped based on reference.


haizi-zh/hictools documentation built on June 29, 2022, 4:32 a.m.