add.covariates {chicane} | R Documentation |
add.covariates
Description
Add model covariates (trans counts and distance) to an interactions data table.
Usage
add.covariates(interaction.data)
Arguments
interaction.data |
data.table with interaction data. Must contain columns
|
Value
Updated data table with new columns
bait.trans.count |
number of trans interactions of bait fragment |
target.trans.count |
number of trans interactions of target fragment |
distance |
distance between bait and target fragment, or NA if trans |
Author(s)
Erle Holgersen <Erle.Holgersen@icr.ac.uk>
Examples
data(bre80);
input.cols <- c('bait.id', 'target.id', 'bait.chr', 'bait.start',
'bait.end', 'target.chr', 'target.start', 'target.end', 'count');
output <- add.covariates(bre80[, input.cols, with = FALSE]);
[Package chicane version 0.1.8 Index]