Description Usage Arguments Details Value Examples
union
combines two loops objects' interactions and anchors and
populates the colData
matrix where available
1 2 | ## S4 method for signature 'loops,loops'
union(x, y)
|
x |
A loops object |
y |
A loops object |
This function returns a single loops object that has all the anchors and interactions contained in the two loops objects that were part of the input. However, when the two objects have different samples, the counts matrix will contain missing values (e.g. when loop counts in x are not in y, those values are unknown). While the number of interactions, colData, and anchors should be correct, we need to correct the counts using a subsetting function. The row data gets re-initialized here to only the loop widths
A loops obect
1 2 3 4 5 6 7 8 | # divide and recombine samples
rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
load(rda)
naive <- loops.small[,1:2]
primed <- loops.small[,3:4]
np <- union(naive, primed)
# Subset from full to get correct counts
c.np <- loopsSubset(np, loops.small)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.