how can I run ClustalW2 without a input FASTA file?
Can I add a pipe to the command? I am currently following section 6.2.1 in the Biopython Tutorial and Cookbook.
how can I run ClustalW2 without a input FASTA file?
Can I add a pipe to the command? I am currently following section 6.2.1 in the Biopython Tutorial and Cookbook.
Copyright © 2021 Jogjafile Inc.
On using Biopython
I'm assuming you wish to use the
clustalwrapper,ClustalwCommandLine. As a wrapper, its function is to create the appropriate command line call from an instance.I think it's often easier to just work with the command line tool directly, using
subprocess(and thus skipping Biopython entirely).stdin in clustalw2Consulting the
clustalw2documentation, I see no way to pass data fromstdin:stdin in clustaloHowever, if upgrading to Clustal Omega is an option, you can see in the
Clustal Omega documentationthat one can pass-to indicate taking input fromstdin:See how do I pass a string in
subprocess.Popenfor reference, but in short: