Skip to content

Commit e33f593

Browse files
committed
restoring handling of peptides
1 parent c076525 commit e33f593

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

R/read_FragPipe_TMT.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,19 @@ read_FragPipe_TMT <- function(path = NULL, org_to_retain = NULL, use_gene_as_pro
5454
}
5555

5656
# make featureNames
57-
if (grepl("multi-site|peptide", basename(path_to_file))) {
58-
57+
if (grepl("peptide", basename(path_to_file))) {
58+
df <- df %>%
59+
mutate(rowname = paste(Gene, ProteinID, Peptide, sep = "|"))
60+
}
61+
else if (grepl("multi-site", basename(path_to_file))) {
5962
df <- df %>% mutate(rowname = paste(Gene,
6063
ProteinID,
6164
str_split_i(Index, "_", i = 4),
6265
Peptide,
6366
sep = "|"))
64-
6567
df <- df %>%
6668
dplyr::filter(
6769
str_split_i(Index, "_", i = 4) == str_split_i(Index, "_", i = 5))
68-
6970
}
7071
else if (grepl("single-site", basename(path_to_file))) {
7172
if(use_gene_as_prot_id){

0 commit comments

Comments
 (0)