Extracts uniprot ID

get_UniprotID_from_fasta_header(df, idcolumn = "protein_Id")

Arguments

obj

data.frame

idcol

columns to extract uniprot id's from

Value

data.frame

Examples


bb <- prolfqua_data('data_ionstar')$filtered()
#> Column added : nr_peptide_Id_IN_protein_Id
tmp <- prolfqua::separate_hierarchy(bb$data,old2new( bb$config))
tmp$UniprotID <- NULL
tmp <- get_UniprotID_from_fasta_header(tmp, idcolumn = "top_protein")
#> Warning: Expected 2 pieces. Additional pieces discarded in 5 rows [47, 65, 72, 89, 133].
#> Warning: Expected 3 pieces. Missing pieces filled with `NA` in 5 rows [47, 65, 72, 89,
#> 133].
stopifnot("UniprotID" %in%  colnames(tmp))