Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
export(.extractAMRtable)
export(.updateBVBRCdata)
export(CDHIT2duckdb)
export(buildClusterFeatureMap)
export(buildDyadFeatureMap)
export(checkDataAvailability)
export(cleanData)
Expand Down
5 changes: 3 additions & 2 deletions R/data_processing.R
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ NULL
tidyr::separate_rows(protein_ids, sep = ";") |>
# dplyr::filter(!stringr::str_detect(protein_ids, "_pseudo")) |>
dplyr::mutate(protein_ids = gsub("_pseudo", "", protein_ids)) |>
dplyr::mutate(protein_ids = gsub("_len", "", protein_ids)) |>
DBI::dbWriteTable(conn = con, name = "genome_gene_protein", overwrite = TRUE)
}

Expand Down Expand Up @@ -1405,7 +1406,7 @@ CDHIT2duckdb <- function(duckdb_path,
#' Default: `8`.
#' @param n_workers Integer. Number of parallel HMMER jobs to run. Default: `8`.
#' @param verbose Logical. Print progress messages. Default: `TRUE`.#'
#' @returns
#' @returns Invisibily returns completed HMMER Parquet files per requested database.
#'
#' @keywords internal
.runHMMER <- function(duckdb_path,
Expand Down Expand Up @@ -2235,7 +2236,7 @@ CDHIT2duckdb <- function(duckdb_path,
#' @param ref_file_path Directory containing reference TSVs used by
#' [cleanMetaData()] and [cleanData()] for metadata harmonization.
#' Default: `"data_raw/"`.
#'
#'
#' @export
cleanMetaData <- function(duckdb_path, path, ref_file_path = "data_raw/") {
duckdb_path <- normalizePath(duckdb_path)
Expand Down
171 changes: 0 additions & 171 deletions R/feature_to_cluster.R

This file was deleted.

4 changes: 2 additions & 2 deletions R/feature_to_head.R
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ buildDyadFeatureMap <- function(
view_name = "v_pfam",
parquet_dir = parquet_dir,
dataset_name = "protein_Pfam",
feature_expr = "query_name"
feature_expr = "REPLACE(query_name, '-', '.')"
)
}

Expand Down Expand Up @@ -444,7 +444,7 @@ buildDyadFeatureMap <- function(
view_name = "v_defensecas",
parquet_dir = parquet_dir,
dataset_name = "protein_DefenseCas",
feature_expr = "query_name"
feature_expr = "REPLACE(query_name, '-', '.')"
)
}

Expand Down
52 changes: 0 additions & 52 deletions man/buildClusterFeatureMap.Rd

This file was deleted.

2 changes: 1 addition & 1 deletion man/class_abbr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/clean_drug.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/cleaned_bvbrc_countries.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/dot-runHMMER.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/drug_abbr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/drug_class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading