Skip to content

Commit

Permalink
Merge branch 'v3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
tlesluyes committed Apr 27, 2023
2 parents 6066a7a + c4c10f8 commit fd697b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ASCAT/R/ascat.aspcf.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ ascat.aspcf = function(ASCATobj, selectsamples = 1:length(ASCATobj$samples), asc
if(length(homsegs)==3) {
homsegs=t(as.matrix(homsegs))
}
if(!is.null(homsegs)&&!is.na(homsegs)&&dim(homsegs)[1]!=0) {
if(!is.null(homsegs)&&dim(homsegs)[1]!=0) {
for (i in 1:dim(homsegs)[1]) {
if (anyNA(homsegs[i,])) next
# note that only the germline homozygous segment is resegmented, plus a bit extra (but this is NOT replaced)
startpos = max(homsegs[i,2],startchr)
endpos = min(homsegs[i,3],endchr)
Expand Down

0 comments on commit fd697b4

Please sign in to comment.