Skip to content

Commit

Permalink
Merge branch 'improve_assign_peptide_type_243' of https://github.com/…
Browse files Browse the repository at this point in the history
…jpquast/protti into improve_assign_peptide_type_243
  • Loading branch information
elena-krismer committed Aug 27, 2024
2 parents 86a0756 + e242aee commit 8ef53e3
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 8ef53e3

Please sign in to comment.