Skip to content

Commit

Permalink
Merge develop to main (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredeen authored Mar 7, 2024
1 parent a837db5 commit 9804adb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/app_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ run_blast<-function(bl, query,cpus, hits, evalue, minIden,minalg, type) {
for (i in 1:length(query)) {
nam=lista[i]
blast_table[[nam]] <- predict(bl, query[i,], BLAST_args = blast_arg)

# Rename column names because the rBLAST predict function sometimes names columns differently
names(blast_table[[nam]])<-c("QueryID","SubjectID","Perc.Ident","Alignment.Length","Mismatches","Gap.Openings","Q.start","Q.end","S.start","S.end","E","Bits")

print(paste("blast_table names=", names(blast_table[[nam]])))
log4r::debug(logger, paste("blast_table names=", names(blast_table[[nam]])))
LEN=query[i,]@ranges@width
blast_table[[nam]] <- blast_table[[nam]] %>% mutate(Perc.Query.Coverage = round((Alignment.Length-Gap.Openings)*100/LEN,2)) %>% filter(Perc.Ident > minIden & Perc.Query.Coverage > minalg)
}
Expand Down

0 comments on commit 9804adb

Please sign in to comment.