ZINC scripts: Difference between revisions

From DISI
Jump to navigation Jump to search
mNo edit summary
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
ZINC scripts.  
ZINC scripts.  


= download a list of molecules in mol2 format by zincid =  
== download a list of molecules in mol2 format by zincid ==


#!/usr/bin/perl -w
#!/usr/bin/perl -w
# jji. July 2012 -  read list of ZINC ids from stdin, output mol2 files, reference pH, as mol2
# jji. July 2012 -  read list of ZINC ids from stdin, output mol2 files, reference pH, as mol2
#
#
while (<STDIN>) {  
while (<STDIN>) {  
my $a = $_; chop $a;
    my $a = $_; chop $a;
print `wget -q -O - "http://zinc.docking.org/substance/reps/ref/$a.mol2"`;
    print `wget -q -O - "http://zinc.docking.org/substance/reps/ref/$a.mol2"`;
}
}
= script 2: to be written =




[[Category:ZINC]]
[[Category:ZINC]]
[[Category:API]]

Latest revision as of 13:38, 1 May 2014

ZINC scripts.

download a list of molecules in mol2 format by zincid

#!/usr/bin/perl -w
# jji. July 2012 -  read list of ZINC ids from stdin, output mol2 files, reference pH, as mol2
#
while (<STDIN>) { 
    my $a = $_; chop $a;
    print `wget -q -O - "http://zinc.docking.org/substance/reps/ref/$a.mol2"`;
}