roy@alanine.phri.nyu.edu (Roy Smith) (08/31/90)
How are the .idx files on GenBank tapes sorted? More specifically, if I want to do a keyword binary search through the .idx files, and I use the standard Unix strcmp(3) routine for comparing my key with the keys from the file, will I be guaranteed to get the same sorting order as was used to prepare the files? -- Roy Smith, Public Health Research Institute 455 First Avenue, New York, NY 10016 roy@alanine.phri.nyu.edu -OR- {att,cmcl2,rutgers,hombre}!phri!roy "Arcane? Did you say arcane? It wouldn't be Unix if it wasn't arcane!"
ryals@genbank.bio.net (Julie Ryals) (09/05/90)
Roy Smith asks: > How are the .idx files on GenBank tapes sorted? More specifically, > if I want to do a keyword binary search through the .idx files, and I use > the standard Unix strcmp(3) routine for comparing my key with the keys from > the file, will I be guaranteed to get the same sorting order as was used to > prepare the files? The index files on GenBank tape releases are sorted using the standard Unix sort command. Therefore I believe that the Unix strcmp command should achieve the desired result. Julie Ryals Assistant GenBank Manager (415) 962-7309 ryals@genbank.bio.net