powered by
Calculate the number of trans-interactions per fragment, accounting for the fact that baits can be listed either as bait or target.
get.trans.counts(interaction.data)
Data table containing interactions
Data table with columns fragment.id and trans.count.
fragment.id
trans.count
ID of restriction fragment in chrN:start-end format
Number of trans interactions involving the fragment
# NOT RUN { data(bre80); get.trans.counts(bre80[, .(bait.chr, target.chr, bait.id, target.id, count)]); # }
Run the code above in your browser using DataLab