Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
more useful options
 
PerlMonks  

Re: file header change

by newbie1991 (Acolyte)
on Feb 05, 2013 at 10:23 UTC ( #1017109=note: print w/ replies, xml ) Need Help??


in reply to file header change

This might not be the most efficient way but it is easy to understand : I am assuming you are working with several pep files, so you read the input into an array. You can split this array at the '>' with the split function, this way each of the proteins gets their own element. To manipulate this further you can split each element into multiple lines by splitting at the \n. Now, your protein info will be in the [0]th element of the array, and you can manipulate it however you want. The 1, 2, 3 will be an incrementing counter. Like I said, not the most elegant, but it's a simple enough method that I've used. Glad if it helps. :)


Comment on Re: file header change

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017109]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-04-17 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (458 votes), past polls