Can I input sequences without a file clustalw2
1
0
Entering edit mode
10.0 years ago
alex • 0

Hi all, I'm using clustalw2:

I know that clustal requires a file to read and it outputs to a file. Is there way I can just supply the sequences as a parameter, for example instead of

clustalw2 input.fasta -OUTPUT=PHYLIP -GAPOPEN=1 -GAPEXT=20

can I just somehow replace the file input.fast with just two sequences instead? And get it to output the resulting alignment without writing to a file. The reason why I would like to do this is because I want to call this program from PERL script and I thus I simply want to provide the input and capture the output.

thanks in advance!

Alex

clustal alignment dna-alignment • 2.1k views
ADD COMMENT
0
Entering edit mode
10.0 years ago
Joemar ▴ 10

The docs of clustalw2 explicitly say that it requires the input sequences to be in a file. I think there's no way to get around that unless you edit the clustalw2 source code. However, since you are scripting this with Perl, you can just write the input sequences first into a file and then feed it to clustalw2.

ADD COMMENT

Login before adding your answer.

Traffic: 1513 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