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
{{ message }}
Repository navigation
Adding the contam_ prefix doesn't work with an existing database. It only works when downloading the database using Philosopher #530
This is a bug reported by emails. I put it here in case we forget it. It also let potential affected users know: human contaminant proteins are always not marked with prefix contam_ even when the original fasta file is not from human proteome.
Following are the steps to reproduce this bug:
generate a test.fasta file with entry
>sp|OABCD|Test_A Keratin, type I cytoskeletal 15 OS=Ovis aries GN=KRT15 PE=2 SV=1
TESTABCD
I used my own E. Coli fasta file. Adding decoys and contaminants using Philosopher. And then, the human contaminants are not marked as contaminants.
this dynamic tagging only works when you use the --id flag
Do you mean that it only works when downloading the fasta file using Philosopher, but it won't work when adding decoys and contaminants for existing fasta file? Then, you should clearify it in the Philosopher doc and tutorial. It is kind of misleading.
It will only work when you download from UniProt. Can you point to me which documentation is telling the opposite ? As far as I know, the documentation still hasn't been updated because we did not release this feature.
In the released 4.4.0 version, the following marked line is not accurate. Philosopher can not mark the contaminant sequences for any existing fasta files. It can only mark when it downloads the fasta file.
Target-Decoy database formatting
Usage:
philosopher database [flags]
Flags:
--add string add custom sequences (UniProt FASTA format only)
--annotate string process a ready-to-use database
--contam add common contaminants --contamprefix mark the contaminant sequences with a prefix tag
--custom string use a pre-formatted custom database
--enzyme string enzyme for digestion (trypsin, lys_c, lys_n, glu_c, chymotrypsin) (default "trypsin")
-h, --help help for database
--id string UniProt proteome ID
--isoform add isoform sequences
--nodecoys don't add decoys to the database
--prefix string define a decoy prefix (default "rev_")
--reviewed use only reviwed sequences from Swiss-Prot
Thanks. As I mentioned, the flag and the dynamic tagging will be fully explained when we release the new version. I can add the prefix flag for now, but the rest will only come later.
changed the title [-]Philosopher failed to mark contaminant human proteins with prefix `contam_`[/-][+]Adding the contam_ prefix doesn't work with an existing database. It only works when downloading the database using Philosopher[/+]on Apr 1, 2025
Activity
fcyu commentedon Nov 4, 2022
Just an update. Philosopher-v4.5.1-RC21 still has this issue.
Best,
Fengchao
prvst commentedon Nov 4, 2022
Can you give me an example? I prepared a human database just today, and no human protein is marked as contaminant.
fcyu commentedon Nov 4, 2022
When you prepare a non-human database, all human contaminant are NOT marked as contaminant, which is not supposed to be.
See my first message in this thread to reproduce it.
Best,
Fengchao
prvst commentedon Nov 4, 2022
I just tested with E.coli
fcyu commentedon Nov 4, 2022
Can you try this fasta file: test.zip
prvst commentedon Nov 4, 2022
organism-based prefix tagging only works with Uniprot records, Uniprot-like wont work
fcyu commentedon Nov 4, 2022
Fine. This real E. Coli protein from UniProt also triggered the bug.
real_uniprot_ecoli_protein.zip
prvst commentedon Nov 4, 2022
Did you download with Philosopher ? this dynamic tagging only works when you use the --id flag
fcyu commentedon Nov 4, 2022
I used my own E. Coli fasta file. Adding decoys and contaminants using Philosopher. And then, the human contaminants are not marked as contaminants.
Do you mean that it only works when downloading the fasta file using Philosopher, but it won't work when adding decoys and contaminants for existing fasta file? Then, you should clearify it in the Philosopher doc and tutorial. It is kind of misleading.
Best,
Fengchao
prvst commentedon Nov 4, 2022
It will only work when you download from UniProt. Can you point to me which documentation is telling the opposite ? As far as I know, the documentation still hasn't been updated because we did not release this feature.
fcyu commentedon Nov 4, 2022
In the released 4.4.0 version, the following marked line is not accurate. Philosopher can not mark the contaminant sequences for any existing fasta files. It can only mark when it downloads the fasta file.
Target-Decoy database formatting
Usage:
philosopher database [flags]
Flags:
--add string add custom sequences (UniProt FASTA format only)
--annotate string process a ready-to-use database
--contam add common contaminants
--contamprefix mark the contaminant sequences with a prefix tag
--custom string use a pre-formatted custom database
--enzyme string enzyme for digestion (trypsin, lys_c, lys_n, glu_c, chymotrypsin) (default "trypsin")
-h, --help help for database
--id string UniProt proteome ID
--isoform add isoform sequences
--nodecoys don't add decoys to the database
--prefix string define a decoy prefix (default "rev_")
--reviewed use only reviwed sequences from Swiss-Prot
Best,
Fengchao
prvst commentedon Nov 4, 2022
Yes, only for downloaded sequences. I can add some more details to the description. Can you point me to the tutorial please?
fcyu commentedon Nov 4, 2022
The "tutorial" I mentioned is the wiki page here https://github.com/Nesvilab/philosopher/wiki/Database
Best,
Fengchao
prvst commentedon Nov 4, 2022
Thanks. As I mentioned, the flag and the dynamic tagging will be fully explained when we release the new version. I can add the prefix flag for now, but the rest will only come later.
fcyu commentedon Apr 1, 2025
The bug is still there: #528, #529, #516, #510 (comment), and #498
[-]Philosopher failed to mark contaminant human proteins with prefix `contam_`[/-][+]Adding the contam_ prefix doesn't work with an existing database. It only works when downloading the database using Philosopher[/+]