Skip to content

Commit

Permalink
Style code (GHA)
Browse files Browse the repository at this point in the history
  • Loading branch information
elena-krismer committed Aug 26, 2024
1 parent 9b8abc8 commit e242aee
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions R/assign_peptide_type.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,16 @@ assign_peptide_type <- function(data,
)) %>%
dplyr::select(-N_term_tryp, -C_term_tryp, -missing_methionine)

result <- data %>%
dplyr::left_join(peptide_data %>%
dplyr::select({{ aa_before }}, {{ last_aa }}, {{ aa_after }}, {{ protein_id }}, pep_type),
by = c(
rlang::as_name(rlang::enquo(aa_before)),
rlang::as_name(rlang::enquo(last_aa)),
rlang::as_name(rlang::enquo(aa_after)),
rlang::as_name(rlang::enquo(protein_id))
))
result <- data %>%
dplyr::left_join(
peptide_data %>%
dplyr::select({{ aa_before }}, {{ last_aa }}, {{ aa_after }}, {{ protein_id }}, pep_type),
by = c(
rlang::as_name(rlang::enquo(aa_before)),
rlang::as_name(rlang::enquo(last_aa)),
rlang::as_name(rlang::enquo(aa_after)),
rlang::as_name(rlang::enquo(protein_id))
)
)
return(result)

}

0 comments on commit e242aee

Please sign in to comment.