in reply to Calc distance between atoms in pdb file

Post some real input data: answers will be better, with a better regex/method.

Reading each line, you can calculate distance with all previous points - no need to make a double loop after reading all the file.


Update: strike first part (sorry OP)
  • Comment on Re: Calc distance between atoms in pdb file

Replies are listed 'Best First'.
Re^2: Calc distance between atoms in pdb file
by BrowserUk (Patriarch) on Apr 29, 2012 at 19:17 UTC
    Post some real input data: answers will be better,

    I found the real input data via the OPs reference.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?