Volume list file

From Dynamo
Jump to: navigation, search

Volume list files are text files with extension .vll. They are used as an easy interface to describe sets of tomograms and attached models.

Syntax

A volume list file just lists tomogram files, letting the user attach under each line representing a tomogram some information about it. A comment is represented by a # symbol. A text file as:

myTomogram1.mrc
myTomogram2.mrc
myTomogram3.mrc
# tomogram 4 was awful!, we exclude it!
myTomogram5.mrc

is already a perfectly formatted volume list file that can be used for instance to create a catalogue

Advanced syntax

Depending on the final use of the volumen file (possibly creating a catalogue from anew or cropping particles), there are several special characters that introduce different operations:

  1. # Comment
  2. * Parameter assignation (ftype,ytilt, etc)
    * label = testCatalogue_2
    • index = 2
    * ftype = 1
    * xtilt = -60 60
    * ytilt = -60 60
    * ztilt = -60 60
    * apix = 1.20
    * defocus = 2.40
  3. > Crop particles from this source
  4. ! Import models from this source

Cropping particles

Manually

Volume list files are useful to extract particles from multiple tomograms into the same data folder. This can be achieved from the command line with the order:

dtcrop <vll file> reorder sidelength datafolder

Here, myList.vll is a file text that lists tomogram files. Below each tomogram, one can insert one or several files models or tables preceded with the symbol >. For instance, if we write the file example.vll as

myTomogram1.mrc
> myTable1.tbl

myTomogram2.mrc
> myModel_imported.omd
> myTable2.tbl
# we can mix models and tables

myTomogram5.mrc
# a volume may have no sources

and use it as first argument of dtcrop, as in:

dtcrop example.vll reorder mydata 64;

Dynamo will use myTable1.tbl to crop particles (with a sidelength of 64) from myTomogram1.mrc. For the next volume myTomogram2.mrcIt will generate internally a table out of model myModel_imported.omd and use those positions and angles together with the ones in myTable2.tbl. The particles will land in a data folder called mydata, which will include a single cropping table that will represent positions and angles merged from myTable1.tbl, myModel_imported.omd and myTable2.tbl.

Through the catalogue

Volume list files are automatically generated when extracting particles using the catalogue.

Creating catalogues

You can create a catalogue from anew with

dcm -create newCatalogue -fromvll somelist.vll

here, somelist.vll can contain just tomogram names or also attributes of each tomogram.

Creating volume list files

Volume lists are automatically created when cropping particles through the regular GUI.

However as text files, they can be created with any regular editor. Otherwise, there are some Dynamo tools to ease the creation of volume list files in habitual scenarios.

From lists of models

Each (catalogued) model contains a key that allows it to find the volume and the catalogue it is assigned to. Thus, if you have a cell array of model files (or a cell array of models), those contain already all the information needed to extract particles from them. You can dig the information individually, or use the tools detailed below for automatted formatting of vll files.

Manually

The basic order is 'dvll' passing a cell array of models:

dvll(modelFileArray,'o',myList.vll); 

After this operation, you can crop particles from the tomograms referred by the models through the command:

dtcrop myList.vll reorder 64 myDataFolder 


By the GUIs

A vll is automatically created when cropping particles using the catalogue

Low level

The volume that a model is linked to is depicted in screen through the method 'fullFileName' of the property 'cvolume' in the volume.

Thus, you can access the tomogram name of model myModel through:

tomogramFile = myModel.cvolume.fullFileName();