Split NMR-style multiple model pdb files into individual models: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 47: Line 47:
You can fork [https://github.com/fomightez/structurework/blob/master/python_scripts/super_basic_multiple_model_PDB_file_splitter.py the code here at Github].
You can fork [https://github.com/fomightez/structurework/blob/master/python_scripts/super_basic_multiple_model_PDB_file_splitter.py the code here at Github].


(Eventually, I hope to have a more full-featured version there that you can just point at your file using an argument at the command line, and after that a web-hosted service to do it for you right on a web page.)
(A more full-featured version there that you can just point at your file [,or a folder of files,] using an argument on the command line can be found [https://github.com/fomightez/structurework/blob/master/python_scripts/multiple_model_PDB_file_splitter.py here at Github]. )


   PDB_text = """
   PDB_text = """
Line 64: Line 64:
           # reset everything for next model
           # reset everything for next model
           model_number += 1
           model_number += 1
           new_file_text = ''
           new_file_text = ""
       elif not line.startswith("MODEL"):
       elif not line.startswith("MODEL"):
           new_file_text += line + '\n'
           new_file_text += line + '\n'
6

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu