Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions R/facets-segment.R
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ segsnps <- function(mat, cval=25, hetscale=FALSE, delta=0) {
jointsegsummary <- function(jointseg) {
# remove snps with NA in segs (due to NA in cnlr)
jointseg <- jointseg[is.finite(jointseg$seg),]
# properly order the data
jointseg <- jointseg[order(jointseg$seg, jointseg$chrom, jointseg$maploc), ]
# initialize output table
nsegs <- max(jointseg$seg)
# segment start and end indices and number of loci
Expand Down