' and matches[a][0]==1:
>
> > print " 1 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:1 12:0
> > 13:0 14:0 15:0 16:0 17:0 18:0 19:0 20:0 21:0"
> > if matches[a][1]=='N' and matches[a][0]==1:
>
> > print "
9:0 10:0 11:0 12:0
> 13:1 14:0 15:0 16:0 17:0 18:0 19:0 20:0 21:0"
> if matches[a][1]=='Q' and matches[a][0]==1:
>
> print " 1 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0
> 13:0 14:1 15:0 16:0 17:0 18:0 19:0 20:0 21:0"
> if matc
drjekil wrote:
> I have done something so far about that problem,but its not the good way to
> do it
>
> need ur comments about that
>
Well, at least you can see that your approach is not satisfactory, so
that means you have some sense of what's good and bad programming/
>
> from string im
]==1:
print "1 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0
13:0 14:0 15:0 16:1 17:0 18:0 19:0 20:0 21:0"
if matches[a][1]=='T' and matches[a][0]==1:
print "1 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0
13:0 14:0 15
drjekil (or should that be mrhyde?):
Once again, *please* make sure you reply to the list. Personal replies
are much less likely to get attention.
regards
Steve
drjekil sayer wrote:
> u got it!
> thats what i am trying to explain with my bad english!
> thanks once again.
>
>
> On 4/9/08, *S
u got it!
thats the thing i am trying to explain by my bad english!
thanks for the help.
--
View this message in context:
http://www.nabble.com/new--user-needs-help%21-tp16571823p16578029.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org
[EMAIL PROTECTED] wrote:
> thanks!
Please keep all replies on the list: somebody else may also wish to help
(and they will also pick up mistakes I make ;-)
> I am working with a text filelooks like this:
> #NAME AA TOPO ACCESS DSSP STRIDE Z-COORD
> 1lghB A i 79.8 H H -24.58
> 1lghB V i 79.6 H H
Tim Chase wrote:
>> f = open("/tmp/data.txt", 'w')
>>
>> will open that file.
>>
>> You can throw the first line away with
>>
>> headings = f.next()
>>
>> Then you can loop over the rest with
>>
>> for name, aa, topo, access, dssp, stride, z in file:
>> #
>> # Then process each line here
> f = open("/tmp/data.txt", 'w')
>
> will open that file.
>
> You can throw the first line away with
>
> headings = f.next()
>
> Then you can loop over the rest with
>
> for name, aa, topo, access, dssp, stride, z in file:
> #
> # Then process each line here
Small caveat here...Ste
On Apr 8, 3:38 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> drjekil wrote:
> > I am totally new in biopython and its my first program.so may be i am asking
> > stupid question.
>
> New? Most questions are sensible.
>
> Let's suppose that the four lines you give below are stored in a text
> file ca
ave to cheek all the lins in the file and print it.
> u have to tell simply otherwise i cant understand even,so stupid am i!
> I will be really greatful!Thanks in advance
> --
> View this message in
> context:http://www.nabble.com/new--user-needs-help%21-tp16571823p16571823.html
> S
drjekil wrote:
> I am totally new in biopython and its my first program.so may be i am asking
> stupid question.
New? Most questions are sensible.
Let's suppose that the four lines you give below are stored in a text
file called "/tmp/data.txt".
> I am working with a text filelooks like this:
>
!Thanks in advance
--
View this message in context:
http://www.nabble.com/new--user-needs-help%21-tp16571823p16571823.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
advance
--
View this message in context:
http://www.nabble.com/new--user-needs-help%21-tp16571784p16571784.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
14 matches
Mail list logo