Skip to content

Commit

Permalink
more tidytable
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Jul 10, 2023
1 parent dd95553 commit abdeed8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions R/clean_bio.R
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ clean_bio <-
) |>
# In case there are no consensus at all because no network
tidytable::mutate(tidytable::across(tidytable::where(is.logical), as.character)) |>
data.frame() |>
tidytable::tidytable()

# TODO Think about better scoring option
Expand Down
1 change: 1 addition & 0 deletions R/harmonize_spectra.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ harmonize_spectra <- function(spectra,

spectra_harmonized <- spectra_filtered |>
tidytable::full_join(spectra_missing) |>
data.frame() |>
tidytable::tidytable() |>
tidytable::select(
collision_energy,
Expand Down
1 change: 1 addition & 0 deletions R/prepare_libraries_sop_closed.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ prepare_libraries_sop_closed <-
tidytable::fread(
na.strings = c("", "NA")
) |>
data.frame() |>
tidytable::tidytable()

log_debug(x = "Formatting closed resource")
Expand Down
1 change: 1 addition & 0 deletions R/prepare_libraries_sop_ecmdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ prepare_libraries_sop_ecmdb <-
description = input,
filename = file
)) |>
data.frame() |>
tidytable::tidytable()
})

Expand Down
3 changes: 2 additions & 1 deletion R/prepare_libraries_sop_merged.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ prepare_libraries_sop_merged <-
}

tables <- tidytable::bind_rows(libraries) |>
tidytable::data.table() |>
data.frame() |>
tidytable::tidytable() |>
split_tables_sop()

log_debug(x = "Keeping keys")
Expand Down
1 change: 1 addition & 0 deletions R/weight_bio.R
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ weight_bio <-
score_pondered_bio
) |>
tidytable::arrange(as.numeric(feature_id)) |>
data.frame() |>
tidytable::tidytable()

return(biologically_weighted_full)
Expand Down

0 comments on commit abdeed8

Please sign in to comment.