R/protein_state_mapping.R

Defines functions read_protein_state_mapping

read_protein_state_mapping <- function(df) {
    pairs_df <- unique(df[, c("Protein", "State")])

    res <- list()
    for (protein in pairs_df[["Protein"]]) {
        res[[protein]] <- pairs_df[pairs_df[["Protein"]] == protein, ][["State"]]
    }

    res
}
hadexversum/IAOPeptideReader documentation built on March 3, 2021, 12:33 a.m.