Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package


# Copyright 1999 by Cayte Lindner.  All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license.  Please see the LICENSE file that should have been included
# as part of this package.

import os
from Bio.Prosite import Prodoc

tests = ['pdoc00100.txt',

def print_list( list ):
    for item in list:
        print( '    ' + str( item ) )

def print_references( list ):
    for item in list:
        print item.number
        print item.authors
        print item.citation

for test in tests:
    datafile = os.path.join( 'Prosite', 'Doc', test )
    src_handle = open( datafile )
    data = Prodoc.read(src_handle)
    print data.accession
    print 'prosite_refs'
    print data.text
    print 'references'

Generated by  Doxygen 1.6.0   Back to index