I understand I need further steps. You means I have to use "get_species_taxids.sh", and get taxID map, aren't you?
Finally can I get description if I finish this steps?
Hi, all.
I'm trying to get a description to the gene list using BLAST. I created the original database with the following command and did BLAST, but my output shows a lot of N/A.
$ makeblastdb \
-in caenorhabditis_elegans.PRJNA13758.WBPS16.protein.fa \
-out elegansdb \
-dbtype prot \
-parse_seqids
$ blastx \
-query genes.fasta \
-db /home/nkarim/blast/db/elegansdb \
-outfmt "6 qseqid salltitles sseqid sscinames scomnames staxid pident length mismatch gapopen qstart qend sstart send ppos evalue bitscore" \
-evalue 1e-3 \
-out results
I have tried all the commonly suggested solutions.
1) Download taxdb.tar.gz in the same directory as the database, and unzip it.
$ update_blastdb.pl taxdb
$ tar -xvf taxdb.tar.gz
2) Add export BLASTDB=$BLASTDB:/home/nkarim/blast/db to ~/.bashrc and reload.
Are there any other problems for me? I'm facing this problem for few days but can't solve it.
I really appreciate for your help in advance!
You don't have scientific names of the organism in these headers so you are getting N/A in that location. Since you are using a custom database you will also need to provide a taxID map to get staxid's.
I understand I need further steps. You means I have to use "get_species_taxids.sh", and get taxID map, aren't you?
Finally can I get description if I finish this steps?
Thank you for your advice.
Yes, I got it, Do I have to use "get_species_taxids.sh" to get tax ID map? Sorry for I'm beginner, so I don't know how to make tax ID map.
Then I created a DB for C. elegans (tacID:6239). In this case, I think all taxIDs become 6239.
By the way, I'm sorry for late reply. Thank you.
If you only have C. elegans proteins in your database why do you need a taxID column in your blast results? taxID would be the same for each hit.
I wolud like to get description. I mean description is protein's name; for example, Nuclear Pore complex Protein [Caenorhabditis elegans] as following.
We would like to run it in a terminal because it takes a long time in a browser when there are many genes. Do you mean that taxID is not what I need?
If you need description of the "hit" then you do not need taxID's. It is the reason I asked you to show the fasta headers for your input file. I don't know where you got that file from but it does not have the descriptions you need.
If you are simply looking for C. elegans proteins then you can download the protein sequence file for C. elegans from NCBI here. In this file you will find description names for the proteins. That will allow you to get the descriptions like example you show above. You will need to re-index and re-do the blast search though.
Example headers from protein file below.
>NP_507836.1 C-type lectin domain-containing protein [Caenorhabditis elegans]
>NP_507838.3 WSN domain-containing protein [Caenorhabditis elegans]
>NP_507839.3 Uncharacterized protein CELE_Y116F11B.2 [Caenorhabditis elegans]
>NP_507840.1 Uncharacterized protein CELE_Y116F11B.1 [Caenorhabditis elegans]
>NP_507841.1 Prolyl Carboxy Peptidase like [Caenorhabditis elegans]
>NP_507842.1 G_PROTEIN_RECEP_F1_2 domain-containing protein [Caenorhabditis elegans]
I see!
I have downloaded C. elegans database from the wrong. I didn't know some information were needed in the database for BLAST.
For future reference, could you please tell me how you find the place if you would like?
You don't need the descriptions for blast per se but clearly that is information you want since you don't want to have to look up what gene=WBGene00000002 is.
Most common model organism genomes can be found at NCBI's genomes section. This is the page for C. elegans where I got the above file from.
Thank you for all the detailed explanation! I have learned a lot from you. I was able to add a description to my results with your help.
I really appreciated your kind help!
that is not the taxid but the subject title, which you seem to already be producing with salltitles
basically that is where
transcript=F27C8.1.1 gene=WBGene00000002
comes from. Your input sequences to the BLAST database need to contain proper subject titles.
Yes. It seemed that I have downloaded datamase from the wrong. For that reason, I didn't get description.
I apologize for the confusion. Thank you for your kindness!
Log in to answer this question.
with exactly do you mean with " shows a lot of N/A " ? That you don't get any hit or that there is no usable functional description for the hits reported?
I share some of results. It means partial N/A is displayed.
Can you show us what the fasta headers of the input database fasta looked like?
Sure.