Slaton Lipscomb

Use an IMAGIC or SPIDER classification to cull a boxdb dataset

[ download ]

The following inputs are required:

  • an EMAN boxdb file (box), or a partial string/key that matches any number of EMAN boxdb files.
  • either an IMAGIC class membership table (.lis) generated by the MSA-NAMES-IN-CLASSES operation, or a SPIDER document file (.spi) containing classification data.
  • a flat text file with a list of classes to exclude, one per line.

If a SPIDER document file is used, the classification data must be in two registers: class number folllowed by particle number.

cullbyclass.pl generates new EMAN boxdb files by default. The original filenames wil be appended with '_x' However, if the '-o' option is used, the original boxdb files will be overwritten instead.

Usage examples:

$ cullbyclass.pl -k prt_cl0 -c cls.lis -e exclude.txt -o
$ cullbyclass.pl -k part.box -c cls.lis -e exclude.txt
$ cullbyclass.pl -k part.box -c cls.spi -e exclude.txt