If you really want to use pymol, this works 

#!/bin/bash
#myscript.bash
for i in `cat $1` ; do pymol -d "fetch $i" -c ; done


Then on the command line 
>chmod +x myscript.bash; ./myscript.bash mylist.txt


> On Apr 27, 2016, at 2:55 AM, Jordan Willis <jwillis0...@gmail.com> wrote:
> 
> Must you use pymol?
> 
> 
> Try directly from the PDB
> 
> #!/bin/bash
> #myscript.bash
> 
> for i in `cat $1` ; do wget http://www.rcsb.org/pdb/files/${i}.pdb 
> <http://www.rcsb.org/pdb/files/${i}.pdb> ; done
> 
> 
> 
> 
> Then on the command line 
> >chmod +x myscript.bash; ./myscript.bash mylist.txt
> 
> 
> J
> 
>> On Apr 27, 2016, at 2:41 AM, James Starlight <jmsstarli...@gmail.com 
>> <mailto:jmsstarli...@gmail.com>> wrote:
>> 
>> Dear Pymol users!
>> 
>> I need to add a few strings to my simple bash script which will creat
>> a list of pdb files and than will call pymol without GUI from the
>> terminal to fetch all the pdbs and save it to the desired location.
>> For one pdb it should be smth like
>> 
>> pdbs="1f88"
>> 
>> pymol -c -q -d "fetch ${pdbs}; save $template/pymol/*.pdb " >
>> ${tmp}/pymol_${pdbs}.log
>> 
>> will be thankful for the correction of this string as well as example
>> how it can be adapted for a list of pdbs in bash.
>> 
>> Thanks!
>> 
>> J
>> 
>> ------------------------------------------------------------------------------
>> Find and fix application performance issues faster with Applications Manager
>> Applications Manager provides deep performance insights into multiple tiers 
>> of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z 
>> <https://ad.doubleclick.net/ddm/clk/302982198;130105516;z>
>> _______________________________________________
>> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
>> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
>> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
> 

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to