[Bioperl-l] Looking good - SYNOPSIS code
lp1@sanger.ac.uk
lp1@sanger.ac.uk
Wed, 09 Jan 2002 21:46:38 +0000 (GMT)
This message is in MIME format.
---MOQ10106127986fb3d8315416e074b0f764306029fbe7
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Hi,
> (2) Documentation on modules: We want every synopsis to be
> cut-and-paste-able as much as possible. Does anyone want to try that
> out?
> Volunteers? (go on...)
Here is a script in attachment to test SYNOPSIS code. I don't have a proper
bioperl + dependencies installation on my Linux box and since I just have 56k
dialup for the moment...
Running it should be very simple:
1) get the Pdoc lib
cvs -d:pserver:anonymous@cvs.pdoc.sourceforge.net:/cvsroot/pdoc login
<enter> as psswd
cvs -z3 -d:pserver:anonymous@cvs.pdoc.sourceforge.net:/cvsroot/pdoc co pdoc-live
and install it.
2) testSyn.pl -source <path to bioperl-live> -target <target dir>
In <target dir>, the same bioperl dir tree will be generated except that
all .pm files will be .pl containing the SYNOPSIS code. Each of them will be
executed.
In <target dir>, a file named allSynopsis.out will contain all the SYNOPSIS
content and a file named execSynopsis.out will contain execution outputs,
except STDERR.
STDERR redirect (>&) is not possible for the moment since the module
Bio::Tools::BPlite opens STDIN => when reaching that module, you need to Ctrl-D.
Modify runSynopsis() at will to get the info you want.
Hope it'll help.
Cheers,
Raphael
---MOQ10106127986fb3d8315416e074b0f764306029fbe7
Content-Type: application/octet-stream; name="testSyn.pl"; name="testSyn.pl"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="testSyn.pl"
IyEvdXNyL2xvY2FsL2Jpbi9wZXJsCgojIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCiMgdGVzdFN5bi5wbCAtIGV4
dHJhY3RzIGNvZGUgZXhhbXBsZXMgZnJvbSBTWVNOT1BTSVMgYW5kIGV4ZXV0ZXMgaXQuCiMgCiMg
VXNlIC1oIGZvciBoZW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WUKIyAgICBteSAkbGV2ZWwgPSAkdHJlZS0+
cm9vdF9uYW1lOwogICAgbXkgJGxldmVsOwogICAgaWYgKCRuYW1lID1+IC86Oi8pIHsKCSRuYW1l
ID1+IC9eKC4qKTo6KC4rKSQvOwoJJGxldmVsID0gJDEgaWYgKCQxIG5lICIiKTsKCSRuYW1lID0g
JDI7CiAgICB9CiAgICAKICAgICRsZXZlbCA9ICR0cmVlLT5yb290X25hbWUoKSBpZiAoJGxldmVs
IGVxICIiKTsKICAgIAogICAgIyBHZXQgc3lub3BzaXMKICAgIG15ICRzeW4gPSAkZG9jdW1lbnQt
PmZldGNoKCdQb2RIZWFkJywgJ1NZTk9QU0lTJyk7CiAgICB1bmxlc3MgKCRzeW4pIHsKICAgIAlw
cmludCAkcnVuTG9ncyAiRXJyb3I6IG5vdCBhYmxlIHRvIGdldCBTWU5PUFNJUyBmcm9tIHBhY2th
Z2UuXG4iOwoJcmV0dXJuIDA7CiAgICB9CiAgICAKICAgIGlmICghICRzeW4tPmNvbnRlbnQoKSB8
fCAkc3luLT5jb250ZW50KCkgZXEgJycpIHsKICAgIAlwcmludCAkcnVuTG9ncyAiRXJyb3I6IGZv
dW5kIGVtcHR5IFNZTk9QU0lTXG4iOwoJcmV0dXJuIDA7CiAgICB9CiAgICAKICAgICMgU3RvcmUg
c3lub3BzaXMKICAgIHByaW50ICRhbGxTeW4gIj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09XG4iOwogICAgcHJpbnQgJGFsbFN5biAiU3lub3BzaXMg
Zm9yICIsICRkb2N1bWVudC0+bmFtZSgpLCAiXG4iOwogICAgcHJpbnQgJGFsbFN5biAiPT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbiI7CiAgICBw
cmludCAkYWxsU3luICRzeW4tPmNvbnRlbnQoKSwgIlxuIjsKICAgIAogICAgIyBQaWNrIGNvZGUg
ZnJvbSBzeW5vcH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