make that:
to fix this, you can append the result strings to the data_lis list
inside the loop:
note that you put the "return" statement inside the loop, so returning
only one line is the expected behaviour.
only one line is the expected behaviour.
inside the loop:
result = "%s\t%s\t%s " %(id,gene_symbo l,ptms)
data_lis.append (result)
>
and then return the list when done:
>
return data_lis
>
data_lis.append (result)
>
and then return the list when done:
>
fh.close()
>