| ²é¿´: 2121 | »Ø¸´: 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. |
» ²ÂÄãϲ»¶
²ÄÁÏÓ뻯¹¤Ò»Ö¾Ô¸Äϲý´óѧ327Çóµ÷¼ÁÍÆ¼ö
ÒѾÓÐ8È˻ظ´
0703 ÎïÀí»¯Ñ§µ÷¼Á
ÒѾÓÐ5È˻ظ´
»¯Ñ§¹¤³Ì321·ÖÇóµ÷¼Á
ÒѾÓÐ7È˻ظ´
0703»¯Ñ§µ÷¼Á 290·ÖÓпÆÑоÀú£¬ÂÛÎÄÔÚͶ
ÒѾÓÐ7È˻ظ´
308Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
±¾ÈË¿¼085602 »¯Ñ§¹¤³Ì ר˶
ÒѾÓÐ10È˻ظ´
½¹ÂÇ
ÒѾÓÐ9È˻ظ´
0856Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
283Çóµ÷¼Á
ÒѾÓÐ11È˻ظ´
ÉîÛÚ´óѧ˶ʿÕÐÉú£¨2026Ç´«¸ÐÆ÷·½Ïò£¬½ö¼ȡµÚÒ»Ö¾Ô¸£©
ÒѾÓÐ8È˻ظ´
» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:
´óÉñÃÇ£¬°ïæÈÏÒ»ÏÂÕâЩֲÎллÏÈ£¡
ÒѾÓÐ14È˻ظ´
¶®Í¼Î»¿Ë¡µÄÇë½ø
ÒѾÓÐ3È˻ظ´
ÓùýÑÇÁ×ËáÈýÒÒõ¥µÄÅ£ÈËÇë½ø
ÒѾÓÐ6È˻ظ´
ANSYS14.0µÄ´óÉñÃǽø¡«¡«
ÒѾÓÐ20È˻ظ´
perl³ÌÐòÇóÖú£¬Çë´óÉñÃǴͽÌ~~~
ÒѾÓÐ9È˻ظ´
perl³ÌÐòÇó´óÉñ¼ÓÒÔÐÞ¸Ä~~
ÒѾÓÐ8È˻ظ´
Çë°ïæ±àдһ¸öperl³ÌÐò´¦ÀíÎı¾
ÒѾÓÐ26È˻ظ´
Çë¸÷λ´óÉñ¹ýÀ´....°ï°ïСµÜ£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡
ÒѾÓÐ5È˻ظ´
¼ÆËã»úͼÐÎѧÖÐÓÃVC++6.0±à³ÌʵÏÖAUTOCADÖÐERASEÃüÁî
ÒѾÓÐ3È˻ظ´
¡¾ÇóÖú¡¿Çë½ÌÒ»¸öPerlÓïÑԵıà³Ì£¬Ð»Ð»£¡
ÒѾÓÐ3È˻ظ´
¡¾ÇóÖú¡¿(¡Ño¡Ñ)¡´óÉñÃÇ£¬°ïÎÒ¿´¿´ºÃ²»£¬°ÝÍÐÀ²
ÒѾÓÐ3È˻ظ´
±à¼Òâ¼û£¬Çë´óÏÀ°ïæ
ÒѾÓÐ15È˻ظ´
zhusheng303
ľ³æ (СÓÐÃûÆø)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 3137.3
- Ìû×Ó: 68
- ÔÚÏß: 45.6Сʱ
- ³æºÅ: 880479
- ×¢²á: 2009-10-22
- ÐÔ±ð: GG
- רҵ: ÉúÎïÐÅϢѧ
¡ï
ben_ladeng(½ð±Ò+1): »¶Ó³£À´ 2012-01-31 13:58:28
xueshuhan: »ØÌûÖö¥ 2012-01-31 16:46:17
ben_ladeng(½ð±Ò+1): »¶Ó³£À´ 2012-01-31 13:58:28
xueshuhan: »ØÌûÖö¥ 2012-01-31 16:46:17
|
¡¾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
xueshuhan
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 8 (Ó×¶ùÔ°)
- ½ð±Ò: 2979.7
- ºì»¨: 2
- Ìû×Ó: 613
- ÔÚÏß: 142.3Сʱ
- ³æºÅ: 1538750
- ×¢²á: 2011-12-15
- ÐÔ±ð: GG
- רҵ: ÉúÎï¼¼ÊõÒ©Îï
xueshuhan: »ØÌûÖö¥ 2012-02-02 09:18:42
|
ÔÚ¶àλÅóÓѰïÖúÏÂÖÕÓÚдºÃÁË£¬ÏÂÃæÊÇperl £º #!/usr/bin/perl -w use strict; use SOAP::Lite; my($USAGE) = "$0 PROTEIN\n\n"; unless (@ARGV) { print $USAGE; exit; } unless (@ARGV==1) { print "There is an error.\n"; exit; } my($sequence) = $ARGV[0]; unless ($sequence =~ /[:]/g) { print "There is another error\n"; } my($service) = SOAP::Lite->proxy( 'http://www.ebi.ac.uk/soaplab/services/nucleic_gene_finding.sixpack' ); my($soap_response) = $service->runAndWaitFor( SOAP: ata->type( map => { sequence_usa =>$sequence} ) ); my(@res) = $soap_response->paramsout; my($res) = $soap_response->result; my($outfile) = %$res->{'outfile'}; print "$outfile\n"; exit; |
10Â¥2012-02-02 09:18:06
xueshuhan
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 8 (Ó×¶ùÔ°)
- ½ð±Ò: 2979.7
- ºì»¨: 2
- Ìû×Ó: 613
- ÔÚÏß: 142.3Сʱ
- ³æºÅ: 1538750
- ×¢²á: 2011-12-15
- ÐÔ±ð: GG
- רҵ: ÉúÎï¼¼ÊõÒ©Îï
|
-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
xueshuhan
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 8 (Ó×¶ùÔ°)
- ½ð±Ò: 2979.7
- ºì»¨: 2
- Ìû×Ó: 613
- ÔÚÏß: 142.3Сʱ
- ³æºÅ: 1538750
- ×¢²á: 2011-12-15
- ÐÔ±ð: GG
- רҵ: ÉúÎï¼¼ÊõÒ©Îï
|
ǰһ°ëÕâÑùдÊÇ·ñÕýÈ·£º #!/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
xueshuhan
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 8 (Ó×¶ùÔ°)
- ½ð±Ò: 2979.7
- ºì»¨: 2
- Ìû×Ó: 613
- ÔÚÏß: 142.3Сʱ
- ³æºÅ: 1538750
- ×¢²á: 2011-12-15
- ÐÔ±ð: GG
- רҵ: ÉúÎï¼¼ÊõÒ©Îï
|
Õâ»ØÐ´ÊÇ·ñÕýÈ·£¬»¹ÓоÍÊÇÍøÂç·þÎñµ÷Óò¿·ÖÈçºÎ±àд£¿£¿£¿ #!/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
xueshuhan
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 8 (Ó×¶ùÔ°)
- ½ð±Ò: 2979.7
- ºì»¨: 2
- Ìû×Ó: 613
- ÔÚÏß: 142.3Сʱ
- ³æºÅ: 1538750
- ×¢²á: 2011-12-15
- ÐÔ±ð: GG
- רҵ: ÉúÎï¼¼ÊõÒ©Îï
6Â¥2012-01-31 18:49:35
xueshuhan
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 8 (Ó×¶ùÔ°)
- ½ð±Ò: 2979.7
- ºì»¨: 2
- Ìû×Ó: 613
- ÔÚÏß: 142.3Сʱ
- ³æºÅ: 1538750
- ×¢²á: 2011-12-15
- ÐÔ±ð: GG
- רҵ: ÉúÎï¼¼ÊõÒ©Îï
7Â¥2012-01-31 18:50:50
zhusheng303
ľ³æ (СÓÐÃûÆø)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 3137.3
- Ìû×Ó: 68
- ÔÚÏß: 45.6Сʱ
- ³æºÅ: 880479
- ×¢²á: 2009-10-22
- ÐÔ±ð: GG
- רҵ: ÉúÎïÐÅϢѧ
|
ÕâÀﻹÓÐÒ»¸öµØ·½²»¶Ô£¬ ####### unless ( $ARGV[0]=~ m/:/ £© { die ( "There is an error there.\n" ) } ############ Õâ¸öÓï¾ä¡°die ( "There is an error there.\n" )¡±£¬Äã×îºÃд³É die "There is an error there.\n" £»ÁíÍâÒ»¸ö×îÖØÒªµÄÎÊÌâÊÇ£ºperlµÄÿ¸öÓï¾ä±ØÐëÒÔ¡±£»£¨·ÖºÅ£©¡°½áÊø¡£Ò²¾Í˵£ºÓ¦¸Ãд³ÉÕâÑù ¡°die "There is an error there.\n" £»¡±²ÅÊǶԵġ£ |

8Â¥2012-02-01 10:37:12
zhusheng303
ľ³æ (СÓÐÃûÆø)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 3137.3
- Ìû×Ó: 68
- ÔÚÏß: 45.6Сʱ
- ³æºÅ: 880479
- ×¢²á: 2009-10-22
- ÐÔ±ð: GG
- רҵ: ÉúÎïÐÅϢѧ
|
¡¾1¡¿ÎÊÌâÒ»£ºÈçºÎÈõÚÒ»¸öargumentÐèҪΪ±äÁ¿ Use $ARGV[n] to display argument. Use $#ARGV to get total number of passed argument to a perl script. ÀýÈ磺./foo.pl one two three $ARGV[0]£ºone $ARGV[1]: two $ARGV[2]: three ¡¾2¡¿ÎÊÌâ¶þ£ºÎªÊ²Ã´ÎÒÔÚÃüÁîÀ¸ÀïÊäÈëºËÜÕËáµÄIDÈ´ÌáʾÃüÁîûÓÐÕÒµ½ ²»ºÃÒâ˼£¬Õâ¸öÎÒҲûÓÐÓùý¡£Õâ¸öÍøÒ³Äã¿ÉÒÔ¿´¿´http://www.ebi.ac.uk/Tools/webse ... perl/soap/soap-lite£¬Ï£Íû¶ÔÄãÓаïÖú |

9Â¥2012-02-01 11:01:49













»Ø¸´´ËÂ¥
ata->type( map => { sequence_usa =>$sequence