Database XML description

The following list describes the allowed attributes for an isolate database. A profile database is similar but generally the only standard fields included are 'st' and 'clonal_complex'. See hp_profiles.xml and nm_isolates.xml for example files.

Use the online configurator tool to design your databases and generate the corresponding XML file.

Isolate database XML attributes

<mlst>

Top level element. Contains child elements: system, locus, field.

<system>

Element content: Brief description to appear on web pages.

AttributeDescriptionRequiredExample
longcodedatabase namerequirednm_isolates
webrootURL of web root, default '/'optional/neisseria
descriptiondatabase descriptionoptional
indexpagehome page name, default 'index.html'optionalindex.html
dbprofname of profiles databaserequirednm_profiles
profhomeURL of profiles database home pagerequiredhttp://pubmlst.org/cgi-bin/ mlstdbnet/mlstdbnet.pl? file=nm_profiles.xml
dbtypeeither 'profiles' if allelic profile is stored in database or 'st' if sequence type is stored, default 'st'required
profiles_hosthost name/IP address of machine hosting profile database, default '127.0.0.1'optional163.1.73.11
profiles_portport number that the profiles host is listening on, default '5432'optional5432
profiles_userremote username for read-only access to profiles database, default 'remote'optional
profiles_passremote password for read-only access to profiles database, default 'remote'optional
hosthost name/IP address of machine hosting isolate database, default '127.0.0.1'optional163.1.73.11
portport number that the isolate host is listening on, default '5432'optional5432
userusername for access to isolates database, default 'apache'optional
passpassword for access to isolates database, default 'remote'optional
viewdatabase view to query, default 'isolates'optional
nocomplexset to 'nocomplex' if profiles database lacks a clonal_complex fieldoptional
seqdlset to 'seqdl' if you would like to be able to download allele sequence files by isolateoptional
noshowcomma separated list of fields not to use in breakdown statisticsoptional
fieldgroup1 - fieldgroup10allows multiple fields to be queried as a group. Value should be the name of the group followed by a colon (:) followed by a comma-separated list of fields to groupoptionalidentifiers:id,strain,other_name
treelistfield to be used as key for drawing treesoptional
complex_maindisplaydetermines whether the clonal complex field from the profile database is displayed in the isolates main results tableoptional
reftabledetermines if the database contains a table for linking isolate records to PubMed ids.optionalyes
multiviewsset to 'multiviews' to restrict users to different database views. Further details.optionalmultiviews

<locus>

Element content: Locus abbreviation

AttributeDescriptionRequiredExample
fullnamefull name of geneoptionalABC transporter
length(standard) length of generequired433
varyingset to 'yes' if some alleles vary from standard lengthoptionalyes
orfopen reading frame, set to '2' or '3' if ORF doesn't start at first nucleotide, or '4', '5' or '6' if you have a reverse reading frame (the software will reverse complement the sequence when generating in-frame concatenated sequences)optional2
nocodingset to 'yes' if alleles do not code for a proteinoptionalyes

<field>

Element content: Field name + optional list <optlist> of allowed values

AttributeDescriptionRequiredExample
typedata type - integer, text, real or daterequiredint
requiredis data required for this field? default 'yes'optionalno
maindisplayis field displayed in main table after database search? default 'yes'optionalno
userupdatecan a database user (curator) update this field - generally only the id number can not be updated, default 'yes'optionalno
lengthlength of fieldrequired12
optlistdoes this field have a list of allowed values? default 'no'. Surround each option with an <option> tagoptionalyes
dropdownselect if you want this field to have its own dropdown box on the query page. If the field has an option list and you prefer to use the list from the XML file set a value of 'list'. Set as 'yes' to use the values from the database.optionalyes
commentscomments about the fieldoptional
dbpepset to name of database if this field returns an antigen peptide (or short sequence) from a remote databaseoptionalporavr
dbnucset to name of database if this field returns an antigen nucleotide (or long peptide) sequence from a remote databaseoptionalpora_alleles
hosthost name/IP number of machine hosting antigen databaseoptional163.1.73.11
portport number that the antigen database host is listening onoptional5432
userremote username for access to antigen databaseoptional
passremote password for access to antigen databaseoptional
tabledatabase table to queryoptionalpora
qrynamedatabase field to queryoptionalid
seqdatabase sequence field to returnoptionalseq
webURL that hyperlinked peptide sequence points tooptionalhttp://neisseria.org/nm/ typing/pora/vr1.shtml
compositeComposite field made up of any number of other fields. The composite field itself does not appear in the database. To include another field use a dollar sign ($) immediately followed by the field name (which can come from either the profile or isolate database). Use any other characters you like in the string.optionalST-$ST($clonal_complex): $serogroup: P1.$porA_VR1,$porA_VR2: $fetA_VR (will display a field like 'ST-11(cc11):B:P1.5,2:F1-2)
composite_emptiesTo be used with 'composite' attribute. Use to set the display value of fields that make up a composite field when the real value is empty. This is a comma-separated list.optionalcomposite_empties="$porA_VR1:ND, $porA_VR2:ND, $clonal_complex:-, $fetA_VR:ND"
composite_ clonal_ complex_ formatSet the format for clonal complex in composite field
1: as database
2: number part of field
optional2

Navigation

- PubMLST+ PubMLST
MLST Home
Search / site map
- Software+ Software
Bio-Linux
Web tools
Software
- Bacteria+ Bacteria
A. baumannii
Arcobacter
B. cereus
Bordetella
Brachyspira
B. cepacia
C. fetus
C. helveticus
C. insulaenigrae
C. jejuni & C. coli
C. lari
C. upsaliensis
Chlamydiales
H. pylori
L. monocytogenes
Neisseria
P. aeruginosa
P. gingivalis
S. agalactiae
S. uberis
S. zooepidemicus
Streptomyces
V. parahaemolyticus
V. vulnificus
Wolbachia
- Eukaryotes+ Eukaryotes
A. fumigatus
C. krusei
C. tropicalis
- Other dbases+ Other dbases
B. burgdorferi MLSA
Plasmid MLST
- Mirrors+ Mirrors
About our mirrors Primary |UK1 |UK2 |US1
- Developers+ Developers
SOAP API

Navigation

mlstdbNet home
Database software
Software

Help

The user guide provides further information about using the software.

Download

mlstdbNet v2.0.0 (472 kb)

Installation

Required packages
Installation guide
Configuration tips

Example configuration file

XML

XML description of database attributes explained

Please contact Keith Jolley if you experience any problems installing and configuring mlstdbNet.