473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Anybody know about bioperl?

is there anyone who can teach me how to translate perl script? it is on how to call data from wordpad and import it to perl script?


Use file called swissprot.txt. Write a Perl program ( sp.pl) that extracts the following information from each entry:
• idenfication line (starts with ``ID'')
• sequence definition line (starts with ``SQ'')
• protein sequence (lines between ``SQ'' and ``//'')


How can i extract data from notepad to perl script.

for example:
ID 3BHS_BOVIN STANDARD; PRT; 372 AA.
AC P14893;
DT 01-APR-1990 (Rel. 14, Created)
DT 01-APR-1990 (Rel. 14, Last sequence update)
DT 15-JUL-1999 (Rel. 38, Last annotation update)
DE 3 BETA-HYDROXYSTEROID DEHYDROGENASE/DELTA 5-->4-ISOMERASE (3BETA-HSD)
DE [INCLUDES: 3-BETA-HYDROXY-DELTA(5)-STEROID DEHYDROGENASE
DE (EC 1.1.1.145) (3-BETA-HYDROXY-5-ENE STEROID DEHYDROGENASE)
DE (PROGESTERONE REDUCTASE); STEROID DELTA-ISOMERASE (EC 5.3.3.1) (DELTA-
DE 5-3-KETOSTEROID ISOMERASE)].
GN HSD3B.
OS Bos taurus (Bovine).
OC Eukaryota; Metazoa; Chordata; Craniata; Vertebrata; Euteleostomi;
OC Mammalia; Eutheria; Cetartiodactyla; Ruminantia; Pecora; Bovoidea;
OC Bovidae; Bovinae; Bos.
OX NCBI_TaxID=9913;
RN [1]
RP SEQUENCE FROM N.A.
RC TISSUE=OVARY;
RX MEDLINE=90092517; PubMed=2599102;
RA Zhao H.-F., Simard J., Labrie C., Breton N., Rheaume E., Luu-The V.,
RA Labrie F.;
RT "Molecular cloning, cDNA structure and ...

how can i use this as my data. and get output from perl just give the output of ID, SEQ,

Can anybody help or just give some link to refer this problem.?

Tq..
Mar 12 '07 #1
4 1226
KevinADC
4,059 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1. open(FILE, 'swissprot.txt') or die "$!";
  2. while(<FILE>){
  3.    do something with each line of the file
  4. }
  5. close(FILE);
  6.  
Mar 12 '07 #2
Expand|Select|Wrap|Line Numbers
  1. open(FILE, 'swissprot.txt') or die "$!";
  2. while(<FILE>){
  3.    do something with each line of the file
  4. }
  5. close(FILE);
  6.  


thanks for ur code but im not sure what doyou mean by {do something with each line to the file}


please explain to me, i really dont know....i'm still in learning stage?
Mar 12 '07 #3
KevinADC
4,059 Expert 2GB
maybe you should start at the beginning:

http://www.perl.org/books/beginning-perl/
Mar 12 '07 #4
maybe you should start at the beginning:

http://www.perl.org/books/beginning-perl/
Certainly. And go through the bioperl tutorial at http://www.bioperl.org/wiki/Bptutorial.pl
Apr 4 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Conner | last post by:
Hi All, Just wondering if anybody has any remarks on the query tool from Unity Solutions? I've been testing with it for a while and it seems really sweet. But Id like to know if anybody has had...
0
by: Conner | last post by:
Hi All, Just wondering if anybody has any remarks on the query tool from Unity Solutions? I've been testing with it for a while and it seems really sweet. But Id like to know if anybody has had...
10
by: jeff regoord | last post by:
A user inputs a float value. The scanf() function gets the value. However, I need to create an error handler with an if else statement saying invalid input if the input is not a number. Does...
12
by: Ashu | last post by:
can anybody tell me the reason why following code is not working? int *funct() { int p=10; return &p; }
2
by: Bohr | last post by:
Hi, I installed Bioperl on OSX(Tiger) via Fink and ran into a problem when running the test tutorial: perl -w bptutorial.pl 5 The message that I get is that the acc (...) does not exist. When...
1
by: JSievers | last post by:
Hallo. A good friend of me develops web suites, for example his own at: www.augenpunkte.de. As you can see there my friend is blind and also he uses a Braille-line to develop these projects. For...
5
by: Nathan Sokalski | last post by:
I am looking for a reference that lists the equivelant JavaScript/JScript properties (for example, it took me a while to find that event.x/event.y were the IE equivelant of...
2
by: jermichael_duff | last post by:
Does anybody know how to develop a queue class based on circular chasing pointers with an integer dynamic array and develop a queue class based on an integer linked list. Compare the performance...
3
by: freshpetals | last post by:
Is there any way to download Modules of Bioperl ?? If yes how could I download Bio::Structure::IO::pdb module??
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.