psite_annotation.addDomains

psite_annotation.addDomains(df, domainMappingFile)

Adds column with domains the peptide overlaps with.

Adds the following annotation columns to dataframe:

  • Domains = semicolon separated list of domains that overlap with the peptide

Example

df = pa.addPeptideAndPsitePositions(df, pa.pspFastaFile, pspInput = True)
df = pa.addDomains(df, pa.domainMappingFile)
Required columns:

Matched proteins, Start positions, End positions

Parameters:
  • df (DataFrame) – pandas dataframe with ‘Matched proteins’, ‘Start positions’ and ‘End positions’ columns

  • domainMappingFile (str) – comma separated file with domains and their positions within the protein

Returns:

annotated dataframe

Return type:

pd.DataFrame