diff --git a/README.md b/README.md index 47c7bf3..c99748d 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ A peptidoform is a combination of a `PeptideSequence(Modifications) + Charge + B > Note: At the moment, ibaqpy computes the ibaq values only based on unique peptides. Shared peptides are discarded. However, if a group of proteins share the same unique peptides (e.g., Pep1 -> Prot1;Prot2 and Pep2 -> Prot1;Prot2), the intensity of the proteins is summed and divided by the number of proteins in the group. #### Calculate the IBAQ Value -First, peptide intensity dataframe was grouped according to protein name, sample name and condition. The protein intensity of each group was summed. Due to the experimental type, the same protein may exhibit missing peptides in different samples, resulting in variations in the number of peptides detected for the protein across different samples. To handle this difference, normalization within the same group can be achieved by using the formula `sum(peptides) / n`(n represents the number of detected peptide segments). Finally, the sum of the intensity of the protein is divided by the number of theoretical peptides.See details in `peptides2proteins`. +First, peptide intensity dataframe was grouped according to protein name, sample name and condition. The protein intensity of each group was summed. Due to the experimental type, the same protein may exhibit missing peptides in different samples, resulting in variations in the number of peptides detected for the protein across different samples. To handle this difference, normalization within the same group can be achieved by using the formula `sum(peptides) / n`(n represents the number of detected peptide segments). Finally, the normalized intensity of the protein is divided by the number of theoretical peptides.See details in `peptides2proteins`. > Note: In all scripts and result files, *uniprot accession* is used as the protein identifier. diff --git a/benchmarks/README.md b/benchmarks/README.md index aa1c8c9..2ae0570 100644 --- a/benchmarks/README.md +++ b/benchmarks/README.md @@ -56,7 +56,12 @@ In summary, both datasets were searched with three search engines _SAGE_, _COMET #### Coefficient of Variation (CV) -Coefficient of variation for all samples in both experiments using `quantile`, `median`, `median-cov`. We extracted human proteins common to 11 samples from IBAQ data. The mean of the coefficient of variation of all proteins in 11 samples was then calculated. +Coefficient of variation for all samples in both experiments using `quantile`, `median`, `median-cov`. +- `quantile`: In the data preprocessing, adjust the samples to ensure that the mean and variance of all samples are equal. Finally, the sum of the intensity of the protein is divided by the number of theoretical peptides. +- `median`: In the data preprocessing, adjust the samples to ensure that the median of all samples are equal. Finally, the sum of the intensity of the protein is divided by the number of theoretical peptides. +- `median-cov`: In the data preprocessing, adjust the samples to ensure that the median of all samples are equal. Due to the experimental type, the same protein may exhibit missing peptides in different samples, resulting in variations in the number of peptides detected for the protein across different samples. To handle this difference, normalization within the same group can be achieved by using the formula `sum(peptides) / n`(n represents the number of detected peptide segments). Finally, the normalized intensity of the protein is divided by the number of theoretical peptides. + +We extracted human proteins common to 11 samples from IBAQ data. The mean of the coefficient of variation of all proteins in 11 samples was then calculated. Compared to the `quantile`, `median` and `median-cov` has a smaller coefficient of variation. `median-cov` has the smallest CV in the lfq experiment. @@ -179,8 +184,82 @@ We will normalize the MaxLFQ values of the proteins in the DIANN report by divid ### Performance testing -The [PXD030304](https://ftp.pride.ebi.ac.uk/pub/databases/pride/resources/proteomes/absolute-expression/PXD030304/) project collected mass spectrometry data from 949 cancer cell lines and reanalyzed it using the DIANN analysis pipeline within the quantms platform.The size of the `diann_report.tsv` file is 167GB, after being converted to a parquet file using quantmsio, the size is 15.8GB.We conducted performance testing in a 128GB memory environment. -| Project | Samples | Size(diann report) | Size(parquet file) | Runn time | -|--------|---------|----------|----------|----------| -| PXD030304 | 2013 | 167G | 15.8G | 2.75h | +We have conducted performance tests on three methods. Since `median` and `median-cov` only differ when calculating ibaq, they are referred to as `median` below. It can be seen that the `median` is based on the sample level. It does not read all data at once like the `quantile`, but reads it in batches (by default, it reads 20 samples at a time), which greatly reduces memory consumption. + +
Project | +File size(original) | +File size(transform) | +Ms runs | +Samples | +Method | +Memory | +Run time | +
---|---|---|---|---|---|---|---|
PXD016999.1 | +5.7 G | +292 M | +336 | +280 | +quantile | +36.4 G | +14 min | +
median | +8.4 G | +20 min | +|||||
PXD019909 | +1.9 G | +171 M | +43 | +43 | +quantile | +7.9 G | +30 s | +
median | +4.0 G | +1.4 min | +|||||
PXD010154 | +1.9 G | +287 M | +1367 | +38 | +quantile | +32.1 G | +8 min | +
median | +16.2 G | +12 min | +|||||
PXD030304 | +167 G | +15.8 G | +6862 | +2013 | +quantile | +> 128 G | +> 2 days | +
median | +13.1 G | +2.75 h | +