±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 2155  |  »Ø¸´: 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;
        }
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µÄ»ØÌû
²é¿´È«²¿ 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µÄ»ØÌû

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µÄ»ØÌû

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µÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 370Çóµ÷¼Á +3 080700µ÷¼Á 2026-03-30 3/150 2026-03-31 01:09 by A_Zhe
[¿¼ÑÐ] Ò»Ö¾Ô¸´óÁ¬Àí¹¤´óѧ²ÄÁÏÇóµ÷¼Á +4 Gymno 2026-03-30 4/200 2026-03-30 23:07 by ms629
[¿¼ÑÐ] Ò»Ö¾Ô¸£ºÎ÷±±´óѧ£¬Ó¢Ò»ÊýÒ»408-284·ÖÇóµ÷¼Á +5 12.27 2026-03-27 5/250 2026-03-30 19:31 by Ô´_2020
[¿¼ÑÐ] 295²ÄÁϹ¤³Ìר˶Çóµ÷¼Á +10 1428151015 2026-03-27 10/500 2026-03-30 19:00 by Ô´_2020
[¿¼ÑÐ] Çóµ÷¼Á +10 ¼Ò¼Ñ¼Ñ¼Ñ¼Ñ¼Ñ 2026-03-29 10/500 2026-03-30 18:34 by 544594351
[¿¼ÑÐ] 070300»¯Ñ§354Çóµ÷¼Á +7 101´ÎÏ£Íû 2026-03-28 7/350 2026-03-30 13:22 by Iveryant
[¿¼ÑÐ] Çó»¯Ñ§µ÷¼Á +11 wulanna 2026-03-28 11/550 2026-03-30 10:59 by ̽123
[¿¼ÑÐ] Ò»Ö¾Ô¸211£¬335·Ö£¬0856£¬Çóµ÷¼ÁԺУºÍµ¼Ê¦ +7 Çã____Ïô 2026-03-27 8/400 2026-03-30 09:37 by longlotian
[¿¼ÑÐ] 085600£¬²ÄÁÏÓ뻯¹¤321·ÖÇóµ÷¼Á +10 ´ó²öС×Ó 2026-03-28 10/500 2026-03-29 23:35 by ·ÉÐÐÈÕ¼ÇÎ÷
[¿¼ÑÐ] 294·Ö080500²ÄÁÏ¿ÆÑ§Ó빤³ÌÇóµ÷¼Á +8 ÁøÏª±ß 2026-03-26 8/400 2026-03-29 20:42 by ÌÆãå¶ù
[¿¼ÑÐ] Ò»Ö¾Ô¸±±¾©Àí¹¤´óѧ±¾¿Æ211²ÄÁϹ¤³Ì294Çóµ÷¼Á +8 mikasaµÄΧ½í 2026-03-28 8/400 2026-03-29 12:48 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] 081200-11408-276ѧ˶Çóµ÷¼Á +6 ´Þwj 2026-03-26 6/300 2026-03-29 01:11 by hanserlol
[¿¼ÑÐ] Çóµ÷¼Á +4 Áã°Ë# 2026-03-27 4/200 2026-03-27 18:07 by yu221
[¿¼ÑÐ] 085601 ²ÄÁϹ¤³Ì 313·Ö Çóµ÷¼Á +5 Ong3 2026-03-27 5/250 2026-03-27 12:24 by goldfish51
[¿¼ÑÐ] 292Çóµ÷¼Á +4 ÇóÇóÁËÊÕÏÂÎÒ°É£ 2026-03-26 4/200 2026-03-27 10:37 by zhshch
[¿¼ÑÐ] Ò»Ö¾Ô¸Ìì½ò´óѧ339²ÄÁÏÓ뻯¹¤Çóµ÷¼Á +3 ½­ÍùÂôÓã 2026-03-26 3/150 2026-03-26 09:42 by ÍõСǷi
[¿¼ÑÐ] 303Çóµ÷¼Á +6 À¶É½Ô 2026-03-25 6/300 2026-03-25 22:47 by 418490947
[¿¼ÑÐ] ¡¾2026¿¼Ñе÷¼Á¡¿ÖÆÒ©¹¤³Ì 284·Ö ÇóÏà¹Ø×¨Òµµ÷¼ÁÃû¶î +4 Ô¬Û¼Û¼ 2026-03-25 8/400 2026-03-25 14:32 by lbsjt
[¿¼ÑÐ] Ò»Ö¾Ô¸¼ªÁÖ´óѧ²ÄÁÏÓ뻯¹¤303·ÖÇóµ÷¼Á +4 Ϊѧ666 2026-03-24 4/200 2026-03-25 11:27 by BruceLiu320
[¿¼ÑÐ] 340Çóµ÷¼Á +5 »°Ã·ÌÇ111 2026-03-24 5/250 2026-03-25 06:53 by ilovexiaobin
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û