Can I query a BLASTN in Shell using a given input sequence and not a FASTA file?
1
0
Entering edit mode
9.3 years ago
Pratham • 0

Hello,

I want to pass an input sequence to BLASTN command and not a FASTA file. I am not able to execute a shell command in this manner - 

blastn -outfmt 5 -query '>Name\nATGGCAGCAGTGGGTGCACCTCGCGAAGTAGCTGGAAACGAGAACAGCCTCGAGATCGATAGTCTTGCTC\nGCTTTGCTGTTGATGAACACAACAAGAAACAGGTTTCTTTCTCTCTCTTGCGAAGATCGCTTTCGCTTTG' -db C:/Users/ptarkar/Desktop/blast_test/targets
The system cannot find the path specified.

Is there a way wherein I can call a BLASTN command with just an input sequence and without a FASTA file?

Thanks,

Pratham

BLAST • 2.8k views
ADD COMMENT
3
Entering edit mode
9.3 years ago

Using bash:

blastn -outfmt 5 -query <(echo -e '>Name\nATGGCAGCAGTGGGTGCACCTCGCG') -db C:/Users/ptarkar/Desktop/blast_test/targets

or

echo -e '>Name\nATGGCAGCAGTGGGTGCACCTCGCG' | blastn -outfmt 5 -db C:/Users/ptarkar/Desktop/blast_test/targets
ADD COMMENT
1
Entering edit mode

It needs bash in Windows

ADD REPLY

Login before adding your answer.

Traffic: 2789 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6