Skip to content

Commit

Permalink
small fix in network coverage calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
jotech committed Mar 3, 2022
1 parent 58c2da5 commit 0bc1278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coverage.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0bc1278

Please sign in to comment.