For Power-Users‎ > ‎

6. Adding sniffers for your data types


There are two ways a file is detected in galaxy: by file extension, or by sniffing. For every datatype you add, you should also add a sniffer function. All sniffers should be added to the faceit_datatypes repository.

The following links contain some information about datatypes and sniffers:
An example of a sniffer used in faceit can be found at https://bitbucket.org/faceit/faceit_datatypes/raw/default/faceit.py. Take a look at the sniff method in the PSIMSSoil class. It returns true if a given files matches a specified JSON schema, false otherwise.

Comments