psite_annotation.addMotifs
- psite_annotation.addMotifs(df, motifsFile)
Adds column with motifs the site sequence context matches with.
Adds the following annotation columns to dataframe:
Motifs = semicolon separated list of motifs that match with the site sequence contexts
Example
df = pa.addPeptideAndPsitePositions(df, pa.pspFastaFile, pspInput = True) df = pa.addMotifs(df, pa.motifsFile)
- Required columns:
Site sequence context- Parameters:
df (
DataFrame) – pandas dataframe with ‘Site sequence context’ columnmotifsFile (
str) – tab separated file with motifs and their identifiers
- Returns:
annotated dataframe
- Return type:
pd.DataFrame