Skip to content

Commit 80aed32

Browse files
Added cores option to diamond_protein_to_protein_best_hits() and diamond_protein_to_protein_best_reciprocal_hit()
1 parent 27a4eca commit 80aed32

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

R/diamond_protein_to_protein_best_hits.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ diamond_protein_to_protein_best_hits <- function(
104104
out_format = out_format,
105105
evalue = evalue,
106106
max_target_seqs = max_target_seqs,
107+
cores = cores,
107108
hard_mask = hard_mask,
108109
diamond_exec_path = diamond_exec_path,
109110
add_makedb_options = add_makedb_options,
@@ -113,4 +114,4 @@ diamond_protein_to_protein_best_hits <- function(
113114
query_id <- '.' <- NULL
114115
hit_tbl <- dplyr::do(dplyr::group_by(hit_tbl, query_id), filter_best_hits(.))
115116
return(hit_tbl)
116-
}
117+
}

R/diamond_protein_to_protein_best_reciprocal_hit.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ diamond_protein_to_protein_best_reciprocal_hits <- function(
104104
out_format = out_format,
105105
evalue = evalue,
106106
max_target_seqs = max_target_seqs,
107+
cores = cores,
107108
hard_mask = hard_mask,
108109
diamond_exec_path = diamond_exec_path,
109110
add_makedb_options = add_makedb_options,
@@ -119,6 +120,7 @@ diamond_protein_to_protein_best_reciprocal_hits <- function(
119120
out_format = out_format,
120121
evalue = evalue,
121122
max_target_seqs = max_target_seqs,
123+
cores = cores,
122124
hard_mask = hard_mask,
123125
diamond_exec_path = diamond_exec_path,
124126
add_makedb_options = add_makedb_options,
@@ -144,4 +146,4 @@ diamond_protein_to_protein_best_reciprocal_hits <- function(
144146
" could not be joined properly to select only the reciprocal best hits."
145147
)
146148
})
147-
}
149+
}

0 commit comments

Comments
 (0)