²é¿´: 2130  |  »Ø¸´: 11
µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû

xueshuhan

ľ³æ (ÕýʽдÊÖ)

[ÇóÖú] Perl ±à³Ì Çë´óÉñÃǰïæ£¡£¡£¡ÉúÎïÐÅÏ¢µÄÅ£ÈËÇë½ø

ÎÒÊÇѧÉúÎïµÄÑо¿Éú£¬ÎÒÃÇÒ»¸öÀÏʦ½²perl±à³Ì£¬²ÅѧÁË10¸öСʱ£¬±¾È˶Աà³ÌÒ»Çϲ»Í¨£¬Ï£ÍûºÃÐÄÈ˰ïæ½â´ð£¬Ð»Ð»ÁË£¡£¡£¡
ÏÂÃæÊÇÎҵıà³Ì£º
Develop a Perl program that receives as argument on the command linethe id of a nucleotide sequence (in the form db:id) and invokes the"sixpack" Web Service from EBI printing its result.
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

xueshuhan

ľ³æ (ÕýʽдÊÖ)

ǰһ°ëÕâÑùдÊÇ·ñÕýÈ·£º
#!/usr/bin/perl
use strict;
use warnings;
use SOAP::Lite;

if ( $#ARGV < 0 )
        {
                print "Usage: please input "; exit;
        }
# Get the first argumentmy
if ( $ARGV[0]<>1 )
        {
                print "There is an error there"; exit;
        }
$input=$ARGV[0];
unless ( $ input =~ m/:/ £©
        {
                die ( There is an error there.\n )
        }
3Â¥2012-01-31 02:03:29
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
²é¿´È«²¿ 12 ¸ö»Ø´ð

xueshuhan

ľ³æ (ÕýʽдÊÖ)

-It checks the number of arguments received on the command line and          if the number is not 1 it prints an error message and exits.
-It assigns the first argument to one variable.
-It checks with a pattern matching that the variable contains the
character ":". If not it prints an error message.
-It calls the "sixpack" Web Service as in the examples seen in class passing the received variable.
-It assigns to a variable the "outfile" returned by the service.
-It prints this variable.
2Â¥2012-01-30 22:31:01
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

zhusheng303

ľ³æ (СÓÐÃûÆø)

¡ï
ben_ladeng(½ð±Ò+1): »¶Ó­³£À´ 2012-01-31 13:58:28
xueshuhan: »ØÌûÖö¥ 2012-01-31 16:46:17
ÒýÓûØÌû:
3Â¥: Originally posted by xueshuhan at 2012-01-31 02:03:29:
ǰһ°ëÕâÑùдÊÇ·ñÕýÈ·£º
#!/usr/bin/perl
use strict;
use warnings;
use SOAP::Lite;

if ( $#ARGV < 0 )
        {
                print "Usage: please input "; exit;
        }
# Get the first argumentmy
...

¡¾1¡¿µ±ÄãʹÓá±use strict; use warnings ¡±, Óï¾ä"$input=$ARGV[0];"Ó¦¸Ãд³É¡°my $input=$ARGV[0]¡±£¬¡°my¡±¶¨Òå±äÁ¿µÄ×÷Óã¬ÏÞ¶¨±äÁ¿µÄ×÷ÓÃÓò¡£
¡¾2¡¿¡°die ( There is an error there.\n )¡±£¬×îºÃд³É¡°die £¨There is an error there.\n )£»¡±¡£
¡¾3¡¿¡°if ( $ARGV[0]<>1 ) ¡± Õâ¸öÓï¾ä£¬ÎÒûÓп´¶®¡£
»ý¼«Ãæ¶Ô
4Â¥2012-01-31 10:13:09
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

xueshuhan

ľ³æ (ÕýʽдÊÖ)

Õâ»ØÐ´ÊÇ·ñÕýÈ·£¬»¹ÓоÍÊÇÍøÂç·þÎñµ÷Óò¿·ÖÈçºÎ±àд£¿£¿£¿
#!/usr/bin/perl
use strict;
use warnings;
use SOAP::Lite;

if ( $#ARGV < 0 )
        {
                print "Usage: please input "; exit;
        }
# Get the first argumentmy
if ( $ARGV[0]!=1 )
        {
                print "There is an error there"; exit;
        }
my $input=$ARGV[0];
unless ( $ARGV[0]=~ m/:/ £©
        {
                die ( "There is an error there.\n" )
        }
5Â¥2012-01-31 16:42:45
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] Ò»Ö¾Ô¸985£¬±¾¿Æ211£¬0817»¯Ñ§¹¤³ÌÓë¼¼Êõ319Çóµ÷¼Á +10 Liwangman 2026-03-15 10/500 2026-03-19 10:25 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] Çó²ÄÁϵ÷¼Á +10 ¸ô±Ú³ÂÏÈÉú 2026-03-12 10/500 2026-03-19 09:15 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] 085410È˹¤ÖÇÄÜר˶317Çóµ÷¼Á£¨0854¶¼¿ÉÒÔ£© +3 xbxudjdn 2026-03-18 3/150 2026-03-18 22:14 by zhq0425
[¿¼ÑÐ] ²ÄÁÏרҵÇóµ÷¼Á +5 hanamiko 2026-03-18 5/250 2026-03-18 20:19 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] Ò»Ö¾Ô¸Ìì½ò´óѧ»¯Ñ§¹¤ÒÕרҵ£¨081702£©315·ÖÇóµ÷¼Á +10 yangfz 2026-03-17 10/500 2026-03-18 20:14 by walc
[¿¼ÑÐ] Ò»Ö¾Ô¸ÎäÀí²ÄÁÏ305·ÖÇóµ÷¼Á +5 ÏëÉϰ¶µÄÀðÓã 2026-03-18 6/300 2026-03-18 17:53 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] 311Çóµ÷¼Á +6 26ÑÐ0 2026-03-15 6/300 2026-03-18 14:43 by haxia
[¿¼ÑÐ] 298-Ò»Ö¾Ô¸Öйúũҵ´óѧ-Çóµ÷¼Á +7 ÊÖ»úÓû§ 2026-03-17 7/350 2026-03-18 14:34 by vgtyfty
[¿¼ÑÐ] 085601²ÄÁϹ¤³Ìר˶Çóµ÷¼Á +6 Ľº®mio 2026-03-16 6/300 2026-03-18 14:26 by 007_lilei
[¿¼ÑÐ] ÉúÎïѧ071000 329·ÖÇóµ÷¼Á +3 ÎÒ°®ÉúÎïÉúÎﰮΠ2026-03-17 3/150 2026-03-18 10:12 by macy2011
[¿¼ÑÐ] »·¾³¹¤³Ìµ÷¼Á +8 ´ó¿Édigkids 2026-03-16 8/400 2026-03-18 09:36 by zhukairuo
[¿¼ÑÐ] 296Çóµ÷¼Á +5 ´ó¿Ú³Ô·¹ ÉíÌ彡 2026-03-13 5/250 2026-03-17 21:05 by ²»»ó¿ÉÀÖ
[¿¼ÑÐ] 11408 Ò»Ö¾Ô¸Î÷µç£¬277·ÖÇóµ÷¼Á +3 zhouzhen654 2026-03-16 3/150 2026-03-17 07:03 by laoshidan
[¿¼ÑÐ] 0854¿ØÖƹ¤³Ì 359Çóµ÷¼Á ¿É¿çרҵ +3 626776879 2026-03-14 9/450 2026-03-16 17:42 by 626776879
[¿¼ÑÐ] 085600µ÷¼Á +5 ÑúÑú123sun 2026-03-12 6/300 2026-03-16 15:58 by ÑúÑú123sun
[¿¼ÑÐ] 288Çóµ÷¼Á +4 Ææµã0314 2026-03-14 4/200 2026-03-14 23:04 by JourneyLucky
[¿¼ÑÐ] Çó²ÄÁϵ÷¼Á 085600Ó¢Ò»Êý¶þ×Ü·Ö302 ǰÈý¿Æ235 ¾«Í¨»úÆ÷ѧϰ Ò»Ö¾Ô¸¹þ¹¤´ó +4 ÁÖyaxin 2026-03-12 4/200 2026-03-13 22:04 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] 281Çóµ÷¼Á +9 Koxui 2026-03-12 11/550 2026-03-13 20:50 by Koxui
[¿¼ÑÐ] Çóµ÷¼Á +5 Ò»¶¨ÓÐѧÉÏ- 2026-03-12 5/250 2026-03-13 18:31 by ms629
[¿¼ÑÐ] Çóµ÷¼Á +3 ³ÌÓ꺼 2026-03-12 3/150 2026-03-13 15:06 by JourneyLucky
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û