paste_matrices: Create a 'data.frame' with the contacts of two matrices...

Description Usage Arguments Details Value Examples

View source: R/paste_matrices.R

Description

This function takes two sparse matrix of contacts and a maximum distance (in bins) and returns a data.frame with the contacts of the tow matrices for each pair of positions.

Usage

1
paste_matrices(smat1, smat2, mm)

Arguments

smat1

A dgTMatrix of contacts with genomic bins as row.names.

smat2

Another dgTMatrix of contacts with genomic bins as row.names.

mm

The maximum distance (in bp) to truncate the data.

Details

This is an auxiliary function used by scc.

Value

A data.frame with the two coordinates (i and j) and the number of contacts of each matrix (x1 and x2).

Examples

1
plot(0)

qenvio/dryhic documentation built on May 26, 2019, 11:35 a.m.