#NEWLINE# def initialize( * args , **keywords ) : #NEWLINE# #INDENT# reg = core . modules . module_registry #NEWLINE# basic = core . modules . basic_modules #NEWLINE# reg . add_module ( ProteinDataBank , abstract = True ) #NEWLINE# reg . add_module ( Protein , abstract = True ) #NEWLINE# reg . add_module ( PDBParser ) #NEWLINE# reg . add_input_port ( PDBParser , 'File' , ( basic . File , 'File' ) ) #NEWLINE# reg . add_output_port ( PDBParser , 'Protein' , ( Protein , 'Protein' ) ) #NEWLINE# reg . add_module ( GetAtoms ) #NEWLINE# reg . add_input_port ( GetAtoms , 'Protein' , ( Protein , 'Protein' ) ) #NEWLINE# reg . add_input_port ( GetAtoms , 'Atom Type' , ( basic . String , 'AtomType' ) ) #NEWLINE# reg . add_output_port ( GetAtoms , 'NumAtoms' , ( basic . Integer , 'NumAtoms' ) ) #NEWLINE# reg . add_module ( GetHetAtoms ) #NEWLINE# reg . add_input_port ( GetHetAtoms , 'Protein' , ( Protein , 'Protein' ) ) #NEWLINE# reg . add_input_port ( GetHetAtoms , 'Atom Type' , ( basic . String , 'AtomType' ) ) #NEWLINE# reg . add_output_port ( GetHetAtoms , 'NumAtoms' , ( basic . Integer , 'NumAtoms' ) ) #NEWLINE# reg . add_module ( GetSequence ) #NEWLINE# reg . add_input_port ( GetSequence , 'Protein' , ( Protein , 'Protein' ) ) #NEWLINE# reg . add_input_port ( GetSequence , 'SequenceID' , ( basic . String , 'SequenceID' ) ) #NEWLINE# reg . add_output_port ( GetSequence , 'Sequence' , ( basic . String , 'Sequence' ) ) #NEWLINE# reg . add_module ( GetTitle ) #NEWLINE# reg . add_input_port ( GetTitle , 'Protein' , ( Protein , 'Protein' ) ) #NEWLINE# reg . add_output_port ( GetTitle , 'Title' , ( basic . String , 'Title' ) ) #NEWLINE# reg . add_module ( GetAuthor ) #NEWLINE# reg . add_input_port ( GetAuthor , 'Protein' , ( Protein , 'Protein' ) ) #NEWLINE# reg . add_output_port ( GetAuthor , 'Author' , ( basic . String , 'Author' ) ) #NEWLINE# reg . add_module ( GetPDBName ) #NEWLINE# reg . add_input_port ( GetPDBName , 'Protein' , ( Protein , 'Protein' ) ) #NEWLINE# reg . add_output_port ( GetPDBName , 'Name' , ( keywords . String , 'Name' ) )