From 0bc12788f6b20354d715c630f6a32a403fbe0390 Mon Sep 17 00:00:00 2001 From: jo Date: Thu, 3 Mar 2022 16:36:53 +0100 Subject: [PATCH] small fix in network coverage calculation --- src/coverage.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coverage.R b/src/coverage.R index 9f72d2ea..0d2e8fc7 100755 --- a/src/coverage.R +++ b/src/coverage.R @@ -42,7 +42,7 @@ coverage <- function(genome.filestr, anno.filestr, anno.filestr2=NA){ feat.start <- anno.red[i,start] feat.end <- anno.red[i,end] contig <- anno.red[i,stitle] - contig.idx <- match(contig, names(genome.hit)) + contig.idx <- match(contig, trimws(names(genome.hit))) if( !is.na(feat.start) & !is.na(feat.end) ){ genome.hit[[contig.idx]][feat.start:feat.end] <- 1