Mindy

Create an index

from Bio.Mindy import XPath

XPath.xpath_index(
  dbname = "sprot",
  filenames = ["sprot38.dat"],
  unique = "entry",
  extract_info = [
     ("entry", "//entry_name"),
     ("accession", "//bioformat:record[@type='accession']"),
  ])
 
.