I just tried AlphaViz to load Thermo DIA Raw file following tutorial_DIANN.ipynb, but I got:
~/Workspace/alphaviz/alphaviz/io.py in create_diann_proteins_table(diann_df, fasta)
476 }, inplace=True)
477 proteins['# proteins'] = proteins['Protein IDs'].apply(lambda x: len(x.split(',')))
--> 478 proteins['Protein names'], proteins['Sequence lengths'] = zip(
479 *proteins['Protein IDs'].apply(lambda x: alphaviz.preprocessing.get_protein_info(fasta, x)))
480 first_columns = ['Protein IDs', 'Protein names', 'Gene names', '# proteins', '(EXP) # peptides', '# MS/MS', 'Sequence lengths']
ValueError: not enough values to unpack (expected 2, got 0)
create_diann_proteins_table() in alphaviz.io. import_diann_output() crashed, probably because the protein ids in fasta = alphaviz.io.read_fasta(fasta_file)
are different from the protein ids in the library.
proteins['Protein names'], proteins['Sequence lengths'] = zip(
*proteins['Protein IDs'].apply(lambda x: alphaviz.preprocessing.get_protein_info(fasta, x)))
got empty information...
My suggestion is to disable fasta check in import_diann_output, we can create another fasta check function. If fasta check fails, we can still go on to visualize peptides and manually input protein sequences for following steps.