plot_peptide_traces(df:DataFrame, name:str, protein:str, fasta:py'>, uniprot:DataFrame, selected_features:list, uniprot_feature_dict:dict, uniprot_color_dict:dict, selected_proteases:list=[], selected_alphafold_features:list=[], dashboard:bool=False, trace_colors:list=[], download_folder:str='/var/folders/zx/n29r0swn0hddt1qgy159sjrw0000gn/T')
Function to generate the sequence plot.
Args:
df (pd.DataFrame/list): Single dataframe or list of dataframes containing the datasets to plot.
name (str/list): Single string or list of strings containing the names for each dataset in df.
protein (str): Uniprot protein accession.
fasta (fasta): Fasta file imported by pyteomics 'fasta.IndexedUniProt'.
uniprot (pd.DataFrame): Uniprot annotations formatted by alphamap.
selected_features (list): List of uniprot features to plot.
uniprot_feature_dict (dict): Uniprot feature dictionary.
uniprot_color_dict (dict): Uniprot color dictionary.
selected_proteases (list, optional): List of proteases to plot. Default is an empty list.
dashboard (bool, optional): Flag if the function is called from the dashboard. Default is 'False'.
trace_colors (list, optional): List of manualy selected colors for each dataset in df. Default is an empty list.
Returns:
go.Figure: Sequence plot.