r-lequin
Table of Contents
R-lequin
R-lequin is a collection of R functions to parse a XML output file of ARLEQUIN version 3.12. R-lequin extracts data and produces graphics. R is an ideal programming language for parsing XML files and for graphic creation because it provides a lot of graphical techniques and a XML package containing tools for parsing and generating XML within R. The graphics should help to get an impression and to interpret the results produced by ARLEQUIN.
R-lequin is a tool to enhance the user friendliness and the readability of the ARLEQUIN output.
R code for graphics
Documentations:
lines:
- Haplotype:
- expected/observed haplotype (with CI)
- save graphic as a .png file
- Allelic size range (lines with different colors)
matrix:
-
- read data from a HTML file
- read data from a XML file
- move legend
- haplotype distance:
- haplotype distance (line by line input)
- improved: matrix rotated, more labels
-
- with mixed data from several populations
- multiple plots in one graphic:
bar:
points:
XML:
-
- half matrix data
- full matrix data
- table data
Arlequin output file changes (HTML to XML)
Delete:
- <html>, <head>, <style>, <body> and <PRE> tags
- the space ( ) in the empty <A> tag or replace it with the space code: 
O;
Insert:
- XML declaration on top of the output file:
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="..."?>
- root tag
- tags around titles and other text which should be specially formatted
- tags around data (respectively around data which should be displayed with no special format)
- specific tags around data which is needed to make graphics in R:
- unique names for a special kind of data (the format of the data within this tag must always be the same)
- no sample names/population names with wihte space, use '_' instead
example:
tutorials
links
r-lequin.txt · Last modified: 2009/01/17 10:55 by heidi