Either way; nest the for loops and index with protein IDs or dictionary one
file and write the other with matches to the dictionary:
non-python pseudocode:
for every line in TWO:
get the first protein ID
for every line in ONE:
if the second protein ID is the same as the first:
Whoops:
1) dictionary.has_key() ???
2) I don't know if it's a typo or oversight, but there's a comma in you
dictionary key, line.split(',')[0].
3) Forget the database if it's part of a larger workflow unless your job is
to adapt a biological workflow database for your lab.
On Thu, Oct 14, 2010
nd removes commas.
On Thu, Oct 14, 2010 at 13:43, Adam Lucas wrote:
> Whoops:
>
> 1) dictionary.has_key() ???
> 2) I don't know if it's a typo or oversight, but there's a comma in you
> dictionary key, line.split(',')[0].
> 3) Forget the database if it's
On Wed, May 4, 2011 at 13:31, Spyros Charonis wrote:
> Hello everyone,
>
> I have written a program, as part of a bioinformatics project, that
> extracts motif sequences (programmatically just strings of letters) from a
> database and writes them to a file.
> I have written another script to anno