str handling in python
0
0
Entering edit mode
5.1 years ago

I need to use a python to order a str like:

Uncharacterized protein YiiQ OS = Escherichia coli (strain K12) GN = yiiQ PE = 3 SV = 1

and that the result of this matches PROKKA format

> SeqID EC_number ~~~ gene ~~~ product ~~~ COG
python • 979 views
ADD COMMENT
0
Entering edit mode

So don't use a language you aren't familiar with. If you have no programming skills, try the programming forums. It's not a bioinformatics issue.

ADD REPLY
0
Entering edit mode

help please I'm new to python

None of us was born with (python) programming skills, so it's worth spending some effort to fix your problem and show us what you tried. Also, from your question, it is not clear to me how the reformatting should be done.

ADD REPLY
0
Entering edit mode

I don't mind helping although I agree with whats been said. Yet, maybe its me but, I couldn't understand much from what you've typed in. Could you explain a bit better with a full example

ADD REPLY
0
Entering edit mode

Your first problem is not that you don't know the python to do this, it's that your starting string literally does not contain the information you need to create the correctly formatted prokka header; you have no EC number, you have no Sequence ID (though this is arbitrary anyway), and you don't have any COGs (but I think these may be optional in prokka - don't quote me on that).

ADD REPLY

Login before adding your answer.

Traffic: 1984 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6