-
Notifications
You must be signed in to change notification settings - Fork 35
nchernia edited this page Jun 20, 2018
·
3 revisions
Straw is compatible with R via the Rcpp library. Usage is very similar to the examples on the C++ page. Future versions might use a different signature to call the function.
library(Rcpp)
sourceCpp("straw-R.cpp")
A<-straw_R("NONE drosophila.hic arm_2L arm_2L BP 100000")
In the above example, A is a data frame containing the counts information:
> head(A)
x y counts
1 800000 4700000 77
2 0 0 41105
3 5500000 8100000 82
4 2700000 8300000 85
5 5700000 17700000 11
6 3000000 16500000 27
Please see this forum post for a solution to a compilation error that some users have experienced.