You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the FragPipe software for database searches, and the output file combined_ion.tsv is used for quantification with directLFQ. I plan to perform differential expression analysis using DEqMS, but DEqMS requires peptide counts for each protein to adjust the quantification. How can I use the GUI to add the peptide counts for each protein to the output file, given that this information is not present in the combined_ion.tsv? Additionally, I keep encountering an error 'Could not add additional columns to protein table, printing without additional columns' whenever I try to add gene names.
The text was updated successfully, but these errors were encountered:
Hi, so unfortunately I have no default script for adding peptide counts to the results table. In case you are a little bit familiar with pandas, you could append the counts to the table. It would go something like the code below, you have to adapt the filenames and column names.
Concerning the error with adding the gene names, thanks for making me aware, I found and fixed the issue. Will be included in the next release.
import pandas as pd
# Read the TSV files
combined_ion_df = pd.read_csv("combined_ion.tsv", sep="\t")
directlfq_results_df = pd.read_csv("direclfq_results_file.tsv", sep="\t")
# Create a dictionary of protein to peptide count
protein2count = combined_ion_df.groupby("protein")["sequence"].size().to_dict()
# Add the peptide counts to directlfq_results_df
directlfq_results_df["peptide_counts"] = directlfq_results_df["protein"].map(protein2count)
I am using the FragPipe software for database searches, and the output file combined_ion.tsv is used for quantification with directLFQ. I plan to perform differential expression analysis using DEqMS, but DEqMS requires peptide counts for each protein to adjust the quantification. How can I use the GUI to add the peptide counts for each protein to the output file, given that this information is not present in the combined_ion.tsv? Additionally, I keep encountering an error 'Could not add additional columns to protein table, printing without additional columns' whenever I try to add gene names.
The text was updated successfully, but these errors were encountered: