Entering edit mode
6.8 years ago
Janey
▴
30
Hi
In the first phase, I ran this command for Coding Potential Calculator (CPC):
formatdb -i X.fasta -p T -n prot_db
Then, I got 3 files " prot_db.psq, prot_db.pin, prot_db.phr". I put these 3 files and X.fasta in data/ sub-directory.
In the second phase, when I run bellow command in bin/ sub-directory:
run_predict.sh Query.fasta
I get this error:
Permission denied
Help me please
Maybe try first
chmod 777 run_predict.sh
(this opens all read/write permissions), and then run the script like./run_predict.sh Query.fasta result_in_table outpur_dir result_evidence
Hi grant
After using
chmod 777 run_predict.sh
and then running this command:I get this error:
Might sound silly, but 1. Do you run all commands in the same directory? Try to do so 2. Try to replace outpur_dir by . (Current directory)
I did all the work you said but still got the same error
It is about time you try CPC2, then. According to its authors, it
runs ∼1000 times faster than CPC1 and exhibits superior accuracy compared with CPC1
. Also, CPC1 depends on legacy-blast, which has been abandoned by NCBI for years, in favour of blast+.Seems strange. You have blast+, right?
I think CPC uses legacy-blast, not blast+.
I personally run it with blast+ installed.
yes, I have blast+ (ncbi-blast-2.7.1+). What do you think of using Blast directly instead of CPC?
Here is a chunk from manual: c. Format BLAST database, named it as "prot_db", and put under the cpc/data/.
tom@linux$ cd $CPC_HOME/data tom@linux$ formatdb -i (your_fasta_file) -p T -n prot_db
4) Run the predict
tom@linux$ cd $CPC_HOME tom@linux$ bin/run_predict.sh (input_seq) (result_in_table) (working_dir) (result_evidence)
So basically try to do
formatdb
incpc/data directory
, butrun_predict.sh
incpc
directory. Regarding your question about using only blast, so you will need to calculate coding potential from blast hits, which I think is complicated and basically is inventing the wheel:) Hope this helpsYou know
formatdb
is a command from legacy-blast, right? Also,run_predict.sh
has the following line:This is the legacy-blast executable, and there is no alternative command to use blast+ inside the script.
I got a similar error again.
Hi grant
Finally my problem was solved when made outpur_dir directory in cpc-0.9-r2/bin directory. I got 3 file result_in_table, result_evidence.orf and result_evidence.homo.
thank you
I'm glad to hear that.
Dear Janey
I have similar error like you but I couldn't solve this problem. I would appreciate to help me for solving it
best regards
Maybe you should consider using CPC2.
CPC2 release temporary package that, in my opinion, is not reliable.