Skip to content
Snippets Groups Projects
Unverified Commit 0e7b8e0c authored by maryamghr's avatar maryamghr Committed by GitHub
Browse files

fixed a bug

subset regions to the regions that have non-zero read count
parent 121483c8
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,8 @@ getHaplotagTable <- function(sv.table=NULL, bam.path=NULL) {
## split reads per selected region
hits <- findOverlaps(SV.regions.gr.perCell, fragments)
fragments.per.region <- split(fragments[subjectHits(hits)], queryHits(hits))
# subset regions to the regions that have non-zero read count
regions <- regions[unique(queryHits(hits)),]
## count haplotagged reads in selected regions
counts <- lapply(fragments.per.region, getHapReadCount)
counts.df <- do.call(rbind, counts)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment