<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.genplay.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nicolas</id>
		<title>GenPlay, Einstein Genome Analyzer - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.genplay.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nicolas"/>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php/Special:Contributions/Nicolas"/>
		<updated>2026-05-25T05:31:26Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1647</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1647"/>
				<updated>2013-10-11T20:13:32Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* The Welcome screen */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The precision of the project will change the number of bits used to code numbers.&lt;br /&gt;
* High-Precision: Numbers are coded using 32 bits which offers the highest precision level in GenPlay.&lt;br /&gt;
* Low-Precision: Numbers are coded using 16 bits. It may be useful to lower memory usage. However, the maximum score is 65504 and decimals may be rounded in a different way ([http://en.wikipedia.org/wiki/Half-precision_floating-point_format here] for more information).&lt;br /&gt;
[[image:precision.png|center|frame|Project precision]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly.&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser, users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in figure below.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
The Single Genome Project is the most common/regular project in GenPlay. If you do not know or understand yet what the Multi Genome Project is, please use the Single Genome Project.&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
[[image:load_project.png|right|thumb|150px|Load an existing project]]&lt;br /&gt;
In order to load a project, the user has to select the &amp;quot;Load an existing project&amp;quot; option.&amp;lt;br /&amp;gt;&lt;br /&gt;
The list of the 5 last projects shows on the lower part of the dialog. An additional option &amp;quot;Other&amp;quot; will let the user select a GenPlay project file to load.&amp;lt;br /&amp;gt;&lt;br /&gt;
The upper part updates automatically when selecting a project in order to remind the following information:&lt;br /&gt;
* Name: The name of the project.&lt;br /&gt;
* Precision: The precision of the project, either high or low.&lt;br /&gt;
* Genome: The genome used.&lt;br /&gt;
* Project type: The type of project, either single or multi-genome.&lt;br /&gt;
* Last modified: The last time the project has been modified.&lt;br /&gt;
* Track number: The number of track in the project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
==== Add a Variant Layer ====&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
==== Multi-Genome Features ====&lt;br /&gt;
===== Select Coordinate System =====&lt;br /&gt;
[[image:mg_coordinate_chooser.png|left|thumb|150px|Coordinate System chooser]]&lt;br /&gt;
The coordinate system of GenPlay can be changed by selecting one on the list located on the bottom right of the main frame. The default system is the one of the Meta Genome; the Reference Genome coordinate system is also available. The user can also choose the one of any of the loaded genome. This does not affect operation, only the red position numbers on the top of the frame as well as the position search bar on the bottom.&lt;br /&gt;
===== Multi-Genome Project Properties =====&lt;br /&gt;
[[image:mg_option_button.png|right|thumb|200px|Properties Dialog Button]]&lt;br /&gt;
In Multi-Genome Projects only, a new button appears on the bottom left of the frame. This button leads to the Multi-Genome Project Properties dialog allowing the user to visualize and handle the project settings. Right-clicking on the button opens a contextual menu offering shortcuts to the different sections of the properties dialog.&lt;br /&gt;
====== General ======&lt;br /&gt;
[[image:mg_general.png|right|thumb|300px|General Section]]&lt;br /&gt;
The General section is an overview of how the project has been loaded. Projects can be very complex, using many files and samples. This section reminds the user how the project has been set up.&lt;br /&gt;
====== Settings ======&lt;br /&gt;
[[image:mg_settings.png|right|thumb|300px|Settings Section]]&lt;br /&gt;
The Settings section lets the user choose how to handle multi-genome various options.&lt;br /&gt;
* Properties Dialog&lt;br /&gt;
** Default section to open: the default section of the Multi-Genome Project Properties dialog to open when clicking the button.&lt;br /&gt;
* VCF Loader&lt;br /&gt;
** Default group text name: Default name for groups.&lt;br /&gt;
* Stripes transparency: Sets the transparency of stripes reprensenting variations.&lt;br /&gt;
* Global display settings&lt;br /&gt;
** Show legend: Allow to show the enabled variations and their colors into the track layer.&lt;br /&gt;
* Variant stripes settings&lt;br /&gt;
** Show filtered variation: Filtered variations can be shown but will be represented with a cross over their stripes.&lt;br /&gt;
** Show border of insertion: Insertion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show border of deletion: Deletion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show nucleotides of insertion stripes: Added nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of deletion stripes: Deleted nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of SNP stripes: SNP nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
* Reference stripes settings&lt;br /&gt;
** Show reference stripes: Stripes representing the reference genome can be either shown or hidden.&lt;br /&gt;
** Reference stripes color: Defines a color for reference stripes.&lt;br /&gt;
====== Files ======&lt;br /&gt;
The Files section lists all the VCF files loaded into GenPlay. Their information are separated into two categories:&lt;br /&gt;
* Information: the information part shows the name and the location of the file. It also segments the header of the VCF file for an easy reading and interpretation.&lt;br /&gt;
* Statistics: This part gives various descriptive statistics of the file and for each sample. All tables can be copied and pasted as regular text tab-delimited.&lt;br /&gt;
&amp;lt;gallery widths=350px height=150px perrow=2&amp;gt;&lt;br /&gt;
image:mg_file_info.png|File Information&lt;br /&gt;
image:mg_file_stat.png|File Statistics&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
====== Filters ======&lt;br /&gt;
The filters section is covered in the [[#MGFiltersExplanation|section below]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
==== Edit Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Edit Variant Layer Dialog]]&lt;br /&gt;
This feature will popup the same window used to load the Variant Layer offering the possibility to change the variation types to show.&lt;br /&gt;
==== Generate track statistics ====&lt;br /&gt;
This operations generates various statistics about loaded information.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also compares these statistics before and after applying any filters in order to see their effects.&lt;br /&gt;
==== Filters ====&lt;br /&gt;
&amp;lt;div id=&amp;quot;MGFiltersExplanation&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
Filters can be applied on Variant Layers, they interact directly on data found in the VCF in order to select on data of interest.&lt;br /&gt;
All filters are set in the Filters section of the Multi-Genome Project Properties dialog. &amp;lt;br /&amp;gt;&lt;br /&gt;
Simply click on &amp;quot;Add&amp;quot; in order to create a new filter. As shown below, a new window appears to define the filter.&lt;br /&gt;
[[image:mg_filter_selection.png|center|thumb|800px|Filter selection dialog]]&lt;br /&gt;
* Layer(s): The layers affected by the filter.&lt;br /&gt;
* File: A filter is also file specific, if data to filter are separated over different files, several filters must be created.&lt;br /&gt;
* ID: A filter can be set on any ID defined on the header of the VCF. IDs can be of different types which affects the selection of the next steps.&lt;br /&gt;
* Genome(s): Any &amp;quot;FORMAT&amp;quot; ID will require to know which genome(s) is/are concerned by the filter.&lt;br /&gt;
* Operator: If more than one genome has been selected in the previous step, the operator will decide how the result from each genome will be processed in order to have a result for the whole line.&lt;br /&gt;
** And: The selected ID value from each genome must pass the filter.&lt;br /&gt;
** Or: At least one selected ID value must pass the filter.&lt;br /&gt;
** Sum: If the selected ID value is an integer, the sum value from each genome will be filtered.&lt;br /&gt;
** Mean: If the selected ID value is an integer, the mean value from all genomes will be filtered.&lt;br /&gt;
* Filter: This filter panel will change according to the selected ID type.&lt;br /&gt;
** String: The input value will be tested and the user has to choose if the value must be present or must not be present in the ID value.&lt;br /&gt;
** Number: The ID value is here tested using one of the given numeric operator against an input value. The ID value can also be tested against two input value using the secong part of the filter, the user then has to choose how both filters are handled.&lt;br /&gt;
** Flag: When the ID value is a flag, it reacts as boolean, meaning the value is here, or is not.&lt;br /&gt;
** Genotype: The genotype ID has a special filter editor in order to set it up more easily. The regular string editor can be found below. The genotype can be homozygote/heterofygote/phased/unphased.&lt;br /&gt;
&amp;lt;gallery widths=160px heights=160px perrow=4&amp;gt;&lt;br /&gt;
image:mg_filter_string.png|String Editor&lt;br /&gt;
image:mg_filter_number.png|Number Editor&lt;br /&gt;
image:mg_filter_flag.png|Flag Editor&lt;br /&gt;
image:mg_filter_genotype.png|Genotype Special Editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Export as VCF ====&lt;br /&gt;
This operation exports all visible variations of the layer into a new VCF file. It includes filters meaning that it exports what can be seen on the layer.&lt;br /&gt;
==== Convert into variable window track ====&lt;br /&gt;
This operation converts the Variant Layer into a Microarray/Sequencing Layer. The new windows match the positions of the variation stripes. The score of the new windows can be set to any integer value present into the VCF lines. For haploid genomes, only one layer will be generated. For diploid genomes, the maternal and paternal alleles will be generated over two different layers.&lt;br /&gt;
==== Apply Genotype ====&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Precision.png&amp;diff=1646</id>
		<title>File:Precision.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Precision.png&amp;diff=1646"/>
				<updated>2013-10-11T20:00:19Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_basics_empty_welcome_screen.png&amp;diff=1645</id>
		<title>File:Mg basics empty welcome screen.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_basics_empty_welcome_screen.png&amp;diff=1645"/>
				<updated>2013-10-11T19:55:57Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: uploaded a new version of &amp;amp;quot;File:Mg basics empty welcome screen.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1644</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1644"/>
				<updated>2013-10-11T19:52:43Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Load Project */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
[[image:load_project.png|right|thumb|150px|Load an existing project]]&lt;br /&gt;
In order to load a project, the user has to select the &amp;quot;Load an existing project&amp;quot; option.&amp;lt;br /&amp;gt;&lt;br /&gt;
The list of the 5 last projects shows on the lower part of the dialog. An additional option &amp;quot;Other&amp;quot; will let the user select a GenPlay project file to load.&amp;lt;br /&amp;gt;&lt;br /&gt;
The upper part updates automatically when selecting a project in order to remind the following information:&lt;br /&gt;
* Name: The name of the project.&lt;br /&gt;
* Precision: The precision of the project, either high or low.&lt;br /&gt;
* Genome: The genome used.&lt;br /&gt;
* Project type: The type of project, either single or multi-genome.&lt;br /&gt;
* Last modified: The last time the project has been modified.&lt;br /&gt;
* Track number: The number of track in the project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
==== Add a Variant Layer ====&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
==== Multi-Genome Features ====&lt;br /&gt;
===== Select Coordinate System =====&lt;br /&gt;
[[image:mg_coordinate_chooser.png|left|thumb|150px|Coordinate System chooser]]&lt;br /&gt;
The coordinate system of GenPlay can be changed by selecting one on the list located on the bottom right of the main frame. The default system is the one of the Meta Genome; the Reference Genome coordinate system is also available. The user can also choose the one of any of the loaded genome. This does not affect operation, only the red position numbers on the top of the frame as well as the position search bar on the bottom.&lt;br /&gt;
===== Multi-Genome Project Properties =====&lt;br /&gt;
[[image:mg_option_button.png|right|thumb|200px|Properties Dialog Button]]&lt;br /&gt;
In Multi-Genome Projects only, a new button appears on the bottom left of the frame. This button leads to the Multi-Genome Project Properties dialog allowing the user to visualize and handle the project settings. Right-clicking on the button opens a contextual menu offering shortcuts to the different sections of the properties dialog.&lt;br /&gt;
====== General ======&lt;br /&gt;
[[image:mg_general.png|right|thumb|300px|General Section]]&lt;br /&gt;
The General section is an overview of how the project has been loaded. Projects can be very complex, using many files and samples. This section reminds the user how the project has been set up.&lt;br /&gt;
====== Settings ======&lt;br /&gt;
[[image:mg_settings.png|right|thumb|300px|Settings Section]]&lt;br /&gt;
The Settings section lets the user choose how to handle multi-genome various options.&lt;br /&gt;
* Properties Dialog&lt;br /&gt;
** Default section to open: the default section of the Multi-Genome Project Properties dialog to open when clicking the button.&lt;br /&gt;
* VCF Loader&lt;br /&gt;
** Default group text name: Default name for groups.&lt;br /&gt;
* Stripes transparency: Sets the transparency of stripes reprensenting variations.&lt;br /&gt;
* Global display settings&lt;br /&gt;
** Show legend: Allow to show the enabled variations and their colors into the track layer.&lt;br /&gt;
* Variant stripes settings&lt;br /&gt;
** Show filtered variation: Filtered variations can be shown but will be represented with a cross over their stripes.&lt;br /&gt;
** Show border of insertion: Insertion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show border of deletion: Deletion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show nucleotides of insertion stripes: Added nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of deletion stripes: Deleted nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of SNP stripes: SNP nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
* Reference stripes settings&lt;br /&gt;
** Show reference stripes: Stripes representing the reference genome can be either shown or hidden.&lt;br /&gt;
** Reference stripes color: Defines a color for reference stripes.&lt;br /&gt;
====== Files ======&lt;br /&gt;
The Files section lists all the VCF files loaded into GenPlay. Their information are separated into two categories:&lt;br /&gt;
* Information: the information part shows the name and the location of the file. It also segments the header of the VCF file for an easy reading and interpretation.&lt;br /&gt;
* Statistics: This part gives various descriptive statistics of the file and for each sample. All tables can be copied and pasted as regular text tab-delimited.&lt;br /&gt;
&amp;lt;gallery widths=350px height=150px perrow=2&amp;gt;&lt;br /&gt;
image:mg_file_info.png|File Information&lt;br /&gt;
image:mg_file_stat.png|File Statistics&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
====== Filters ======&lt;br /&gt;
The filters section is covered in the [[#MGFiltersExplanation|section below]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
==== Edit Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Edit Variant Layer Dialog]]&lt;br /&gt;
This feature will popup the same window used to load the Variant Layer offering the possibility to change the variation types to show.&lt;br /&gt;
==== Generate track statistics ====&lt;br /&gt;
This operations generates various statistics about loaded information.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also compares these statistics before and after applying any filters in order to see their effects.&lt;br /&gt;
==== Filters ====&lt;br /&gt;
&amp;lt;div id=&amp;quot;MGFiltersExplanation&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
Filters can be applied on Variant Layers, they interact directly on data found in the VCF in order to select on data of interest.&lt;br /&gt;
All filters are set in the Filters section of the Multi-Genome Project Properties dialog. &amp;lt;br /&amp;gt;&lt;br /&gt;
Simply click on &amp;quot;Add&amp;quot; in order to create a new filter. As shown below, a new window appears to define the filter.&lt;br /&gt;
[[image:mg_filter_selection.png|center|thumb|800px|Filter selection dialog]]&lt;br /&gt;
* Layer(s): The layers affected by the filter.&lt;br /&gt;
* File: A filter is also file specific, if data to filter are separated over different files, several filters must be created.&lt;br /&gt;
* ID: A filter can be set on any ID defined on the header of the VCF. IDs can be of different types which affects the selection of the next steps.&lt;br /&gt;
* Genome(s): Any &amp;quot;FORMAT&amp;quot; ID will require to know which genome(s) is/are concerned by the filter.&lt;br /&gt;
* Operator: If more than one genome has been selected in the previous step, the operator will decide how the result from each genome will be processed in order to have a result for the whole line.&lt;br /&gt;
** And: The selected ID value from each genome must pass the filter.&lt;br /&gt;
** Or: At least one selected ID value must pass the filter.&lt;br /&gt;
** Sum: If the selected ID value is an integer, the sum value from each genome will be filtered.&lt;br /&gt;
** Mean: If the selected ID value is an integer, the mean value from all genomes will be filtered.&lt;br /&gt;
* Filter: This filter panel will change according to the selected ID type.&lt;br /&gt;
** String: The input value will be tested and the user has to choose if the value must be present or must not be present in the ID value.&lt;br /&gt;
** Number: The ID value is here tested using one of the given numeric operator against an input value. The ID value can also be tested against two input value using the secong part of the filter, the user then has to choose how both filters are handled.&lt;br /&gt;
** Flag: When the ID value is a flag, it reacts as boolean, meaning the value is here, or is not.&lt;br /&gt;
** Genotype: The genotype ID has a special filter editor in order to set it up more easily. The regular string editor can be found below. The genotype can be homozygote/heterofygote/phased/unphased.&lt;br /&gt;
&amp;lt;gallery widths=160px heights=160px perrow=4&amp;gt;&lt;br /&gt;
image:mg_filter_string.png|String Editor&lt;br /&gt;
image:mg_filter_number.png|Number Editor&lt;br /&gt;
image:mg_filter_flag.png|Flag Editor&lt;br /&gt;
image:mg_filter_genotype.png|Genotype Special Editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Export as VCF ====&lt;br /&gt;
This operation exports all visible variations of the layer into a new VCF file. It includes filters meaning that it exports what can be seen on the layer.&lt;br /&gt;
==== Convert into variable window track ====&lt;br /&gt;
This operation converts the Variant Layer into a Microarray/Sequencing Layer. The new windows match the positions of the variation stripes. The score of the new windows can be set to any integer value present into the VCF lines. For haploid genomes, only one layer will be generated. For diploid genomes, the maternal and paternal alleles will be generated over two different layers.&lt;br /&gt;
==== Apply Genotype ====&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1643</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1643"/>
				<updated>2013-10-11T19:52:20Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Load Project */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
[[image:load_project.png|right|thumb|200px|Load an existing project]]&lt;br /&gt;
In order to load a project, the user has to select the &amp;quot;Load an existing project&amp;quot; option.&amp;lt;br /&amp;gt;&lt;br /&gt;
The list of the 5 last projects shows on the lower part of the dialog. An additional option &amp;quot;Other&amp;quot; will let the user select a GenPlay project file to load.&amp;lt;br /&amp;gt;&lt;br /&gt;
The upper part updates automatically when selecting a project in order to remind the following information:&lt;br /&gt;
* Name: The name of the project.&lt;br /&gt;
* Precision: The precision of the project, either high or low.&lt;br /&gt;
* Genome: The genome used.&lt;br /&gt;
* Project type: The type of project, either single or multi-genome.&lt;br /&gt;
* Last modified: The last time the project has been modified.&lt;br /&gt;
* Track number: The number of track in the project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
==== Add a Variant Layer ====&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
==== Multi-Genome Features ====&lt;br /&gt;
===== Select Coordinate System =====&lt;br /&gt;
[[image:mg_coordinate_chooser.png|left|thumb|150px|Coordinate System chooser]]&lt;br /&gt;
The coordinate system of GenPlay can be changed by selecting one on the list located on the bottom right of the main frame. The default system is the one of the Meta Genome; the Reference Genome coordinate system is also available. The user can also choose the one of any of the loaded genome. This does not affect operation, only the red position numbers on the top of the frame as well as the position search bar on the bottom.&lt;br /&gt;
===== Multi-Genome Project Properties =====&lt;br /&gt;
[[image:mg_option_button.png|right|thumb|200px|Properties Dialog Button]]&lt;br /&gt;
In Multi-Genome Projects only, a new button appears on the bottom left of the frame. This button leads to the Multi-Genome Project Properties dialog allowing the user to visualize and handle the project settings. Right-clicking on the button opens a contextual menu offering shortcuts to the different sections of the properties dialog.&lt;br /&gt;
====== General ======&lt;br /&gt;
[[image:mg_general.png|right|thumb|300px|General Section]]&lt;br /&gt;
The General section is an overview of how the project has been loaded. Projects can be very complex, using many files and samples. This section reminds the user how the project has been set up.&lt;br /&gt;
====== Settings ======&lt;br /&gt;
[[image:mg_settings.png|right|thumb|300px|Settings Section]]&lt;br /&gt;
The Settings section lets the user choose how to handle multi-genome various options.&lt;br /&gt;
* Properties Dialog&lt;br /&gt;
** Default section to open: the default section of the Multi-Genome Project Properties dialog to open when clicking the button.&lt;br /&gt;
* VCF Loader&lt;br /&gt;
** Default group text name: Default name for groups.&lt;br /&gt;
* Stripes transparency: Sets the transparency of stripes reprensenting variations.&lt;br /&gt;
* Global display settings&lt;br /&gt;
** Show legend: Allow to show the enabled variations and their colors into the track layer.&lt;br /&gt;
* Variant stripes settings&lt;br /&gt;
** Show filtered variation: Filtered variations can be shown but will be represented with a cross over their stripes.&lt;br /&gt;
** Show border of insertion: Insertion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show border of deletion: Deletion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show nucleotides of insertion stripes: Added nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of deletion stripes: Deleted nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of SNP stripes: SNP nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
* Reference stripes settings&lt;br /&gt;
** Show reference stripes: Stripes representing the reference genome can be either shown or hidden.&lt;br /&gt;
** Reference stripes color: Defines a color for reference stripes.&lt;br /&gt;
====== Files ======&lt;br /&gt;
The Files section lists all the VCF files loaded into GenPlay. Their information are separated into two categories:&lt;br /&gt;
* Information: the information part shows the name and the location of the file. It also segments the header of the VCF file for an easy reading and interpretation.&lt;br /&gt;
* Statistics: This part gives various descriptive statistics of the file and for each sample. All tables can be copied and pasted as regular text tab-delimited.&lt;br /&gt;
&amp;lt;gallery widths=350px height=150px perrow=2&amp;gt;&lt;br /&gt;
image:mg_file_info.png|File Information&lt;br /&gt;
image:mg_file_stat.png|File Statistics&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
====== Filters ======&lt;br /&gt;
The filters section is covered in the [[#MGFiltersExplanation|section below]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
==== Edit Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Edit Variant Layer Dialog]]&lt;br /&gt;
This feature will popup the same window used to load the Variant Layer offering the possibility to change the variation types to show.&lt;br /&gt;
==== Generate track statistics ====&lt;br /&gt;
This operations generates various statistics about loaded information.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also compares these statistics before and after applying any filters in order to see their effects.&lt;br /&gt;
==== Filters ====&lt;br /&gt;
&amp;lt;div id=&amp;quot;MGFiltersExplanation&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
Filters can be applied on Variant Layers, they interact directly on data found in the VCF in order to select on data of interest.&lt;br /&gt;
All filters are set in the Filters section of the Multi-Genome Project Properties dialog. &amp;lt;br /&amp;gt;&lt;br /&gt;
Simply click on &amp;quot;Add&amp;quot; in order to create a new filter. As shown below, a new window appears to define the filter.&lt;br /&gt;
[[image:mg_filter_selection.png|center|thumb|800px|Filter selection dialog]]&lt;br /&gt;
* Layer(s): The layers affected by the filter.&lt;br /&gt;
* File: A filter is also file specific, if data to filter are separated over different files, several filters must be created.&lt;br /&gt;
* ID: A filter can be set on any ID defined on the header of the VCF. IDs can be of different types which affects the selection of the next steps.&lt;br /&gt;
* Genome(s): Any &amp;quot;FORMAT&amp;quot; ID will require to know which genome(s) is/are concerned by the filter.&lt;br /&gt;
* Operator: If more than one genome has been selected in the previous step, the operator will decide how the result from each genome will be processed in order to have a result for the whole line.&lt;br /&gt;
** And: The selected ID value from each genome must pass the filter.&lt;br /&gt;
** Or: At least one selected ID value must pass the filter.&lt;br /&gt;
** Sum: If the selected ID value is an integer, the sum value from each genome will be filtered.&lt;br /&gt;
** Mean: If the selected ID value is an integer, the mean value from all genomes will be filtered.&lt;br /&gt;
* Filter: This filter panel will change according to the selected ID type.&lt;br /&gt;
** String: The input value will be tested and the user has to choose if the value must be present or must not be present in the ID value.&lt;br /&gt;
** Number: The ID value is here tested using one of the given numeric operator against an input value. The ID value can also be tested against two input value using the secong part of the filter, the user then has to choose how both filters are handled.&lt;br /&gt;
** Flag: When the ID value is a flag, it reacts as boolean, meaning the value is here, or is not.&lt;br /&gt;
** Genotype: The genotype ID has a special filter editor in order to set it up more easily. The regular string editor can be found below. The genotype can be homozygote/heterofygote/phased/unphased.&lt;br /&gt;
&amp;lt;gallery widths=160px heights=160px perrow=4&amp;gt;&lt;br /&gt;
image:mg_filter_string.png|String Editor&lt;br /&gt;
image:mg_filter_number.png|Number Editor&lt;br /&gt;
image:mg_filter_flag.png|Flag Editor&lt;br /&gt;
image:mg_filter_genotype.png|Genotype Special Editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Export as VCF ====&lt;br /&gt;
This operation exports all visible variations of the layer into a new VCF file. It includes filters meaning that it exports what can be seen on the layer.&lt;br /&gt;
==== Convert into variable window track ====&lt;br /&gt;
This operation converts the Variant Layer into a Microarray/Sequencing Layer. The new windows match the positions of the variation stripes. The score of the new windows can be set to any integer value present into the VCF lines. For haploid genomes, only one layer will be generated. For diploid genomes, the maternal and paternal alleles will be generated over two different layers.&lt;br /&gt;
==== Apply Genotype ====&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Load_project.png&amp;diff=1642</id>
		<title>File:Load project.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Load_project.png&amp;diff=1642"/>
				<updated>2013-10-11T19:44:43Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1641</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1641"/>
				<updated>2013-10-11T19:37:32Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Filters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
==== Add a Variant Layer ====&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
==== Multi-Genome Features ====&lt;br /&gt;
===== Select Coordinate System =====&lt;br /&gt;
[[image:mg_coordinate_chooser.png|left|thumb|150px|Coordinate System chooser]]&lt;br /&gt;
The coordinate system of GenPlay can be changed by selecting one on the list located on the bottom right of the main frame. The default system is the one of the Meta Genome; the Reference Genome coordinate system is also available. The user can also choose the one of any of the loaded genome. This does not affect operation, only the red position numbers on the top of the frame as well as the position search bar on the bottom.&lt;br /&gt;
===== Multi-Genome Project Properties =====&lt;br /&gt;
[[image:mg_option_button.png|right|thumb|200px|Properties Dialog Button]]&lt;br /&gt;
In Multi-Genome Projects only, a new button appears on the bottom left of the frame. This button leads to the Multi-Genome Project Properties dialog allowing the user to visualize and handle the project settings. Right-clicking on the button opens a contextual menu offering shortcuts to the different sections of the properties dialog.&lt;br /&gt;
====== General ======&lt;br /&gt;
[[image:mg_general.png|right|thumb|300px|General Section]]&lt;br /&gt;
The General section is an overview of how the project has been loaded. Projects can be very complex, using many files and samples. This section reminds the user how the project has been set up.&lt;br /&gt;
====== Settings ======&lt;br /&gt;
[[image:mg_settings.png|right|thumb|300px|Settings Section]]&lt;br /&gt;
The Settings section lets the user choose how to handle multi-genome various options.&lt;br /&gt;
* Properties Dialog&lt;br /&gt;
** Default section to open: the default section of the Multi-Genome Project Properties dialog to open when clicking the button.&lt;br /&gt;
* VCF Loader&lt;br /&gt;
** Default group text name: Default name for groups.&lt;br /&gt;
* Stripes transparency: Sets the transparency of stripes reprensenting variations.&lt;br /&gt;
* Global display settings&lt;br /&gt;
** Show legend: Allow to show the enabled variations and their colors into the track layer.&lt;br /&gt;
* Variant stripes settings&lt;br /&gt;
** Show filtered variation: Filtered variations can be shown but will be represented with a cross over their stripes.&lt;br /&gt;
** Show border of insertion: Insertion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show border of deletion: Deletion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show nucleotides of insertion stripes: Added nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of deletion stripes: Deleted nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of SNP stripes: SNP nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
* Reference stripes settings&lt;br /&gt;
** Show reference stripes: Stripes representing the reference genome can be either shown or hidden.&lt;br /&gt;
** Reference stripes color: Defines a color for reference stripes.&lt;br /&gt;
====== Files ======&lt;br /&gt;
The Files section lists all the VCF files loaded into GenPlay. Their information are separated into two categories:&lt;br /&gt;
* Information: the information part shows the name and the location of the file. It also segments the header of the VCF file for an easy reading and interpretation.&lt;br /&gt;
* Statistics: This part gives various descriptive statistics of the file and for each sample. All tables can be copied and pasted as regular text tab-delimited.&lt;br /&gt;
&amp;lt;gallery widths=350px height=150px perrow=2&amp;gt;&lt;br /&gt;
image:mg_file_info.png|File Information&lt;br /&gt;
image:mg_file_stat.png|File Statistics&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
====== Filters ======&lt;br /&gt;
The filters section is covered in the [[#MGFiltersExplanation|section below]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
==== Edit Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Edit Variant Layer Dialog]]&lt;br /&gt;
This feature will popup the same window used to load the Variant Layer offering the possibility to change the variation types to show.&lt;br /&gt;
==== Generate track statistics ====&lt;br /&gt;
This operations generates various statistics about loaded information.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also compares these statistics before and after applying any filters in order to see their effects.&lt;br /&gt;
==== Filters ====&lt;br /&gt;
&amp;lt;div id=&amp;quot;MGFiltersExplanation&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
Filters can be applied on Variant Layers, they interact directly on data found in the VCF in order to select on data of interest.&lt;br /&gt;
All filters are set in the Filters section of the Multi-Genome Project Properties dialog. &amp;lt;br /&amp;gt;&lt;br /&gt;
Simply click on &amp;quot;Add&amp;quot; in order to create a new filter. As shown below, a new window appears to define the filter.&lt;br /&gt;
[[image:mg_filter_selection.png|center|thumb|800px|Filter selection dialog]]&lt;br /&gt;
* Layer(s): The layers affected by the filter.&lt;br /&gt;
* File: A filter is also file specific, if data to filter are separated over different files, several filters must be created.&lt;br /&gt;
* ID: A filter can be set on any ID defined on the header of the VCF. IDs can be of different types which affects the selection of the next steps.&lt;br /&gt;
* Genome(s): Any &amp;quot;FORMAT&amp;quot; ID will require to know which genome(s) is/are concerned by the filter.&lt;br /&gt;
* Operator: If more than one genome has been selected in the previous step, the operator will decide how the result from each genome will be processed in order to have a result for the whole line.&lt;br /&gt;
** And: The selected ID value from each genome must pass the filter.&lt;br /&gt;
** Or: At least one selected ID value must pass the filter.&lt;br /&gt;
** Sum: If the selected ID value is an integer, the sum value from each genome will be filtered.&lt;br /&gt;
** Mean: If the selected ID value is an integer, the mean value from all genomes will be filtered.&lt;br /&gt;
* Filter: This filter panel will change according to the selected ID type.&lt;br /&gt;
** String: The input value will be tested and the user has to choose if the value must be present or must not be present in the ID value.&lt;br /&gt;
** Number: The ID value is here tested using one of the given numeric operator against an input value. The ID value can also be tested against two input value using the secong part of the filter, the user then has to choose how both filters are handled.&lt;br /&gt;
** Flag: When the ID value is a flag, it reacts as boolean, meaning the value is here, or is not.&lt;br /&gt;
** Genotype: The genotype ID has a special filter editor in order to set it up more easily. The regular string editor can be found below. The genotype can be homozygote/heterofygote/phased/unphased.&lt;br /&gt;
&amp;lt;gallery widths=160px heights=160px perrow=4&amp;gt;&lt;br /&gt;
image:mg_filter_string.png|String Editor&lt;br /&gt;
image:mg_filter_number.png|Number Editor&lt;br /&gt;
image:mg_filter_flag.png|Flag Editor&lt;br /&gt;
image:mg_filter_genotype.png|Genotype Special Editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Export as VCF ====&lt;br /&gt;
This operation exports all visible variations of the layer into a new VCF file. It includes filters meaning that it exports what can be seen on the layer.&lt;br /&gt;
==== Convert into variable window track ====&lt;br /&gt;
This operation converts the Variant Layer into a Microarray/Sequencing Layer. The new windows match the positions of the variation stripes. The score of the new windows can be set to any integer value present into the VCF lines. For haploid genomes, only one layer will be generated. For diploid genomes, the maternal and paternal alleles will be generated over two different layers.&lt;br /&gt;
==== Apply Genotype ====&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1640</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1640"/>
				<updated>2013-10-11T19:37:00Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Filters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
==== Add a Variant Layer ====&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
==== Multi-Genome Features ====&lt;br /&gt;
===== Select Coordinate System =====&lt;br /&gt;
[[image:mg_coordinate_chooser.png|left|thumb|150px|Coordinate System chooser]]&lt;br /&gt;
The coordinate system of GenPlay can be changed by selecting one on the list located on the bottom right of the main frame. The default system is the one of the Meta Genome; the Reference Genome coordinate system is also available. The user can also choose the one of any of the loaded genome. This does not affect operation, only the red position numbers on the top of the frame as well as the position search bar on the bottom.&lt;br /&gt;
===== Multi-Genome Project Properties =====&lt;br /&gt;
[[image:mg_option_button.png|right|thumb|200px|Properties Dialog Button]]&lt;br /&gt;
In Multi-Genome Projects only, a new button appears on the bottom left of the frame. This button leads to the Multi-Genome Project Properties dialog allowing the user to visualize and handle the project settings. Right-clicking on the button opens a contextual menu offering shortcuts to the different sections of the properties dialog.&lt;br /&gt;
====== General ======&lt;br /&gt;
[[image:mg_general.png|right|thumb|300px|General Section]]&lt;br /&gt;
The General section is an overview of how the project has been loaded. Projects can be very complex, using many files and samples. This section reminds the user how the project has been set up.&lt;br /&gt;
====== Settings ======&lt;br /&gt;
[[image:mg_settings.png|right|thumb|300px|Settings Section]]&lt;br /&gt;
The Settings section lets the user choose how to handle multi-genome various options.&lt;br /&gt;
* Properties Dialog&lt;br /&gt;
** Default section to open: the default section of the Multi-Genome Project Properties dialog to open when clicking the button.&lt;br /&gt;
* VCF Loader&lt;br /&gt;
** Default group text name: Default name for groups.&lt;br /&gt;
* Stripes transparency: Sets the transparency of stripes reprensenting variations.&lt;br /&gt;
* Global display settings&lt;br /&gt;
** Show legend: Allow to show the enabled variations and their colors into the track layer.&lt;br /&gt;
* Variant stripes settings&lt;br /&gt;
** Show filtered variation: Filtered variations can be shown but will be represented with a cross over their stripes.&lt;br /&gt;
** Show border of insertion: Insertion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show border of deletion: Deletion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show nucleotides of insertion stripes: Added nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of deletion stripes: Deleted nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of SNP stripes: SNP nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
* Reference stripes settings&lt;br /&gt;
** Show reference stripes: Stripes representing the reference genome can be either shown or hidden.&lt;br /&gt;
** Reference stripes color: Defines a color for reference stripes.&lt;br /&gt;
====== Files ======&lt;br /&gt;
The Files section lists all the VCF files loaded into GenPlay. Their information are separated into two categories:&lt;br /&gt;
* Information: the information part shows the name and the location of the file. It also segments the header of the VCF file for an easy reading and interpretation.&lt;br /&gt;
* Statistics: This part gives various descriptive statistics of the file and for each sample. All tables can be copied and pasted as regular text tab-delimited.&lt;br /&gt;
&amp;lt;gallery widths=350px height=150px perrow=2&amp;gt;&lt;br /&gt;
image:mg_file_info.png|File Information&lt;br /&gt;
image:mg_file_stat.png|File Statistics&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
====== Filters ======&lt;br /&gt;
The filters section is covered in the [[#Variant Layer Operations:Filters|section below]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
==== Edit Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Edit Variant Layer Dialog]]&lt;br /&gt;
This feature will popup the same window used to load the Variant Layer offering the possibility to change the variation types to show.&lt;br /&gt;
==== Generate track statistics ====&lt;br /&gt;
This operations generates various statistics about loaded information.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also compares these statistics before and after applying any filters in order to see their effects.&lt;br /&gt;
==== Filters ====&lt;br /&gt;
&amp;lt;div id=&amp;quot;MGFiltersExplanation&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
Filters can be applied on Variant Layers, they interact directly on data found in the VCF in order to select on data of interest.&lt;br /&gt;
All filters are set in the Filters section of the Multi-Genome Project Properties dialog. &amp;lt;br /&amp;gt;&lt;br /&gt;
Simply click on &amp;quot;Add&amp;quot; in order to create a new filter. As shown below, a new window appears to define the filter.&lt;br /&gt;
[[image:mg_filter_selection.png|center|thumb|800px|Filter selection dialog]]&lt;br /&gt;
* Layer(s): The layers affected by the filter.&lt;br /&gt;
* File: A filter is also file specific, if data to filter are separated over different files, several filters must be created.&lt;br /&gt;
* ID: A filter can be set on any ID defined on the header of the VCF. IDs can be of different types which affects the selection of the next steps.&lt;br /&gt;
* Genome(s): Any &amp;quot;FORMAT&amp;quot; ID will require to know which genome(s) is/are concerned by the filter.&lt;br /&gt;
* Operator: If more than one genome has been selected in the previous step, the operator will decide how the result from each genome will be processed in order to have a result for the whole line.&lt;br /&gt;
** And: The selected ID value from each genome must pass the filter.&lt;br /&gt;
** Or: At least one selected ID value must pass the filter.&lt;br /&gt;
** Sum: If the selected ID value is an integer, the sum value from each genome will be filtered.&lt;br /&gt;
** Mean: If the selected ID value is an integer, the mean value from all genomes will be filtered.&lt;br /&gt;
* Filter: This filter panel will change according to the selected ID type.&lt;br /&gt;
** String: The input value will be tested and the user has to choose if the value must be present or must not be present in the ID value.&lt;br /&gt;
** Number: The ID value is here tested using one of the given numeric operator against an input value. The ID value can also be tested against two input value using the secong part of the filter, the user then has to choose how both filters are handled.&lt;br /&gt;
** Flag: When the ID value is a flag, it reacts as boolean, meaning the value is here, or is not.&lt;br /&gt;
** Genotype: The genotype ID has a special filter editor in order to set it up more easily. The regular string editor can be found below. The genotype can be homozygote/heterofygote/phased/unphased.&lt;br /&gt;
&amp;lt;gallery widths=160px heights=160px perrow=4&amp;gt;&lt;br /&gt;
image:mg_filter_string.png|String Editor&lt;br /&gt;
image:mg_filter_number.png|Number Editor&lt;br /&gt;
image:mg_filter_flag.png|Flag Editor&lt;br /&gt;
image:mg_filter_genotype.png|Genotype Special Editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Export as VCF ====&lt;br /&gt;
This operation exports all visible variations of the layer into a new VCF file. It includes filters meaning that it exports what can be seen on the layer.&lt;br /&gt;
==== Convert into variable window track ====&lt;br /&gt;
This operation converts the Variant Layer into a Microarray/Sequencing Layer. The new windows match the positions of the variation stripes. The score of the new windows can be set to any integer value present into the VCF lines. For haploid genomes, only one layer will be generated. For diploid genomes, the maternal and paternal alleles will be generated over two different layers.&lt;br /&gt;
==== Apply Genotype ====&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1639</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1639"/>
				<updated>2013-10-11T19:35:33Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Filters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
==== Add a Variant Layer ====&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
==== Multi-Genome Features ====&lt;br /&gt;
===== Select Coordinate System =====&lt;br /&gt;
[[image:mg_coordinate_chooser.png|left|thumb|150px|Coordinate System chooser]]&lt;br /&gt;
The coordinate system of GenPlay can be changed by selecting one on the list located on the bottom right of the main frame. The default system is the one of the Meta Genome; the Reference Genome coordinate system is also available. The user can also choose the one of any of the loaded genome. This does not affect operation, only the red position numbers on the top of the frame as well as the position search bar on the bottom.&lt;br /&gt;
===== Multi-Genome Project Properties =====&lt;br /&gt;
[[image:mg_option_button.png|right|thumb|200px|Properties Dialog Button]]&lt;br /&gt;
In Multi-Genome Projects only, a new button appears on the bottom left of the frame. This button leads to the Multi-Genome Project Properties dialog allowing the user to visualize and handle the project settings. Right-clicking on the button opens a contextual menu offering shortcuts to the different sections of the properties dialog.&lt;br /&gt;
====== General ======&lt;br /&gt;
[[image:mg_general.png|right|thumb|300px|General Section]]&lt;br /&gt;
The General section is an overview of how the project has been loaded. Projects can be very complex, using many files and samples. This section reminds the user how the project has been set up.&lt;br /&gt;
====== Settings ======&lt;br /&gt;
[[image:mg_settings.png|right|thumb|300px|Settings Section]]&lt;br /&gt;
The Settings section lets the user choose how to handle multi-genome various options.&lt;br /&gt;
* Properties Dialog&lt;br /&gt;
** Default section to open: the default section of the Multi-Genome Project Properties dialog to open when clicking the button.&lt;br /&gt;
* VCF Loader&lt;br /&gt;
** Default group text name: Default name for groups.&lt;br /&gt;
* Stripes transparency: Sets the transparency of stripes reprensenting variations.&lt;br /&gt;
* Global display settings&lt;br /&gt;
** Show legend: Allow to show the enabled variations and their colors into the track layer.&lt;br /&gt;
* Variant stripes settings&lt;br /&gt;
** Show filtered variation: Filtered variations can be shown but will be represented with a cross over their stripes.&lt;br /&gt;
** Show border of insertion: Insertion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show border of deletion: Deletion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show nucleotides of insertion stripes: Added nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of deletion stripes: Deleted nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of SNP stripes: SNP nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
* Reference stripes settings&lt;br /&gt;
** Show reference stripes: Stripes representing the reference genome can be either shown or hidden.&lt;br /&gt;
** Reference stripes color: Defines a color for reference stripes.&lt;br /&gt;
====== Files ======&lt;br /&gt;
The Files section lists all the VCF files loaded into GenPlay. Their information are separated into two categories:&lt;br /&gt;
* Information: the information part shows the name and the location of the file. It also segments the header of the VCF file for an easy reading and interpretation.&lt;br /&gt;
* Statistics: This part gives various descriptive statistics of the file and for each sample. All tables can be copied and pasted as regular text tab-delimited.&lt;br /&gt;
&amp;lt;gallery widths=350px height=150px perrow=2&amp;gt;&lt;br /&gt;
image:mg_file_info.png|File Information&lt;br /&gt;
image:mg_file_stat.png|File Statistics&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
====== Filters ======&lt;br /&gt;
The filters section is covered in the [[#Variant Layer Operations:Filters|section below]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
==== Edit Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Edit Variant Layer Dialog]]&lt;br /&gt;
This feature will popup the same window used to load the Variant Layer offering the possibility to change the variation types to show.&lt;br /&gt;
==== Generate track statistics ====&lt;br /&gt;
This operations generates various statistics about loaded information.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also compares these statistics before and after applying any filters in order to see their effects.&lt;br /&gt;
==== Filters ====&lt;br /&gt;
Filters can be applied on Variant Layers, they interact directly on data found in the VCF in order to select on data of interest.&lt;br /&gt;
All filters are set in the Filters section of the Multi-Genome Project Properties dialog. &amp;lt;br /&amp;gt;&lt;br /&gt;
Simply click on &amp;quot;Add&amp;quot; in order to create a new filter. As shown below, a new window appears to define the filter.&lt;br /&gt;
[[image:mg_filter_selection.png|center|thumb|800px|Filter selection dialog]]&lt;br /&gt;
* Layer(s): The layers affected by the filter.&lt;br /&gt;
* File: A filter is also file specific, if data to filter are separated over different files, several filters must be created.&lt;br /&gt;
* ID: A filter can be set on any ID defined on the header of the VCF. IDs can be of different types which affects the selection of the next steps.&lt;br /&gt;
* Genome(s): Any &amp;quot;FORMAT&amp;quot; ID will require to know which genome(s) is/are concerned by the filter.&lt;br /&gt;
* Operator: If more than one genome has been selected in the previous step, the operator will decide how the result from each genome will be processed in order to have a result for the whole line.&lt;br /&gt;
** And: The selected ID value from each genome must pass the filter.&lt;br /&gt;
** Or: At least one selected ID value must pass the filter.&lt;br /&gt;
** Sum: If the selected ID value is an integer, the sum value from each genome will be filtered.&lt;br /&gt;
** Mean: If the selected ID value is an integer, the mean value from all genomes will be filtered.&lt;br /&gt;
* Filter: This filter panel will change according to the selected ID type.&lt;br /&gt;
** String: The input value will be tested and the user has to choose if the value must be present or must not be present in the ID value.&lt;br /&gt;
** Number: The ID value is here tested using one of the given numeric operator against an input value. The ID value can also be tested against two input value using the secong part of the filter, the user then has to choose how both filters are handled.&lt;br /&gt;
** Flag: When the ID value is a flag, it reacts as boolean, meaning the value is here, or is not.&lt;br /&gt;
** Genotype: The genotype ID has a special filter editor in order to set it up more easily. The regular string editor can be found below. The genotype can be homozygote/heterofygote/phased/unphased.&lt;br /&gt;
&amp;lt;gallery widths=160px heights=160px perrow=4&amp;gt;&lt;br /&gt;
image:mg_filter_string.png|String Editor&lt;br /&gt;
image:mg_filter_number.png|Number Editor&lt;br /&gt;
image:mg_filter_flag.png|Flag Editor&lt;br /&gt;
image:mg_filter_genotype.png|Genotype Special Editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Export as VCF ====&lt;br /&gt;
This operation exports all visible variations of the layer into a new VCF file. It includes filters meaning that it exports what can be seen on the layer.&lt;br /&gt;
==== Convert into variable window track ====&lt;br /&gt;
This operation converts the Variant Layer into a Microarray/Sequencing Layer. The new windows match the positions of the variation stripes. The score of the new windows can be set to any integer value present into the VCF lines. For haploid genomes, only one layer will be generated. For diploid genomes, the maternal and paternal alleles will be generated over two different layers.&lt;br /&gt;
==== Apply Genotype ====&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Multi-Genome_Tutorial&amp;diff=1638</id>
		<title>Multi-Genome Tutorial</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Multi-Genome_Tutorial&amp;diff=1638"/>
				<updated>2013-10-11T19:32:28Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Getting started */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
In order to set up and manage a Multi-Genome Project in Genplay, please refer to the following sections of the documentation:&lt;br /&gt;
* [[Documentation#Multi Genome Project|Loading a Multi Genome Project]]&lt;br /&gt;
* [[Documentation#Loading a Variant Layer|Loading a Variant Layer]]&lt;br /&gt;
* [[Documentation#Variant Layer Operations|Variant Layer operations]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conversion between NCBI36/hg18 and GRCh37/hg19 ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
This tutorial will explain how to display at the same time tracks mapped on genome assembly NCBI36/hg18 or GRCh37/hg19. In the example, user will be able to see all the modifications on the NCBI36/hg18 genome leading to the GRCh37/hg19 reference genome.&lt;br /&gt;
&lt;br /&gt;
=== Files ===&lt;br /&gt;
*[http://www.genplay.net/library/Human/Multi-Genome/hg18tohg19_tutorial_settings.xml XML settings file]&lt;br /&gt;
*[http://www.genplay.net/library/Human/Multi-Genome/hg18tohg19_tutorial_sv.vcf.gz VCF file]&lt;br /&gt;
*[http://www.genplay.net/library/Human/Multi-Genome/hg18tohg19_tutorial_sv.vcf.gz.tbi Indexed VCF file (Tabix)]&lt;br /&gt;
*[http://www.genplay.net/library/Human/hg19/Gene_Annotation/RefSeq_From_UCSC_04-23-10(hg19).bed Refseq BED file for GRCh37/hg19]&lt;br /&gt;
*[http://www.genplay.net/library/Human/hg18/Gene_Annotation/RefSeq_From_UCSC_04-23-10(hg18).bed Refseq BED file for NCBI36/hg18]&lt;br /&gt;
&lt;br /&gt;
=== Steps ===&lt;br /&gt;
==== Project settings ====&lt;br /&gt;
===== Project name =====&lt;br /&gt;
User must choose a name for a new project; here the name is ''GenPlay-MG – Reference genome tutorial'' (Figure 1).&lt;br /&gt;
[[image:mg_hg18tohg19_project_name.png|center|frame|Figure 1: Project name]]&lt;br /&gt;
&lt;br /&gt;
===== Project assembly =====&lt;br /&gt;
According to bed files provided in this tutorial, the reference genome is GRCh37/hg19. User has to select the ''mammal'' clade, the ''human'' genome and the ''Feb 2009 (GRCh37/hg19)'' assembly as in Figure 2.&lt;br /&gt;
[[image:mg_hg18tohg19_project_assembly.png|center|frame|Figure 2: Project assembly]]&lt;br /&gt;
&lt;br /&gt;
===== Chromosome selection =====&lt;br /&gt;
The VCF file is about Structural Variants and contains information for chromosomes 1 to 22 and chromosomes X and Y. User can select to load on or more chromosomes by clicking on the settings button next to the assembly name (Figure 3).&lt;br /&gt;
[[image:mg_hg18tohg19_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
===== VCF Loading =====&lt;br /&gt;
'''''Manually'''''&amp;lt;br/&amp;gt; &lt;br /&gt;
To load VCF files , users must first fill the column lists and then select from the list the appropriate data. The VCF Loader appears after clicking on the ''Edit'' button from the welcome screen. The bottom left part of the VCF Loader contains the ''Column list edition'' section. User has to select a column and click on ''Edit'' button in order to show the associated list.&lt;br /&gt;
Only one VCF file is going to be loaded for this tutorial. The VCF file contains differences between the reference genome NCBI36/hg18 and the reference genome GRCh37/hg19.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Group'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
This tutorial compares reference genome; a generic group name can be ''Reference genome''.&lt;br /&gt;
On the ''Group name list editor'', user clicks on the plus button to show the input text box and fills it (Figure 4).&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Group name list editor'' should looks like the Figure 5 below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Once the values has been added to the list, it can be saved by closing the &amp;quot;Group name list editor window&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' ''' Reference genome'''&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:mg_hg18tohg19_group_input.png|Figure 4: Group name input dialog&lt;br /&gt;
image:mg_hg18tohg19_group_editor.png|Figure 5: Group name editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Genome'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
The genome name is an Alias for the selected raw name. In this tutorial, the genome name is going to be '''Hg18'''.&lt;br /&gt;
On the ''Genome name list editor'', user clicks on the plus button to invoke the input text box and fills it (Figure 6).&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Genome name list editor'' should looks like the Figure 7 below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Once the values has been added to the list, it can be saved by closing the &amp;quot;Genome name list editor window&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''Hg18'''&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:mg_hg18tohg19_genome_input.png|Figure 6: Genome name input dialog&lt;br /&gt;
image:mg_hg18tohg19_genome_editor.png|Figure 7: Genome name editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Type'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
This field cannot be edited by the users. The provided VCF file is a Structural Variant type, user therefore has to choose '''SV''' (Figure 8).&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''SV'''&lt;br /&gt;
[[image:mg_hg18tohg19_type.png|center|frame|Figure 8: VCF type list]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''File'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
Once the VCF file is downloaded, user has to open the ''File list editor'', user clicks on the plus button to show the file chooser dialog and choose the VCF file according to its location.&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''VCF path'''&lt;br /&gt;
[[image:mg_hg18tohg19_file_editor.png|center|frame|Figure 9: VCF File editor]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Raw name(s)'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
The raw name list is automatically filled. In the case of this tutorial there is only one genome: '''NCBI36''' (Figure 10).&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''NCBI36'''&lt;br /&gt;
[[image:mg_hg18tohg19_raw_name.png|center|frame|Figure 10: Raw name list]]&lt;br /&gt;
Again, value is saved by closing the windows&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''''Import XML settings'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to set the project with ease, user can import the settings using the XML file above. Please be careful about the VCF path, user must changes it directly on the xml file if he wants to use the import function.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''''Conclusion'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Finally, the screen should be like the one on Figure 11.&lt;br /&gt;
[[image:mg_hg18tohg19_vcf_loader.png|center|frame|Figure 11: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
===== Conclusion =====&lt;br /&gt;
The welcome screen should finally be similar to the Figure 12.&lt;br /&gt;
[[image:mg_hg18tohg19_welcome_screen.png|center|frame|Figure 12: Welcome screen]]&lt;br /&gt;
 &lt;br /&gt;
The &amp;quot;Create&amp;quot; button will create the project and will run the synchronization.&lt;br /&gt;
&lt;br /&gt;
==== GRCh37/hg19 genes loading ====&lt;br /&gt;
To load a file, user has to do a right click on the left part of the track. Then to choose &amp;quot;Load Gene Track&amp;quot;, a file chooser appears to select the file given in this tutorial. After having chosen the BED file, a new selection box appears (Figure 13).&lt;br /&gt;
[[image:mg_hg18tohg19_genome_selector_01.png|center|frame|Figure 13: Genome selection dialog for GRCh37/hg19 genes file]]&lt;br /&gt;
 &lt;br /&gt;
This box asks which genome is related to the BED file. Here, user has to choose &amp;quot;Feb 2009 (GFCh37/hg19)&amp;quot; option because the BED file contains information about that genome.&lt;br /&gt;
Gene file for GRCh37/hg19 reference has been loaded.&lt;br /&gt;
&lt;br /&gt;
==== NCBI36/hg18 genes loading ====&lt;br /&gt;
The same operation as loading a gene files for GRCh37/hg19 reference genome. The only step changing is to choose the &amp;quot;Reference genome - hg18 (NCBI36)&amp;quot; option after the BED file selection (Figure 14)&lt;br /&gt;
[[image:mg_hg18tohg19_genome_selector_02.png|center|frame|Figure 14: Genome selection dialog for NCBI36/hg18 genes file]]&lt;br /&gt;
 &lt;br /&gt;
==== Conclusion ====&lt;br /&gt;
User can navigate into the different chromosomes and visualizes differences between both genomes using the stripes. All genes are perfectly synchronized and are display according to the meta-genome coordinates.&lt;br /&gt;
&lt;br /&gt;
The Figure 15 shows an example of the result of this tutorial. It is possible to see deletions (in red) and insertions (in green) in the NCBI36/Hg18 reference genome compare to the GCh37/Hg19 reference genome.&amp;lt;br/&amp;gt;&lt;br /&gt;
Chromosome: ''chr1''&amp;lt;br/&amp;gt;&lt;br /&gt;
Position: ''143,822,670''&amp;lt;br/&amp;gt;&lt;br /&gt;
[[image:mg_hg18tohg19_genplay_gene_example.png|center|thumb|800px|Figure 14: GenPlay-MG (chr1:143,822,670)]]&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Multi-Genome_Tutorial&amp;diff=1637</id>
		<title>Multi-Genome Tutorial</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Multi-Genome_Tutorial&amp;diff=1637"/>
				<updated>2013-10-11T19:32:11Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
In order to set up and manage a Multi-Genome Project in Genplay, please refer to the following sections of the documentation:&lt;br /&gt;
* [[Documentation#Multi Genome Project|Loading a Multi Genome Project]]&lt;br /&gt;
* [[Documentation#Loading a Variant Layer|Loading a Variant Layer]]&lt;br /&gt;
* [[Documentation#Variant Layer Operations|Variant Layer operations]]&lt;br /&gt;
&lt;br /&gt;
== Conversion between NCBI36/hg18 and GRCh37/hg19 ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
This tutorial will explain how to display at the same time tracks mapped on genome assembly NCBI36/hg18 or GRCh37/hg19. In the example, user will be able to see all the modifications on the NCBI36/hg18 genome leading to the GRCh37/hg19 reference genome.&lt;br /&gt;
&lt;br /&gt;
=== Files ===&lt;br /&gt;
*[http://www.genplay.net/library/Human/Multi-Genome/hg18tohg19_tutorial_settings.xml XML settings file]&lt;br /&gt;
*[http://www.genplay.net/library/Human/Multi-Genome/hg18tohg19_tutorial_sv.vcf.gz VCF file]&lt;br /&gt;
*[http://www.genplay.net/library/Human/Multi-Genome/hg18tohg19_tutorial_sv.vcf.gz.tbi Indexed VCF file (Tabix)]&lt;br /&gt;
*[http://www.genplay.net/library/Human/hg19/Gene_Annotation/RefSeq_From_UCSC_04-23-10(hg19).bed Refseq BED file for GRCh37/hg19]&lt;br /&gt;
*[http://www.genplay.net/library/Human/hg18/Gene_Annotation/RefSeq_From_UCSC_04-23-10(hg18).bed Refseq BED file for NCBI36/hg18]&lt;br /&gt;
&lt;br /&gt;
=== Steps ===&lt;br /&gt;
==== Project settings ====&lt;br /&gt;
===== Project name =====&lt;br /&gt;
User must choose a name for a new project; here the name is ''GenPlay-MG – Reference genome tutorial'' (Figure 1).&lt;br /&gt;
[[image:mg_hg18tohg19_project_name.png|center|frame|Figure 1: Project name]]&lt;br /&gt;
&lt;br /&gt;
===== Project assembly =====&lt;br /&gt;
According to bed files provided in this tutorial, the reference genome is GRCh37/hg19. User has to select the ''mammal'' clade, the ''human'' genome and the ''Feb 2009 (GRCh37/hg19)'' assembly as in Figure 2.&lt;br /&gt;
[[image:mg_hg18tohg19_project_assembly.png|center|frame|Figure 2: Project assembly]]&lt;br /&gt;
&lt;br /&gt;
===== Chromosome selection =====&lt;br /&gt;
The VCF file is about Structural Variants and contains information for chromosomes 1 to 22 and chromosomes X and Y. User can select to load on or more chromosomes by clicking on the settings button next to the assembly name (Figure 3).&lt;br /&gt;
[[image:mg_hg18tohg19_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
===== VCF Loading =====&lt;br /&gt;
'''''Manually'''''&amp;lt;br/&amp;gt; &lt;br /&gt;
To load VCF files , users must first fill the column lists and then select from the list the appropriate data. The VCF Loader appears after clicking on the ''Edit'' button from the welcome screen. The bottom left part of the VCF Loader contains the ''Column list edition'' section. User has to select a column and click on ''Edit'' button in order to show the associated list.&lt;br /&gt;
Only one VCF file is going to be loaded for this tutorial. The VCF file contains differences between the reference genome NCBI36/hg18 and the reference genome GRCh37/hg19.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Group'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
This tutorial compares reference genome; a generic group name can be ''Reference genome''.&lt;br /&gt;
On the ''Group name list editor'', user clicks on the plus button to show the input text box and fills it (Figure 4).&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Group name list editor'' should looks like the Figure 5 below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Once the values has been added to the list, it can be saved by closing the &amp;quot;Group name list editor window&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' ''' Reference genome'''&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:mg_hg18tohg19_group_input.png|Figure 4: Group name input dialog&lt;br /&gt;
image:mg_hg18tohg19_group_editor.png|Figure 5: Group name editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Genome'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
The genome name is an Alias for the selected raw name. In this tutorial, the genome name is going to be '''Hg18'''.&lt;br /&gt;
On the ''Genome name list editor'', user clicks on the plus button to invoke the input text box and fills it (Figure 6).&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Genome name list editor'' should looks like the Figure 7 below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Once the values has been added to the list, it can be saved by closing the &amp;quot;Genome name list editor window&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''Hg18'''&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:mg_hg18tohg19_genome_input.png|Figure 6: Genome name input dialog&lt;br /&gt;
image:mg_hg18tohg19_genome_editor.png|Figure 7: Genome name editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Type'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
This field cannot be edited by the users. The provided VCF file is a Structural Variant type, user therefore has to choose '''SV''' (Figure 8).&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''SV'''&lt;br /&gt;
[[image:mg_hg18tohg19_type.png|center|frame|Figure 8: VCF type list]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''File'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
Once the VCF file is downloaded, user has to open the ''File list editor'', user clicks on the plus button to show the file chooser dialog and choose the VCF file according to its location.&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''VCF path'''&lt;br /&gt;
[[image:mg_hg18tohg19_file_editor.png|center|frame|Figure 9: VCF File editor]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Raw name(s)'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
The raw name list is automatically filled. In the case of this tutorial there is only one genome: '''NCBI36''' (Figure 10).&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''NCBI36'''&lt;br /&gt;
[[image:mg_hg18tohg19_raw_name.png|center|frame|Figure 10: Raw name list]]&lt;br /&gt;
Again, value is saved by closing the windows&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''''Import XML settings'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to set the project with ease, user can import the settings using the XML file above. Please be careful about the VCF path, user must changes it directly on the xml file if he wants to use the import function.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''''Conclusion'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Finally, the screen should be like the one on Figure 11.&lt;br /&gt;
[[image:mg_hg18tohg19_vcf_loader.png|center|frame|Figure 11: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
===== Conclusion =====&lt;br /&gt;
The welcome screen should finally be similar to the Figure 12.&lt;br /&gt;
[[image:mg_hg18tohg19_welcome_screen.png|center|frame|Figure 12: Welcome screen]]&lt;br /&gt;
 &lt;br /&gt;
The &amp;quot;Create&amp;quot; button will create the project and will run the synchronization.&lt;br /&gt;
&lt;br /&gt;
==== GRCh37/hg19 genes loading ====&lt;br /&gt;
To load a file, user has to do a right click on the left part of the track. Then to choose &amp;quot;Load Gene Track&amp;quot;, a file chooser appears to select the file given in this tutorial. After having chosen the BED file, a new selection box appears (Figure 13).&lt;br /&gt;
[[image:mg_hg18tohg19_genome_selector_01.png|center|frame|Figure 13: Genome selection dialog for GRCh37/hg19 genes file]]&lt;br /&gt;
 &lt;br /&gt;
This box asks which genome is related to the BED file. Here, user has to choose &amp;quot;Feb 2009 (GFCh37/hg19)&amp;quot; option because the BED file contains information about that genome.&lt;br /&gt;
Gene file for GRCh37/hg19 reference has been loaded.&lt;br /&gt;
&lt;br /&gt;
==== NCBI36/hg18 genes loading ====&lt;br /&gt;
The same operation as loading a gene files for GRCh37/hg19 reference genome. The only step changing is to choose the &amp;quot;Reference genome - hg18 (NCBI36)&amp;quot; option after the BED file selection (Figure 14)&lt;br /&gt;
[[image:mg_hg18tohg19_genome_selector_02.png|center|frame|Figure 14: Genome selection dialog for NCBI36/hg18 genes file]]&lt;br /&gt;
 &lt;br /&gt;
==== Conclusion ====&lt;br /&gt;
User can navigate into the different chromosomes and visualizes differences between both genomes using the stripes. All genes are perfectly synchronized and are display according to the meta-genome coordinates.&lt;br /&gt;
&lt;br /&gt;
The Figure 15 shows an example of the result of this tutorial. It is possible to see deletions (in red) and insertions (in green) in the NCBI36/Hg18 reference genome compare to the GCh37/Hg19 reference genome.&amp;lt;br/&amp;gt;&lt;br /&gt;
Chromosome: ''chr1''&amp;lt;br/&amp;gt;&lt;br /&gt;
Position: ''143,822,670''&amp;lt;br/&amp;gt;&lt;br /&gt;
[[image:mg_hg18tohg19_genplay_gene_example.png|center|thumb|800px|Figure 14: GenPlay-MG (chr1:143,822,670)]]&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Multi-Genome_Tutorial&amp;diff=1636</id>
		<title>Multi-Genome Tutorial</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Multi-Genome_Tutorial&amp;diff=1636"/>
				<updated>2013-10-11T19:31:44Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Getting started */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to set up and manage a Multi-Genome Project in Genplay, please refer to the following sections of the documentation:&lt;br /&gt;
* [[Documentation#Multi Genome Project|Loading a Multi Genome Project]]&lt;br /&gt;
* [[Documentation#Loading a Variant Layer|Loading a Variant Layer]]&lt;br /&gt;
* [[Documentation#Variant Layer Operations|Variant Layer operations]]&lt;br /&gt;
&lt;br /&gt;
== Conversion between NCBI36/hg18 and GRCh37/hg19 ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
This tutorial will explain how to display at the same time tracks mapped on genome assembly NCBI36/hg18 or GRCh37/hg19. In the example, user will be able to see all the modifications on the NCBI36/hg18 genome leading to the GRCh37/hg19 reference genome.&lt;br /&gt;
&lt;br /&gt;
=== Files ===&lt;br /&gt;
*[http://www.genplay.net/library/Human/Multi-Genome/hg18tohg19_tutorial_settings.xml XML settings file]&lt;br /&gt;
*[http://www.genplay.net/library/Human/Multi-Genome/hg18tohg19_tutorial_sv.vcf.gz VCF file]&lt;br /&gt;
*[http://www.genplay.net/library/Human/Multi-Genome/hg18tohg19_tutorial_sv.vcf.gz.tbi Indexed VCF file (Tabix)]&lt;br /&gt;
*[http://www.genplay.net/library/Human/hg19/Gene_Annotation/RefSeq_From_UCSC_04-23-10(hg19).bed Refseq BED file for GRCh37/hg19]&lt;br /&gt;
*[http://www.genplay.net/library/Human/hg18/Gene_Annotation/RefSeq_From_UCSC_04-23-10(hg18).bed Refseq BED file for NCBI36/hg18]&lt;br /&gt;
&lt;br /&gt;
=== Steps ===&lt;br /&gt;
==== Project settings ====&lt;br /&gt;
===== Project name =====&lt;br /&gt;
User must choose a name for a new project; here the name is ''GenPlay-MG – Reference genome tutorial'' (Figure 1).&lt;br /&gt;
[[image:mg_hg18tohg19_project_name.png|center|frame|Figure 1: Project name]]&lt;br /&gt;
&lt;br /&gt;
===== Project assembly =====&lt;br /&gt;
According to bed files provided in this tutorial, the reference genome is GRCh37/hg19. User has to select the ''mammal'' clade, the ''human'' genome and the ''Feb 2009 (GRCh37/hg19)'' assembly as in Figure 2.&lt;br /&gt;
[[image:mg_hg18tohg19_project_assembly.png|center|frame|Figure 2: Project assembly]]&lt;br /&gt;
&lt;br /&gt;
===== Chromosome selection =====&lt;br /&gt;
The VCF file is about Structural Variants and contains information for chromosomes 1 to 22 and chromosomes X and Y. User can select to load on or more chromosomes by clicking on the settings button next to the assembly name (Figure 3).&lt;br /&gt;
[[image:mg_hg18tohg19_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
===== VCF Loading =====&lt;br /&gt;
'''''Manually'''''&amp;lt;br/&amp;gt; &lt;br /&gt;
To load VCF files , users must first fill the column lists and then select from the list the appropriate data. The VCF Loader appears after clicking on the ''Edit'' button from the welcome screen. The bottom left part of the VCF Loader contains the ''Column list edition'' section. User has to select a column and click on ''Edit'' button in order to show the associated list.&lt;br /&gt;
Only one VCF file is going to be loaded for this tutorial. The VCF file contains differences between the reference genome NCBI36/hg18 and the reference genome GRCh37/hg19.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Group'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
This tutorial compares reference genome; a generic group name can be ''Reference genome''.&lt;br /&gt;
On the ''Group name list editor'', user clicks on the plus button to show the input text box and fills it (Figure 4).&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Group name list editor'' should looks like the Figure 5 below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Once the values has been added to the list, it can be saved by closing the &amp;quot;Group name list editor window&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' ''' Reference genome'''&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:mg_hg18tohg19_group_input.png|Figure 4: Group name input dialog&lt;br /&gt;
image:mg_hg18tohg19_group_editor.png|Figure 5: Group name editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Genome'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
The genome name is an Alias for the selected raw name. In this tutorial, the genome name is going to be '''Hg18'''.&lt;br /&gt;
On the ''Genome name list editor'', user clicks on the plus button to invoke the input text box and fills it (Figure 6).&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Genome name list editor'' should looks like the Figure 7 below.&amp;lt;br/&amp;gt;&lt;br /&gt;
Once the values has been added to the list, it can be saved by closing the &amp;quot;Genome name list editor window&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''Hg18'''&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:mg_hg18tohg19_genome_input.png|Figure 6: Genome name input dialog&lt;br /&gt;
image:mg_hg18tohg19_genome_editor.png|Figure 7: Genome name editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Type'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
This field cannot be edited by the users. The provided VCF file is a Structural Variant type, user therefore has to choose '''SV''' (Figure 8).&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''SV'''&lt;br /&gt;
[[image:mg_hg18tohg19_type.png|center|frame|Figure 8: VCF type list]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''File'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
Once the VCF file is downloaded, user has to open the ''File list editor'', user clicks on the plus button to show the file chooser dialog and choose the VCF file according to its location.&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''VCF path'''&lt;br /&gt;
[[image:mg_hg18tohg19_file_editor.png|center|frame|Figure 9: VCF File editor]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Raw name(s)'' column&amp;lt;br/&amp;gt;&lt;br /&gt;
The raw name list is automatically filled. In the case of this tutorial there is only one genome: '''NCBI36''' (Figure 10).&amp;lt;br/&amp;gt;&lt;br /&gt;
''value:'' '''NCBI36'''&lt;br /&gt;
[[image:mg_hg18tohg19_raw_name.png|center|frame|Figure 10: Raw name list]]&lt;br /&gt;
Again, value is saved by closing the windows&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''''Import XML settings'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to set the project with ease, user can import the settings using the XML file above. Please be careful about the VCF path, user must changes it directly on the xml file if he wants to use the import function.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''''Conclusion'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Finally, the screen should be like the one on Figure 11.&lt;br /&gt;
[[image:mg_hg18tohg19_vcf_loader.png|center|frame|Figure 11: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
===== Conclusion =====&lt;br /&gt;
The welcome screen should finally be similar to the Figure 12.&lt;br /&gt;
[[image:mg_hg18tohg19_welcome_screen.png|center|frame|Figure 12: Welcome screen]]&lt;br /&gt;
 &lt;br /&gt;
The &amp;quot;Create&amp;quot; button will create the project and will run the synchronization.&lt;br /&gt;
&lt;br /&gt;
==== GRCh37/hg19 genes loading ====&lt;br /&gt;
To load a file, user has to do a right click on the left part of the track. Then to choose &amp;quot;Load Gene Track&amp;quot;, a file chooser appears to select the file given in this tutorial. After having chosen the BED file, a new selection box appears (Figure 13).&lt;br /&gt;
[[image:mg_hg18tohg19_genome_selector_01.png|center|frame|Figure 13: Genome selection dialog for GRCh37/hg19 genes file]]&lt;br /&gt;
 &lt;br /&gt;
This box asks which genome is related to the BED file. Here, user has to choose &amp;quot;Feb 2009 (GFCh37/hg19)&amp;quot; option because the BED file contains information about that genome.&lt;br /&gt;
Gene file for GRCh37/hg19 reference has been loaded.&lt;br /&gt;
&lt;br /&gt;
==== NCBI36/hg18 genes loading ====&lt;br /&gt;
The same operation as loading a gene files for GRCh37/hg19 reference genome. The only step changing is to choose the &amp;quot;Reference genome - hg18 (NCBI36)&amp;quot; option after the BED file selection (Figure 14)&lt;br /&gt;
[[image:mg_hg18tohg19_genome_selector_02.png|center|frame|Figure 14: Genome selection dialog for NCBI36/hg18 genes file]]&lt;br /&gt;
 &lt;br /&gt;
==== Conclusion ====&lt;br /&gt;
User can navigate into the different chromosomes and visualizes differences between both genomes using the stripes. All genes are perfectly synchronized and are display according to the meta-genome coordinates.&lt;br /&gt;
&lt;br /&gt;
The Figure 15 shows an example of the result of this tutorial. It is possible to see deletions (in red) and insertions (in green) in the NCBI36/Hg18 reference genome compare to the GCh37/Hg19 reference genome.&amp;lt;br/&amp;gt;&lt;br /&gt;
Chromosome: ''chr1''&amp;lt;br/&amp;gt;&lt;br /&gt;
Position: ''143,822,670''&amp;lt;br/&amp;gt;&lt;br /&gt;
[[image:mg_hg18tohg19_genplay_gene_example.png|center|thumb|800px|Figure 14: GenPlay-MG (chr1:143,822,670)]]&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1635</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1635"/>
				<updated>2013-10-11T19:23:46Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Loading a Mask Layer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
==== Add a Variant Layer ====&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
==== Multi-Genome Features ====&lt;br /&gt;
===== Select Coordinate System =====&lt;br /&gt;
[[image:mg_coordinate_chooser.png|left|thumb|150px|Coordinate System chooser]]&lt;br /&gt;
The coordinate system of GenPlay can be changed by selecting one on the list located on the bottom right of the main frame. The default system is the one of the Meta Genome; the Reference Genome coordinate system is also available. The user can also choose the one of any of the loaded genome. This does not affect operation, only the red position numbers on the top of the frame as well as the position search bar on the bottom.&lt;br /&gt;
===== Multi-Genome Project Properties =====&lt;br /&gt;
[[image:mg_option_button.png|right|thumb|200px|Properties Dialog Button]]&lt;br /&gt;
In Multi-Genome Projects only, a new button appears on the bottom left of the frame. This button leads to the Multi-Genome Project Properties dialog allowing the user to visualize and handle the project settings. Right-clicking on the button opens a contextual menu offering shortcuts to the different sections of the properties dialog.&lt;br /&gt;
====== General ======&lt;br /&gt;
[[image:mg_general.png|right|thumb|300px|General Section]]&lt;br /&gt;
The General section is an overview of how the project has been loaded. Projects can be very complex, using many files and samples. This section reminds the user how the project has been set up.&lt;br /&gt;
====== Settings ======&lt;br /&gt;
[[image:mg_settings.png|right|thumb|300px|Settings Section]]&lt;br /&gt;
The Settings section lets the user choose how to handle multi-genome various options.&lt;br /&gt;
* Properties Dialog&lt;br /&gt;
** Default section to open: the default section of the Multi-Genome Project Properties dialog to open when clicking the button.&lt;br /&gt;
* VCF Loader&lt;br /&gt;
** Default group text name: Default name for groups.&lt;br /&gt;
* Stripes transparency: Sets the transparency of stripes reprensenting variations.&lt;br /&gt;
* Global display settings&lt;br /&gt;
** Show legend: Allow to show the enabled variations and their colors into the track layer.&lt;br /&gt;
* Variant stripes settings&lt;br /&gt;
** Show filtered variation: Filtered variations can be shown but will be represented with a cross over their stripes.&lt;br /&gt;
** Show border of insertion: Insertion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show border of deletion: Deletion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show nucleotides of insertion stripes: Added nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of deletion stripes: Deleted nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of SNP stripes: SNP nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
* Reference stripes settings&lt;br /&gt;
** Show reference stripes: Stripes representing the reference genome can be either shown or hidden.&lt;br /&gt;
** Reference stripes color: Defines a color for reference stripes.&lt;br /&gt;
====== Files ======&lt;br /&gt;
The Files section lists all the VCF files loaded into GenPlay. Their information are separated into two categories:&lt;br /&gt;
* Information: the information part shows the name and the location of the file. It also segments the header of the VCF file for an easy reading and interpretation.&lt;br /&gt;
* Statistics: This part gives various descriptive statistics of the file and for each sample. All tables can be copied and pasted as regular text tab-delimited.&lt;br /&gt;
&amp;lt;gallery widths=350px height=150px perrow=2&amp;gt;&lt;br /&gt;
image:mg_file_info.png|File Information&lt;br /&gt;
image:mg_file_stat.png|File Statistics&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
====== Filters ======&lt;br /&gt;
The filters section is covered in the [[#Filters|section below]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
==== Edit Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Edit Variant Layer Dialog]]&lt;br /&gt;
This feature will popup the same window used to load the Variant Layer offering the possibility to change the variation types to show.&lt;br /&gt;
==== Generate track statistics ====&lt;br /&gt;
This operations generates various statistics about loaded information.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also compares these statistics before and after applying any filters in order to see their effects.&lt;br /&gt;
==== Filters ====&lt;br /&gt;
Filters can be applied on Variant Layers, they interact directly on data found in the VCF in order to select on data of interest.&lt;br /&gt;
All filters are set in the Filters section of the Multi-Genome Project Properties dialog. &amp;lt;br /&amp;gt;&lt;br /&gt;
Simply click on &amp;quot;Add&amp;quot; in order to create a new filter. As shown below, a new window appears to define the filter.&lt;br /&gt;
[[image:mg_filter_selection.png|center|thumb|800px|Filter selection dialog]]&lt;br /&gt;
* Layer(s): The layers affected by the filter.&lt;br /&gt;
* File: A filter is also file specific, if data to filter are separated over different files, several filters must be created.&lt;br /&gt;
* ID: A filter can be set on any ID defined on the header of the VCF. IDs can be of different types which affects the selection of the next steps.&lt;br /&gt;
* Genome(s): Any &amp;quot;FORMAT&amp;quot; ID will require to know which genome(s) is/are concerned by the filter.&lt;br /&gt;
* Operator: If more than one genome has been selected in the previous step, the operator will decide how the result from each genome will be processed in order to have a result for the whole line.&lt;br /&gt;
** And: The selected ID value from each genome must pass the filter.&lt;br /&gt;
** Or: At least one selected ID value must pass the filter.&lt;br /&gt;
** Sum: If the selected ID value is an integer, the sum value from each genome will be filtered.&lt;br /&gt;
** Mean: If the selected ID value is an integer, the mean value from all genomes will be filtered.&lt;br /&gt;
* Filter: This filter panel will change according to the selected ID type.&lt;br /&gt;
** String: The input value will be tested and the user has to choose if the value must be present or must not be present in the ID value.&lt;br /&gt;
** Number: The ID value is here tested using one of the given numeric operator against an input value. The ID value can also be tested against two input value using the secong part of the filter, the user then has to choose how both filters are handled.&lt;br /&gt;
** Flag: When the ID value is a flag, it reacts as boolean, meaning the value is here, or is not.&lt;br /&gt;
** Genotype: The genotype ID has a special filter editor in order to set it up more easily. The regular string editor can be found below. The genotype can be homozygote/heterofygote/phased/unphased.&lt;br /&gt;
&amp;lt;gallery widths=160px heights=160px perrow=4&amp;gt;&lt;br /&gt;
image:mg_filter_string.png|String Editor&lt;br /&gt;
image:mg_filter_number.png|Number Editor&lt;br /&gt;
image:mg_filter_flag.png|Flag Editor&lt;br /&gt;
image:mg_filter_genotype.png|Genotype Special Editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Export as VCF ====&lt;br /&gt;
This operation exports all visible variations of the layer into a new VCF file. It includes filters meaning that it exports what can be seen on the layer.&lt;br /&gt;
==== Convert into variable window track ====&lt;br /&gt;
This operation converts the Variant Layer into a Microarray/Sequencing Layer. The new windows match the positions of the variation stripes. The score of the new windows can be set to any integer value present into the VCF lines. For haploid genomes, only one layer will be generated. For diploid genomes, the maternal and paternal alleles will be generated over two different layers.&lt;br /&gt;
==== Apply Genotype ====&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1634</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1634"/>
				<updated>2013-10-11T19:23:18Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Loading a Variant Layer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
[[image:Stripes.png|right|thumb|200px|CPG Islands Shown As Stripes On a Refseq Gene Layer]]&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
==== Add a Variant Layer ====&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
==== Multi-Genome Features ====&lt;br /&gt;
===== Select Coordinate System =====&lt;br /&gt;
[[image:mg_coordinate_chooser.png|left|thumb|150px|Coordinate System chooser]]&lt;br /&gt;
The coordinate system of GenPlay can be changed by selecting one on the list located on the bottom right of the main frame. The default system is the one of the Meta Genome; the Reference Genome coordinate system is also available. The user can also choose the one of any of the loaded genome. This does not affect operation, only the red position numbers on the top of the frame as well as the position search bar on the bottom.&lt;br /&gt;
===== Multi-Genome Project Properties =====&lt;br /&gt;
[[image:mg_option_button.png|right|thumb|200px|Properties Dialog Button]]&lt;br /&gt;
In Multi-Genome Projects only, a new button appears on the bottom left of the frame. This button leads to the Multi-Genome Project Properties dialog allowing the user to visualize and handle the project settings. Right-clicking on the button opens a contextual menu offering shortcuts to the different sections of the properties dialog.&lt;br /&gt;
====== General ======&lt;br /&gt;
[[image:mg_general.png|right|thumb|300px|General Section]]&lt;br /&gt;
The General section is an overview of how the project has been loaded. Projects can be very complex, using many files and samples. This section reminds the user how the project has been set up.&lt;br /&gt;
====== Settings ======&lt;br /&gt;
[[image:mg_settings.png|right|thumb|300px|Settings Section]]&lt;br /&gt;
The Settings section lets the user choose how to handle multi-genome various options.&lt;br /&gt;
* Properties Dialog&lt;br /&gt;
** Default section to open: the default section of the Multi-Genome Project Properties dialog to open when clicking the button.&lt;br /&gt;
* VCF Loader&lt;br /&gt;
** Default group text name: Default name for groups.&lt;br /&gt;
* Stripes transparency: Sets the transparency of stripes reprensenting variations.&lt;br /&gt;
* Global display settings&lt;br /&gt;
** Show legend: Allow to show the enabled variations and their colors into the track layer.&lt;br /&gt;
* Variant stripes settings&lt;br /&gt;
** Show filtered variation: Filtered variations can be shown but will be represented with a cross over their stripes.&lt;br /&gt;
** Show border of insertion: Insertion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show border of deletion: Deletion stripes have a specific border, it may help to recognize them easily when many layers are loaded, independantly of the color.&lt;br /&gt;
** Show nucleotides of insertion stripes: Added nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of deletion stripes: Deleted nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
** Show nucleotides of SNP stripes: SNP nucleotides will be retrieved from the VCF files if possible.&lt;br /&gt;
* Reference stripes settings&lt;br /&gt;
** Show reference stripes: Stripes representing the reference genome can be either shown or hidden.&lt;br /&gt;
** Reference stripes color: Defines a color for reference stripes.&lt;br /&gt;
====== Files ======&lt;br /&gt;
The Files section lists all the VCF files loaded into GenPlay. Their information are separated into two categories:&lt;br /&gt;
* Information: the information part shows the name and the location of the file. It also segments the header of the VCF file for an easy reading and interpretation.&lt;br /&gt;
* Statistics: This part gives various descriptive statistics of the file and for each sample. All tables can be copied and pasted as regular text tab-delimited.&lt;br /&gt;
&amp;lt;gallery widths=350px height=150px perrow=2&amp;gt;&lt;br /&gt;
image:mg_file_info.png|File Information&lt;br /&gt;
image:mg_file_stat.png|File Statistics&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
====== Filters ======&lt;br /&gt;
The filters section is covered in the [[#Filters|section below]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
==== Edit Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Edit Variant Layer Dialog]]&lt;br /&gt;
This feature will popup the same window used to load the Variant Layer offering the possibility to change the variation types to show.&lt;br /&gt;
==== Generate track statistics ====&lt;br /&gt;
This operations generates various statistics about loaded information.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also compares these statistics before and after applying any filters in order to see their effects.&lt;br /&gt;
==== Filters ====&lt;br /&gt;
Filters can be applied on Variant Layers, they interact directly on data found in the VCF in order to select on data of interest.&lt;br /&gt;
All filters are set in the Filters section of the Multi-Genome Project Properties dialog. &amp;lt;br /&amp;gt;&lt;br /&gt;
Simply click on &amp;quot;Add&amp;quot; in order to create a new filter. As shown below, a new window appears to define the filter.&lt;br /&gt;
[[image:mg_filter_selection.png|center|thumb|800px|Filter selection dialog]]&lt;br /&gt;
* Layer(s): The layers affected by the filter.&lt;br /&gt;
* File: A filter is also file specific, if data to filter are separated over different files, several filters must be created.&lt;br /&gt;
* ID: A filter can be set on any ID defined on the header of the VCF. IDs can be of different types which affects the selection of the next steps.&lt;br /&gt;
* Genome(s): Any &amp;quot;FORMAT&amp;quot; ID will require to know which genome(s) is/are concerned by the filter.&lt;br /&gt;
* Operator: If more than one genome has been selected in the previous step, the operator will decide how the result from each genome will be processed in order to have a result for the whole line.&lt;br /&gt;
** And: The selected ID value from each genome must pass the filter.&lt;br /&gt;
** Or: At least one selected ID value must pass the filter.&lt;br /&gt;
** Sum: If the selected ID value is an integer, the sum value from each genome will be filtered.&lt;br /&gt;
** Mean: If the selected ID value is an integer, the mean value from all genomes will be filtered.&lt;br /&gt;
* Filter: This filter panel will change according to the selected ID type.&lt;br /&gt;
** String: The input value will be tested and the user has to choose if the value must be present or must not be present in the ID value.&lt;br /&gt;
** Number: The ID value is here tested using one of the given numeric operator against an input value. The ID value can also be tested against two input value using the secong part of the filter, the user then has to choose how both filters are handled.&lt;br /&gt;
** Flag: When the ID value is a flag, it reacts as boolean, meaning the value is here, or is not.&lt;br /&gt;
** Genotype: The genotype ID has a special filter editor in order to set it up more easily. The regular string editor can be found below. The genotype can be homozygote/heterofygote/phased/unphased.&lt;br /&gt;
&amp;lt;gallery widths=160px heights=160px perrow=4&amp;gt;&lt;br /&gt;
image:mg_filter_string.png|String Editor&lt;br /&gt;
image:mg_filter_number.png|Number Editor&lt;br /&gt;
image:mg_filter_flag.png|Flag Editor&lt;br /&gt;
image:mg_filter_genotype.png|Genotype Special Editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Export as VCF ====&lt;br /&gt;
This operation exports all visible variations of the layer into a new VCF file. It includes filters meaning that it exports what can be seen on the layer.&lt;br /&gt;
==== Convert into variable window track ====&lt;br /&gt;
This operation converts the Variant Layer into a Microarray/Sequencing Layer. The new windows match the positions of the variation stripes. The score of the new windows can be set to any integer value present into the VCF lines. For haploid genomes, only one layer will be generated. For diploid genomes, the maternal and paternal alleles will be generated over two different layers.&lt;br /&gt;
==== Apply Genotype ====&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1633</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1633"/>
				<updated>2013-10-10T21:18:14Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Loading a Variant Layer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
[[image:Stripes.png|right|thumb|200px|CPG Islands Shown As Stripes On a Refseq Gene Layer]]&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
==== Add a Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
==== Multi-Genome Features ====&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
===== Select Coordinate System =====&lt;br /&gt;
[[image:mg_coordinate_chooser.png|right|thumb|150px|]]&lt;br /&gt;
===== Multi-Genome Project Properties =====&lt;br /&gt;
[[image:mg_option_button.png|center|thumb|200px|]]&lt;br /&gt;
====== General ======&lt;br /&gt;
[[image:mg_general.png|right|thumb|300px|]]&lt;br /&gt;
====== Settings ======&lt;br /&gt;
[[image:mg_settings.png|right|thumb|300px|]]&lt;br /&gt;
====== Files ======&lt;br /&gt;
[[image:mg_file_info.png|right|thumb|300px|]]&lt;br /&gt;
[[image:mg_file_stat.png|right|thumb|300px|]]&lt;br /&gt;
====== Filters ======&lt;br /&gt;
The filters section is covered in the [[#Filters|section below]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
==== Edit Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Edit Variant Layer Dialog]]&lt;br /&gt;
This feature will popup the same window used to load the Variant Layer offering the possibility to change the variation types to show.&lt;br /&gt;
==== Generate track statistics ====&lt;br /&gt;
This operations generates various statistics about loaded information.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also compares these statistics before and after applying any filters in order to see their effects.&lt;br /&gt;
==== Filters ====&lt;br /&gt;
Filters can be applied on Variant Layers, they interact directly on data found in the VCF in order to select on data of interest.&lt;br /&gt;
All filters are set in the Filters section of the Multi-Genome Project Properties dialog. &amp;lt;br /&amp;gt;&lt;br /&gt;
Simply click on &amp;quot;Add&amp;quot; in order to create a new filter. As shown below, a new window appears to define the filter.&lt;br /&gt;
[[image:mg_filter_selection.png|center|thumb|800px|Filter selection dialog]]&lt;br /&gt;
* Layer(s): The layers affected by the filter.&lt;br /&gt;
* File: A filter is also file specific, if data to filter are separated over different files, several filters must be created.&lt;br /&gt;
* ID: A filter can be set on any ID defined on the header of the VCF. IDs can be of different types which affects the selection of the next steps.&lt;br /&gt;
* Genome(s): Any &amp;quot;FORMAT&amp;quot; ID will require to know which genome(s) is/are concerned by the filter.&lt;br /&gt;
* Operator: If more than one genome has been selected in the previous step, the operator will decide how the result from each genome will be processed in order to have a result for the whole line.&lt;br /&gt;
** And: The selected ID value from each genome must pass the filter.&lt;br /&gt;
** Or: At least one selected ID value must pass the filter.&lt;br /&gt;
** Sum: If the selected ID value is an integer, the sum value from each genome will be filtered.&lt;br /&gt;
** Mean: If the selected ID value is an integer, the mean value from all genomes will be filtered.&lt;br /&gt;
* Filter: This filter panel will change according to the selected ID type.&lt;br /&gt;
** String: The input value will be tested and the user has to choose if the value must be present or must not be present in the ID value.&lt;br /&gt;
** Number: The ID value is here tested using one of the given numeric operator against an input value. The ID value can also be tested against two input value using the secong part of the filter, the user then has to choose how both filters are handled.&lt;br /&gt;
** Flag: When the ID value is a flag, it reacts as boolean, meaning the value is here, or is not.&lt;br /&gt;
** Genotype: The genotype ID has a special filter editor in order to set it up more easily. The regular string editor can be found below. The genotype can be homozygote/heterofygote/phased/unphased.&lt;br /&gt;
&amp;lt;gallery widths=160px heights=160px perrow=4&amp;gt;&lt;br /&gt;
image:mg_filter_string.png|String Editor&lt;br /&gt;
image:mg_filter_number.png|Number Editor&lt;br /&gt;
image:mg_filter_flag.png|Flag Editor&lt;br /&gt;
image:mg_filter_genotype.png|Genotype Special Editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Export as VCF ====&lt;br /&gt;
This operation exports all visible variations of the layer into a new VCF file. It includes filters meaning that it exports what can be seen on the layer.&lt;br /&gt;
==== Convert into variable window track ====&lt;br /&gt;
This operation converts the Variant Layer into a Microarray/Sequencing Layer. The new windows match the positions of the variation stripes. The score of the new windows can be set to any integer value present into the VCF lines. For haploid genomes, only one layer will be generated. For diploid genomes, the maternal and paternal alleles will be generated over two different layers.&lt;br /&gt;
==== Apply Genotype ====&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_coordinate_chooser.png&amp;diff=1632</id>
		<title>File:Mg coordinate chooser.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_coordinate_chooser.png&amp;diff=1632"/>
				<updated>2013-10-10T21:16:34Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_option_button.png&amp;diff=1631</id>
		<title>File:Mg option button.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_option_button.png&amp;diff=1631"/>
				<updated>2013-10-10T21:15:40Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_file_stat.png&amp;diff=1630</id>
		<title>File:Mg file stat.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_file_stat.png&amp;diff=1630"/>
				<updated>2013-10-10T21:14:26Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_file_info.png&amp;diff=1629</id>
		<title>File:Mg file info.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_file_info.png&amp;diff=1629"/>
				<updated>2013-10-10T21:14:12Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_settings.png&amp;diff=1628</id>
		<title>File:Mg settings.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_settings.png&amp;diff=1628"/>
				<updated>2013-10-10T21:13:41Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_general.png&amp;diff=1627</id>
		<title>File:Mg general.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_general.png&amp;diff=1627"/>
				<updated>2013-10-10T21:13:01Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1626</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1626"/>
				<updated>2013-10-10T21:04:39Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Variant Layer Operations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
[[image:Stripes.png|right|thumb|200px|CPG Islands Shown As Stripes On a Refseq Gene Layer]]&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
==== Edit Variant Layer ====&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Edit Variant Layer Dialog]]&lt;br /&gt;
This feature will popup the same window used to load the Variant Layer offering the possibility to change the variation types to show.&lt;br /&gt;
==== Generate track statistics ====&lt;br /&gt;
This operations generates various statistics about loaded information.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also compares these statistics before and after applying any filters in order to see their effects.&lt;br /&gt;
==== Filters ====&lt;br /&gt;
Filters can be applied on Variant Layers, they interact directly on data found in the VCF in order to select on data of interest.&lt;br /&gt;
All filters are set in the Filters section of the Multi-Genome Project Properties dialog. &amp;lt;br /&amp;gt;&lt;br /&gt;
Simply click on &amp;quot;Add&amp;quot; in order to create a new filter. As shown below, a new window appears to define the filter.&lt;br /&gt;
[[image:mg_filter_selection.png|center|thumb|800px|Filter selection dialog]]&lt;br /&gt;
* Layer(s): The layers affected by the filter.&lt;br /&gt;
* File: A filter is also file specific, if data to filter are separated over different files, several filters must be created.&lt;br /&gt;
* ID: A filter can be set on any ID defined on the header of the VCF. IDs can be of different types which affects the selection of the next steps.&lt;br /&gt;
* Genome(s): Any &amp;quot;FORMAT&amp;quot; ID will require to know which genome(s) is/are concerned by the filter.&lt;br /&gt;
* Operator: If more than one genome has been selected in the previous step, the operator will decide how the result from each genome will be processed in order to have a result for the whole line.&lt;br /&gt;
** And: The selected ID value from each genome must pass the filter.&lt;br /&gt;
** Or: At least one selected ID value must pass the filter.&lt;br /&gt;
** Sum: If the selected ID value is an integer, the sum value from each genome will be filtered.&lt;br /&gt;
** Mean: If the selected ID value is an integer, the mean value from all genomes will be filtered.&lt;br /&gt;
* Filter: This filter panel will change according to the selected ID type.&lt;br /&gt;
** String: The input value will be tested and the user has to choose if the value must be present or must not be present in the ID value.&lt;br /&gt;
** Number: The ID value is here tested using one of the given numeric operator against an input value. The ID value can also be tested against two input value using the secong part of the filter, the user then has to choose how both filters are handled.&lt;br /&gt;
** Flag: When the ID value is a flag, it reacts as boolean, meaning the value is here, or is not.&lt;br /&gt;
** Genotype: The genotype ID has a special filter editor in order to set it up more easily. The regular string editor can be found below. The genotype can be homozygote/heterofygote/phased/unphased.&lt;br /&gt;
&amp;lt;gallery widths=160px heights=160px perrow=4&amp;gt;&lt;br /&gt;
image:mg_filter_string.png|String Editor&lt;br /&gt;
image:mg_filter_number.png|Number Editor&lt;br /&gt;
image:mg_filter_flag.png|Flag Editor&lt;br /&gt;
image:mg_filter_genotype.png|Genotype Special Editor&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Export as VCF ====&lt;br /&gt;
This operation exports all visible variations of the layer into a new VCF file. It includes filters meaning that it exports what can be seen on the layer.&lt;br /&gt;
==== Convert into variable window track ====&lt;br /&gt;
This operation converts the Variant Layer into a Microarray/Sequencing Layer. The new windows match the positions of the variation stripes. The score of the new windows can be set to any integer value present into the VCF lines. For haploid genomes, only one layer will be generated. For diploid genomes, the maternal and paternal alleles will be generated over two different layers.&lt;br /&gt;
==== Apply Genotype ====&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_filter_selection.png&amp;diff=1625</id>
		<title>File:Mg filter selection.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_filter_selection.png&amp;diff=1625"/>
				<updated>2013-10-10T20:57:42Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_filter_genotype.png&amp;diff=1624</id>
		<title>File:Mg filter genotype.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_filter_genotype.png&amp;diff=1624"/>
				<updated>2013-10-10T20:54:33Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_filter_flag.png&amp;diff=1623</id>
		<title>File:Mg filter flag.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_filter_flag.png&amp;diff=1623"/>
				<updated>2013-10-10T20:54:21Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_filter_number.png&amp;diff=1622</id>
		<title>File:Mg filter number.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_filter_number.png&amp;diff=1622"/>
				<updated>2013-10-10T20:54:09Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Mg_filter_string.png&amp;diff=1621</id>
		<title>File:Mg filter string.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Mg_filter_string.png&amp;diff=1621"/>
				<updated>2013-10-10T20:53:55Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1620</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1620"/>
				<updated>2013-10-08T19:30:27Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Mask Layer Operations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
[[image:Stripes.png|right|thumb|200px|CPG Islands Shown As Stripes On a Refseq Gene Layer]]&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
==== Apply Mask ====&lt;br /&gt;
Applying a mask means filtering the data that are not inside the windows of the mask.&amp;lt;br /&amp;gt;&lt;br /&gt;
All information overlapping a mask window will be kept, everything else will be lost.&lt;br /&gt;
==== Invert Mask ====&lt;br /&gt;
This operation simply inverts all windows of the mask. All current windows become empty spaces, all empty spaces become windows.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=GenPlay_File_Formats&amp;diff=1619</id>
		<title>GenPlay File Formats</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=GenPlay_File_Formats&amp;diff=1619"/>
				<updated>2013-10-07T15:12:07Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page presents the different file formats that can be loaded in GenPlay. Part of the information on this page is from the [http://genome.ucsc.edu/FAQ/ FAQ] of the UCSC genome browser. Don't hesitate to check it out for more details.&lt;br /&gt;
&lt;br /&gt;
== .2bit format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
A .2bit file stores multiple DNA sequences (up to 4 Gb total) in a compact randomly-accessible format. The file contains masking information as well as the DNA itself.&lt;br /&gt;
&lt;br /&gt;
The file begins with a 16-byte header containing the following fields:&lt;br /&gt;
&lt;br /&gt;
# signature - the number 0x1A412743 in the architecture of the machine that created the file&lt;br /&gt;
# version - zero for now. Readers should abort if they see a version number higher than 0.&lt;br /&gt;
# sequenceCount - the number of sequences in the file.&lt;br /&gt;
# reserved - always zero for now &lt;br /&gt;
&lt;br /&gt;
All fields are 32 bits unless noted. If the signature value is not as given, the reader program should byte-swap the signature and check if the swapped version matches. If so, all multiple-byte entities in the file will have to be byte-swapped. This enables these binary files to be used unchanged on different architectures.&lt;br /&gt;
&lt;br /&gt;
The header is followed by a file index, which contains one entry for each sequence. Each index entry contains three fields:&lt;br /&gt;
&lt;br /&gt;
# nameSize - a byte containing the length of the name field&lt;br /&gt;
# name - the sequence name itself, of variable length depending on nameSize&lt;br /&gt;
# offset - the 32-bit offset of the sequence data relative to the start of the file &lt;br /&gt;
&lt;br /&gt;
The index is followed by the sequence records, which contain nine fields:&lt;br /&gt;
&lt;br /&gt;
# dnaSize - number of bases of DNA in the sequence&lt;br /&gt;
# nBlockCount - the number of blocks of Ns in the file (representing unknown sequence)&lt;br /&gt;
# nBlockStarts - the starting position for each block of Ns&lt;br /&gt;
# nBlockSizes - the size of each block of Ns&lt;br /&gt;
# maskBlockCount - the number of masked (lower-case) blocks&lt;br /&gt;
# maskBlockStarts - the starting position for each masked block&lt;br /&gt;
# maskBlockSizes - the size of each masked block&lt;br /&gt;
# reserved - always zero for now&lt;br /&gt;
# packedDna - the DNA packed to two bits per base, represented as so: T - 00, C - 01, A - 10, G - 11. &lt;br /&gt;
&lt;br /&gt;
The first base is in the most significant 2-bit byte; the last base is in the least significant 2 bits. For example, the sequence TCAG is represented as 00011011. The packedDna field is padded with 0 bits as necessary to take an even multiple of 32 bits in the file, which improves I/O performance on some machines.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The .2bit  files can be loaded as sequence tracks.&lt;br /&gt;
&lt;br /&gt;
To be loaded the file needs to have a '.2bit' extension.&lt;br /&gt;
&lt;br /&gt;
== BAM / SAM format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments.&lt;br /&gt;
&lt;br /&gt;
BAM is a Binary version of the Sequence Alignment / Map (SAM) format.&lt;br /&gt;
&lt;br /&gt;
More information about these file formats can be found [http://samtools.sourceforge.net/ here]&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
SAM files can be loaded as fixed window track.&lt;br /&gt;
BAM files can't be used directly in GenPlay but can be easily converted into SAM files using tools available on the Internet.&lt;br /&gt;
&lt;br /&gt;
To be loaded a SAM file needs to either have a '.sam' extension or start with the following line:&lt;br /&gt;
 track type=sam&lt;br /&gt;
&lt;br /&gt;
== BED format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
BED format has three necessary fields and nine additional optional fields. The number of fields per line must be constant throughout any single set of data in an annotation track. The order of the optional fields requires that lower-numbered fields be filled if higher-numbered fields are used.&lt;br /&gt;
&lt;br /&gt;
*The first three required BED fields are:&lt;br /&gt;
# chromosome - The name of the chromosome (e.g. chr1, chrX etc.) or scaffold (e.g. scaffold10461).&lt;br /&gt;
# Start - The beginning position of the feature in the chromosome or scaffold. The first base in a chromosome is numbered 0.&lt;br /&gt;
# End - The ending position of the feature in the chromosome or scaffold. &lt;br /&gt;
*The 9 additional optional BED fields are:&lt;br /&gt;
# name – This is the name of the gene.&lt;br /&gt;
# score - A score between 0 and 1000. &lt;br /&gt;
# strand - Defines the strand as either '+' (red) or '-' (blue).&lt;br /&gt;
# thickStart &lt;br /&gt;
# thickEnd&lt;br /&gt;
# itemRgb&lt;br /&gt;
# blockCount&lt;br /&gt;
# blockSizes&lt;br /&gt;
# blockStarts&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
Here is an example of a bed file. &lt;br /&gt;
&lt;br /&gt;
 track type=bed geneDBURL=&amp;quot;&amp;lt;nowiki&amp;gt;http://genome.ucsc.edu/cgi-bin/hgGene?org=Human&amp;amp;hgg_chrom=none&amp;amp;db=hg19&amp;amp;hgg_gene=&amp;lt;/nowiki&amp;gt;&amp;quot;&lt;br /&gt;
 chr1	11873	14409	uc001aaa.3	0	+	11873	11873	0	3	354,109,1189,	0,739,1347,&lt;br /&gt;
 chr1	11873	14409	uc010nxq.1	0	+	12189	13639	0	3	354,127,1007,	0,721,1529,&lt;br /&gt;
 chr1	11873	14409	uc010nxr.1	        0	+	11873	11873	0	3	354,52,1189,	0,772,1347,&lt;br /&gt;
 chr1	14362	16765	uc009vis.2	        0	-	14362	14362	0	4	467,69,147,159,	0,607,1433,2244,&lt;br /&gt;
&lt;br /&gt;
'''Note''':&lt;br /&gt;
The search URL &amp;quot;&amp;lt;nowiki&amp;gt;http://genome.ucsc.edu/cgi-bin/hgGene?org=Human&amp;amp;hgg_chrom=none&amp;amp;db=hg19&amp;amp;hgg_gene=&amp;lt;/nowiki&amp;gt;&amp;quot; is included at the beginning of each BED file. It provides the URL that contains the description of the genes. One can form the complete URL by appending the name of the gene at the end of the search URL after the equal to sign. For example,  &amp;quot;&amp;lt;nowiki&amp;gt;http://genome.ucsc.edu/cgi-bin/hgGene?org=Human&amp;amp;hgg_chrom=none&amp;amp;db=hg19&amp;amp;hgg_gene=uc001aaa.3&amp;lt;/nowiki&amp;gt;&amp;quot; will provide information on WDR 78.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
A Bed file with the first 3 required fields can generate stripes.&lt;br /&gt;
If the first four required fields are specified, the file can be loaded as a fixed window, a variable window or a repeat track.&lt;br /&gt;
If all the fields are specified the file can also be loaded as a gene track.&lt;br /&gt;
&lt;br /&gt;
To be loaded a Bed file needs to either have a '.bed' extension or start with the following line:&lt;br /&gt;
 track type=bed&lt;br /&gt;
&lt;br /&gt;
== BedGraph format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
The BedGraph format is a really simple format useful to visualize windows on the genome. This windows can have a score.&lt;br /&gt;
The fields in a BedGraph file are the followings:&lt;br /&gt;
# Chromosome&lt;br /&gt;
# Window start position&lt;br /&gt;
# Window stop position&lt;br /&gt;
# Score&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
 track type =bedgraph&lt;br /&gt;
 chr1	18598	19673	1&lt;br /&gt;
 chr1	124987	125426	3&lt;br /&gt;
 chr1	317653	318092	15&lt;br /&gt;
 chr1	427014	428027	8&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
BedGraph files can be used to load fixed window and variable window track.&lt;br /&gt;
&lt;br /&gt;
They can also be loaded as stripes&lt;br /&gt;
&lt;br /&gt;
A valid BedGraph file needs to have a '.bgr' extension or should start with the following line:&lt;br /&gt;
 track type=bedgraph&lt;br /&gt;
&lt;br /&gt;
== Eland Extended format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
The Eland Extended files contain the result of read alignments on a reference genome.&lt;br /&gt;
&lt;br /&gt;
Each line of an Eland Extended file contains the following fields:&lt;br /&gt;
# Sequence or read name&lt;br /&gt;
# Sequence&lt;br /&gt;
#&lt;br /&gt;
#* Either NM (No match found), QC (no matching done because of quality control failure (too many Ns)), RM (No matching done: repeat masked (may be seen if repeatFile.txt specified)&lt;br /&gt;
#* Or x:y:z where x, y, and z are the number of exact, single-error, and 2-error matches found&lt;br /&gt;
# &lt;br /&gt;
#* Either blank, if no matches found or if too many matches found&lt;br /&gt;
#* Or the following: &amp;lt;br/&amp;gt; BAC_plus_vector.fa:163022R1,170128F2,E_coli.fa:3909847R1 &amp;lt;br/&amp;gt; This says there are two matches to BAC_plus_vector.fa: one in the reverse direction starting at position 160322 with one error, one in the forward direction starting at position 170128 with two errors. There is also a single-error match to E_coli.fa.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The Eland Extended files can generate fixed window tracks.&lt;br /&gt;
&lt;br /&gt;
The file needs to have a '.elx' extension or to start with the following line:&lt;br /&gt;
 track type=eland_extended&lt;br /&gt;
&lt;br /&gt;
== GenPlay Project format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
GenPlay Project files can contain an entire project from GenPlay. These files are extremely compact because they are saved as compressed binary files. This means that they can't be edited with a text editor.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
An entire GenPlay project can be loaded or saved as a GenPlay Project file. The only tracks that are not included in the project files are the sequence tracks.&lt;br /&gt;
&lt;br /&gt;
A project file must have a '.gen' extension.&lt;br /&gt;
&lt;br /&gt;
== GdpGene format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
The GdpGene file format can be used to store information about genes. It is different from the BED format because it can store one score value for each exon. &lt;br /&gt;
&lt;br /&gt;
The 7 mandatory fields of a GdpGene file are:&lt;br /&gt;
&lt;br /&gt;
# name&lt;br /&gt;
# chromosome&lt;br /&gt;
# strand&lt;br /&gt;
# start&lt;br /&gt;
# stop&lt;br /&gt;
# exon starts (list of the exon start positions separated by commas and with no spaces or tabulations)&lt;br /&gt;
# exon stops (list of the exon stop positions separated by commas and with no spaces or tabulations)&lt;br /&gt;
&lt;br /&gt;
There is also an optional field:&lt;br /&gt;
# exon scores (list of the exon scores separated by commas and with no spaces or tabulations)&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
Here is an example of a GdpGene file:&lt;br /&gt;
 track type=GdpGene name=Genes_Mouse_RefSeq_07-2007.txt&lt;br /&gt;
 Xkr4		chr1	-	3204562	3661579	3204562,3411782,3660632		3207049,3411982,3661579	&lt;br /&gt;
 Rp1		chr1	-	4334223	4350473	4334223,4341990,4342282,4350280	4340172,4342162,4342918,4350473	&lt;br /&gt;
 Sox17	chr1	-	4481008	4486494	4481008,4483852,4485216,4486371	4482749,4483944,4486023,4486494&lt;br /&gt;
&lt;br /&gt;
'''Note''': you can add a searchURL line to the GdpGene file. It works the same way as for a BED file, described [[#BED format|here]].&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
GdpGene files can be used to load gene tracks.&lt;br /&gt;
&lt;br /&gt;
A valid GdpGene file needs either to have a '.gdp' extension or to have the following first line: &lt;br /&gt;
 track type=GdpGene&lt;br /&gt;
&lt;br /&gt;
== GFF format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
GFF stands for General Feature Format. GFF files must have 9 compulsory fields which are tab delimited. They are as follows:&lt;br /&gt;
# seqname - The name of the sequence. Must be a chromosome.&lt;br /&gt;
# source - The source code that was responsible for generation of this feature.&lt;br /&gt;
# feature - The name of this type of feature.&lt;br /&gt;
# start - The starting position of the feature in the sequence. The first base are 1 indexed.&lt;br /&gt;
# end - The ending position of the feature (inclusive).&lt;br /&gt;
# score - A score between 0 and 1000.&lt;br /&gt;
# strand - Valid entries include '+', '-', or '.' (for don't know/don't care).&lt;br /&gt;
# frame – Is a number between 0 and 2, if the feature is a coding exon and if the feature is not a coding exon, it is ‘.’.&lt;br /&gt;
# group - Lines belonging  to the same group are linked together into a single item.&lt;br /&gt;
More information about this format can be found on [http://www.sanger.ac.uk/resources/software/gff Sanger website]&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
GFF files can be used to load repeats, variable and fixed window track as well as stripes.&lt;br /&gt;
&lt;br /&gt;
A GFF file needs to have a '.gff' extension or to have the following first line:&lt;br /&gt;
 ##GFF&lt;br /&gt;
&lt;br /&gt;
== GTF format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
GTF stands for Gene Transfer Format and is a stricter version of GFF. The first 8 GTF fields are the same as GFF. The group field has been expanded into a list of attributes. Each attribute is a type/value pair. Attributes must be terminated by a semi-colon. The gap between any two attributes must be exactly one space.&lt;br /&gt;
The attribute list must begin with the two required attributes:&lt;br /&gt;
# gene_id value - A GUID for the genomic source of the sequence&lt;br /&gt;
# transcript_id value - A GUID for the predicted transcript&lt;br /&gt;
Refer to the [http://www.sanger.ac.uk/resources/databases/encode/gencodeformat.html Sanger website] for further information.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
Stripes, fixed and variable window, repeat and gene tracks can be generated from a GTF file.&lt;br /&gt;
&lt;br /&gt;
A GTF files must either have a '.gtf' extension or to have the following first line:&lt;br /&gt;
 ##GTF&lt;br /&gt;
&lt;br /&gt;
== Pair format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
This file format is used by NimbleGen.&lt;br /&gt;
The fields of a NimbleGen Pair file are:&lt;br /&gt;
&lt;br /&gt;
# Image ID&lt;br /&gt;
# Gene Expression Option&lt;br /&gt;
# Sequence ID&lt;br /&gt;
# Probe ID&lt;br /&gt;
# Position&lt;br /&gt;
# X&lt;br /&gt;
# Y&lt;br /&gt;
# Match Index&lt;br /&gt;
# PM&lt;br /&gt;
# MM&lt;br /&gt;
&lt;br /&gt;
Please refer to the documentation of [http://www.nimblegen.com/products/lit/NimbleScan_v2p6_UsersGuide.pdf NimbleScan] (page 114) for further information on this format.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The pair files can generate fixed window tracks.&lt;br /&gt;
&lt;br /&gt;
The file needs to have a '.pair' extension to be loaded in GenPlay.&lt;br /&gt;
&lt;br /&gt;
== PSL format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
PSL lines represent alignments, and are typically taken from files generated by BLAT or psLayout. All of the following fields are required on each data line within a PSL file:&lt;br /&gt;
&lt;br /&gt;
# matches - Number of bases that match that aren’t repeats&lt;br /&gt;
# mismatches - Number of bases that don't match&lt;br /&gt;
# repeats - Number of bases that match but are part of repeats&lt;br /&gt;
# nbasecount - Number of 'N' bases&lt;br /&gt;
# numofinsertsquery - Number of inserts in query&lt;br /&gt;
# numofbaseinsertsquery - Number of bases inserted in query&lt;br /&gt;
# numofinsertstarget - Number of inserts in target&lt;br /&gt;
# numofbaseinsertsquery - Number of bases inserted in target&lt;br /&gt;
# strand - '+' or '-' for query strand. For translated alignments, second '+'or '-' is for genomic strand&lt;br /&gt;
# queryseqname - Query sequence name&lt;br /&gt;
# queryseqize - Query sequence size&lt;br /&gt;
# querystart - Alignment start position in query&lt;br /&gt;
# queryend - Alignment end position in query&lt;br /&gt;
# targetseqname - Target sequence name&lt;br /&gt;
# targetseqsize - Target sequence size&lt;br /&gt;
# targetstart - Alignment start position in target&lt;br /&gt;
# targetend - Alignment end position in target&lt;br /&gt;
# blockcount - Number of blocks in the alignment (a block contains no gaps)&lt;br /&gt;
# blocksizes - Comma-separated list of sizes of each block&lt;br /&gt;
# querystarts - Comma-separated list of starting positions of each block in query&lt;br /&gt;
# targetstarts - Comma-separated list of starting positions of each block in target&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
A PSL file can generate stripes. It can also be loaded as a fixed window, a variable window, a gene or a repeat track.&lt;br /&gt;
&lt;br /&gt;
To be loaded a PSL file needs either to have a '.psl' extension or to have the following first line:&lt;br /&gt;
 track type=psl&lt;br /&gt;
&lt;br /&gt;
== SOAPsnp format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
The SOAPsnp files contain the result of a resequencing utility that can assemble consensus sequence for the genome of a newly sequenced individual based on the alignment of raw sequencing reads on a known reference. The SNPs can then be identified on the consensus sequence through the comparison with the reference. More information about this file format can be found [http://soap.genomics.org.cn/soapsnp.html here]&lt;br /&gt;
&lt;br /&gt;
The result of SOAPsnp has 17 columns:&lt;br /&gt;
&lt;br /&gt;
# Chromosome ID&lt;br /&gt;
# Coordinate on chromosome, start from 1&lt;br /&gt;
# Reference genotype&lt;br /&gt;
# Consensus genotype&lt;br /&gt;
# Quality score of consensus genotype&lt;br /&gt;
# Best base&lt;br /&gt;
# Average quality score of best base&lt;br /&gt;
# Count of uniquely mapped best base&lt;br /&gt;
# Count of all mapped best base&lt;br /&gt;
# Second best bases&lt;br /&gt;
# Average quality score of second best base&lt;br /&gt;
# Count of uniquely mapped second best base&lt;br /&gt;
# Count of all mapped second best base&lt;br /&gt;
# Sequencing depth of the site&lt;br /&gt;
# Rank sum test p_value&lt;br /&gt;
# Average copy number of nearby region&lt;br /&gt;
# Whether the site is a dbSNP.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The SOAPsnp files can be used to generate SNPs tracks. &lt;br /&gt;
&lt;br /&gt;
Be sure that the file has a '.soapsnp' extension or starts with the following line:&lt;br /&gt;
 track type=SOAPsnp&lt;br /&gt;
&lt;br /&gt;
== WIG format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
Wiggle format (WIG) allows the display of continuous-valued data in a track format.&lt;br /&gt;
Please refer to this [http://genome.ucsc.edu/goldenPath/help/wiggle.html page] for the whole description of a wiggle file.&lt;br /&gt;
&lt;br /&gt;
==== General Structure ====&lt;br /&gt;
Wiggle format is line-oriented. For wiggle custom tracks, the first line must be a track definition line, which designates the track as a wiggle track and adds a number of options for controlling the default display.&lt;br /&gt;
&lt;br /&gt;
Wiggle format is composed of declaration lines and data lines. There are two options for formatting wiggle data: '''variableStep''' and '''fixedStep'''. These formats were developed to allow the file to be written as compactly as possible.&lt;br /&gt;
&lt;br /&gt;
* '''variableStep''' is for data with irregular intervals between new data points and is the more commonly used wiggle format. It begins with a declaration line and is followed by two columns containing chromosome positions and data values:&lt;br /&gt;
&lt;br /&gt;
 variableStep  chrom=chrN  [span=windowSize]&lt;br /&gt;
 chromStartA  dataValueA&lt;br /&gt;
 chromStartB  dataValueB&lt;br /&gt;
 ... etc ...  ... etc ...&lt;br /&gt;
&lt;br /&gt;
The declaration line starts with the word variableStep and is followed by a specification for a chromosome. The optional span parameter (default: span=1) allows data composed of contiguous runs of bases with the same data value to be specified more succinctly. The span begins at each chromosome position specified and indicates the number of bases that data value should cover. &lt;br /&gt;
&lt;br /&gt;
For example, this variableStep specification:&lt;br /&gt;
&lt;br /&gt;
 variableStep chrom=chr2&lt;br /&gt;
 300701 12.5&lt;br /&gt;
 300702 12.5&lt;br /&gt;
 300703 12.5&lt;br /&gt;
 300704 12.5&lt;br /&gt;
 300705 12.5&lt;br /&gt;
&lt;br /&gt;
is equivalent to:&lt;br /&gt;
&lt;br /&gt;
 variableStep chrom=chr2 span=5&lt;br /&gt;
 300701 12.5&lt;br /&gt;
&lt;br /&gt;
Both versions display a value of 12.5 at position 300701-300705 on chromosome 2.&lt;br /&gt;
&lt;br /&gt;
* '''fixedStep''' is for data with regular intervals between new data values and is the more compact wiggle format. It begins with a declaration line and is followed by a single column of data values:&lt;br /&gt;
&lt;br /&gt;
 fixedStep  chrom=chrN  start=position  step=stepInterval  [span=windowSize]&lt;br /&gt;
 dataValue1&lt;br /&gt;
 dataValue2&lt;br /&gt;
 ... etc ...&lt;br /&gt;
&lt;br /&gt;
The declaration line starts with the word fixedStep and includes specifications for chromosome, start coordinate, and step size. The span specification has the same meaning as in variableStep format. &lt;br /&gt;
&lt;br /&gt;
For example, this fixedStep specification:&lt;br /&gt;
&lt;br /&gt;
 fixedStep chrom=chr3 start=400601 step=100&lt;br /&gt;
 11&lt;br /&gt;
 22&lt;br /&gt;
 33&lt;br /&gt;
&lt;br /&gt;
displays the values 11, 22, and 33 as single-base regions on chromosome 3 at positions 400601, 400701, and 400801, respectively. &lt;br /&gt;
&lt;br /&gt;
Adding span=5 to the declaration line:&lt;br /&gt;
&lt;br /&gt;
 fixedStep chrom=chr3 start=400601 step=100 span=5&lt;br /&gt;
 11&lt;br /&gt;
 22&lt;br /&gt;
 33&lt;br /&gt;
&lt;br /&gt;
causes the values 11, 22, and 33 to be displayed as 5-base regions on chromosome 3 at positions 400601-400605, 400701-400705, and 400801-400805, respectively.&lt;br /&gt;
&lt;br /&gt;
Note that for both '''variableStep''' and '''fixedStep''' formats, the same span must be used throughout the dataset. If no span is specified, the default span of one is used.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
A wiggle file can generate fixed or variable window tracks as well as stripes. &lt;br /&gt;
&lt;br /&gt;
Be sure that the file extension is '.wig' or that the file starts with the following line:&lt;br /&gt;
 track type=wiggle&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=GenPlay_File_Formats&amp;diff=1618</id>
		<title>GenPlay File Formats</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=GenPlay_File_Formats&amp;diff=1618"/>
				<updated>2013-10-07T13:33:52Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page presents the different file formats that can be loaded in GenPlay. Part of the information on this page is from the [http://genome.ucsc.edu/FAQ/ FAQ] of the UCSC genome browser. Don't hesitate to check it out for more details.&lt;br /&gt;
&lt;br /&gt;
== .2bit format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
A .2bit file stores multiple DNA sequences (up to 4 Gb total) in a compact randomly-accessible format. The file contains masking information as well as the DNA itself.&lt;br /&gt;
&lt;br /&gt;
The file begins with a 16-byte header containing the following fields:&lt;br /&gt;
&lt;br /&gt;
# signature - the number 0x1A412743 in the architecture of the machine that created the file&lt;br /&gt;
# version - zero for now. Readers should abort if they see a version number higher than 0.&lt;br /&gt;
# sequenceCount - the number of sequences in the file.&lt;br /&gt;
# reserved - always zero for now &lt;br /&gt;
&lt;br /&gt;
All fields are 32 bits unless noted. If the signature value is not as given, the reader program should byte-swap the signature and check if the swapped version matches. If so, all multiple-byte entities in the file will have to be byte-swapped. This enables these binary files to be used unchanged on different architectures.&lt;br /&gt;
&lt;br /&gt;
The header is followed by a file index, which contains one entry for each sequence. Each index entry contains three fields:&lt;br /&gt;
&lt;br /&gt;
# nameSize - a byte containing the length of the name field&lt;br /&gt;
# name - the sequence name itself, of variable length depending on nameSize&lt;br /&gt;
# offset - the 32-bit offset of the sequence data relative to the start of the file &lt;br /&gt;
&lt;br /&gt;
The index is followed by the sequence records, which contain nine fields:&lt;br /&gt;
&lt;br /&gt;
# dnaSize - number of bases of DNA in the sequence&lt;br /&gt;
# nBlockCount - the number of blocks of Ns in the file (representing unknown sequence)&lt;br /&gt;
# nBlockStarts - the starting position for each block of Ns&lt;br /&gt;
# nBlockSizes - the size of each block of Ns&lt;br /&gt;
# maskBlockCount - the number of masked (lower-case) blocks&lt;br /&gt;
# maskBlockStarts - the starting position for each masked block&lt;br /&gt;
# maskBlockSizes - the size of each masked block&lt;br /&gt;
# reserved - always zero for now&lt;br /&gt;
# packedDna - the DNA packed to two bits per base, represented as so: T - 00, C - 01, A - 10, G - 11. &lt;br /&gt;
&lt;br /&gt;
The first base is in the most significant 2-bit byte; the last base is in the least significant 2 bits. For example, the sequence TCAG is represented as 00011011. The packedDna field is padded with 0 bits as necessary to take an even multiple of 32 bits in the file, which improves I/O performance on some machines.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The .2bit  files can be loaded as sequence tracks.&lt;br /&gt;
&lt;br /&gt;
To be loaded the file needs to have a '.2bit' extension.&lt;br /&gt;
&lt;br /&gt;
== BAM / SAM format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments.&lt;br /&gt;
&lt;br /&gt;
BAM is a Binary version of the Sequence Alignment / Map (SAM) format.&lt;br /&gt;
&lt;br /&gt;
More information about these file formats can be found [http://samtools.sourceforge.net/ here]&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
SAM files can be loaded as fixed window track.&lt;br /&gt;
BAM files can't be used directly in GenPlay but can be easily converted into SAM files using tools available on the Internet.&lt;br /&gt;
&lt;br /&gt;
To be loaded a SAM file needs to either have a '.sam' extension or start with the following line:&lt;br /&gt;
 track type=sam&lt;br /&gt;
&lt;br /&gt;
== BED format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
BED format has three necessary fields and nine additional optional fields. The number of fields per line must be constant throughout any single set of data in an annotation track. The order of the optional fields requires that lower-numbered fields be filled if higher-numbered fields are used.&lt;br /&gt;
&lt;br /&gt;
*The first three required BED fields are:&lt;br /&gt;
# chromosome - The name of the chromosome (e.g. chr1, chrX etc.) or scaffold (e.g. scaffold10461).&lt;br /&gt;
# Start - The beginning position of the feature in the chromosome or scaffold. The first base in a chromosome is numbered 0.&lt;br /&gt;
# End - The ending position of the feature in the chromosome or scaffold. &lt;br /&gt;
*The 9 additional optional BED fields are:&lt;br /&gt;
# name – This is the name of the gene.&lt;br /&gt;
# score - A score between 0 and 1000. &lt;br /&gt;
# strand - Defines the strand as either '+' (red) or '-' (blue).&lt;br /&gt;
# thickStart &lt;br /&gt;
# thickEnd&lt;br /&gt;
# itemRgb&lt;br /&gt;
# blockCount&lt;br /&gt;
# blockSizes&lt;br /&gt;
# blockStarts&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
Here is an example of a bed file. &lt;br /&gt;
&lt;br /&gt;
 track type=bed&lt;br /&gt;
 geneDBURL=&amp;quot;&amp;lt;nowiki&amp;gt;http://genome.ucsc.edu/cgi-bin/hgGene?org=Human&amp;amp;hgg_chrom=none&amp;amp;db=hg19&amp;amp;hgg_gene=&amp;lt;/nowiki&amp;gt;&amp;quot;&lt;br /&gt;
 chr1	11873	14409	uc001aaa.3	0	+	11873	11873	0	3	354,109,1189,	0,739,1347,&lt;br /&gt;
 chr1	11873	14409	uc010nxq.1	0	+	12189	13639	0	3	354,127,1007,	0,721,1529,&lt;br /&gt;
 chr1	11873	14409	uc010nxr.1	        0	+	11873	11873	0	3	354,52,1189,	0,772,1347,&lt;br /&gt;
 chr1	14362	16765	uc009vis.2	        0	-	14362	14362	0	4	467,69,147,159,	0,607,1433,2244,&lt;br /&gt;
&lt;br /&gt;
'''Note''':&lt;br /&gt;
The search URL &amp;quot;&amp;lt;nowiki&amp;gt;http://genome.ucsc.edu/cgi-bin/hgGene?org=Human&amp;amp;hgg_chrom=none&amp;amp;db=hg19&amp;amp;hgg_gene=&amp;lt;/nowiki&amp;gt;&amp;quot; is included at the beginning of each BED file. It provides the URL that contains the description of the genes. One can form the complete URL by appending the name of the gene at the end of the search URL after the equal to sign. For example,  &amp;quot;&amp;lt;nowiki&amp;gt;http://genome.ucsc.edu/cgi-bin/hgGene?org=Human&amp;amp;hgg_chrom=none&amp;amp;db=hg19&amp;amp;hgg_gene=uc001aaa.3&amp;lt;/nowiki&amp;gt;&amp;quot; will provide information on WDR 78.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
A Bed file with the first 3 required fields can generate stripes.&lt;br /&gt;
If the first four required fields are specified, the file can be loaded as a fixed window, a variable window or a repeat track.&lt;br /&gt;
If all the fields are specified the file can also be loaded as a gene track.&lt;br /&gt;
&lt;br /&gt;
To be loaded a Bed file needs to either have a '.bed' extension or start with the following line:&lt;br /&gt;
 track type=bed&lt;br /&gt;
&lt;br /&gt;
== BedGraph format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
The BedGraph format is a really simple format useful to visualize windows on the genome. This windows can have a score.&lt;br /&gt;
The fields in a BedGraph file are the followings:&lt;br /&gt;
# Chromosome&lt;br /&gt;
# Window start position&lt;br /&gt;
# Window stop position&lt;br /&gt;
# Score&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
 track type =bedgraph&lt;br /&gt;
 chr1	18598	19673	1&lt;br /&gt;
 chr1	124987	125426	3&lt;br /&gt;
 chr1	317653	318092	15&lt;br /&gt;
 chr1	427014	428027	8&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
BedGraph files can be used to load fixed window and variable window track.&lt;br /&gt;
&lt;br /&gt;
They can also be loaded as stripes&lt;br /&gt;
&lt;br /&gt;
A valid BedGraph file needs to have a '.bgr' extension or should start with the following line:&lt;br /&gt;
 track type=bedgraph&lt;br /&gt;
&lt;br /&gt;
== Eland Extended format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
The Eland Extended files contain the result of read alignments on a reference genome.&lt;br /&gt;
&lt;br /&gt;
Each line of an Eland Extended file contains the following fields:&lt;br /&gt;
# Sequence or read name&lt;br /&gt;
# Sequence&lt;br /&gt;
#&lt;br /&gt;
#* Either NM (No match found), QC (no matching done because of quality control failure (too many Ns)), RM (No matching done: repeat masked (may be seen if repeatFile.txt specified)&lt;br /&gt;
#* Or x:y:z where x, y, and z are the number of exact, single-error, and 2-error matches found&lt;br /&gt;
# &lt;br /&gt;
#* Either blank, if no matches found or if too many matches found&lt;br /&gt;
#* Or the following: &amp;lt;br/&amp;gt; BAC_plus_vector.fa:163022R1,170128F2,E_coli.fa:3909847R1 &amp;lt;br/&amp;gt; This says there are two matches to BAC_plus_vector.fa: one in the reverse direction starting at position 160322 with one error, one in the forward direction starting at position 170128 with two errors. There is also a single-error match to E_coli.fa.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The Eland Extended files can generate fixed window tracks.&lt;br /&gt;
&lt;br /&gt;
The file needs to have a '.elx' extension or to start with the following line:&lt;br /&gt;
 track type=eland_extended&lt;br /&gt;
&lt;br /&gt;
== GenPlay Project format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
GenPlay Project files can contain an entire project from GenPlay. These files are extremely compact because they are saved as compressed binary files. This means that they can't be edited with a text editor.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
An entire GenPlay project can be loaded or saved as a GenPlay Project file. The only tracks that are not included in the project files are the sequence tracks.&lt;br /&gt;
&lt;br /&gt;
A project file must have a '.gen' extension.&lt;br /&gt;
&lt;br /&gt;
== GdpGene format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
The GdpGene file format can be used to store information about genes. It is different from the BED format because it can store one score value for each exon. &lt;br /&gt;
&lt;br /&gt;
The 7 mandatory fields of a GdpGene file are:&lt;br /&gt;
&lt;br /&gt;
# name&lt;br /&gt;
# chromosome&lt;br /&gt;
# strand&lt;br /&gt;
# start&lt;br /&gt;
# stop&lt;br /&gt;
# exon starts (list of the exon start positions separated by commas and with no spaces or tabulations)&lt;br /&gt;
# exon stops (list of the exon stop positions separated by commas and with no spaces or tabulations)&lt;br /&gt;
&lt;br /&gt;
There is also an optional field:&lt;br /&gt;
# exon scores (list of the exon scores separated by commas and with no spaces or tabulations)&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
Here is an example of a GdpGene file:&lt;br /&gt;
 track type=GdpGene name=Genes_Mouse_RefSeq_07-2007.txt&lt;br /&gt;
 Xkr4		chr1	-	3204562	3661579	3204562,3411782,3660632		3207049,3411982,3661579	&lt;br /&gt;
 Rp1		chr1	-	4334223	4350473	4334223,4341990,4342282,4350280	4340172,4342162,4342918,4350473	&lt;br /&gt;
 Sox17	chr1	-	4481008	4486494	4481008,4483852,4485216,4486371	4482749,4483944,4486023,4486494&lt;br /&gt;
&lt;br /&gt;
'''Note''': you can add a searchURL line to the GdpGene file. It works the same way as for a BED file, described [[#BED format|here]].&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
GdpGene files can be used to load gene tracks.&lt;br /&gt;
&lt;br /&gt;
A valid GdpGene file needs either to have a '.gdp' extension or to have the following first line: &lt;br /&gt;
 track type=GdpGene&lt;br /&gt;
&lt;br /&gt;
== GFF format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
GFF stands for General Feature Format. GFF files must have 9 compulsory fields which are tab delimited. They are as follows:&lt;br /&gt;
# seqname - The name of the sequence. Must be a chromosome.&lt;br /&gt;
# source - The source code that was responsible for generation of this feature.&lt;br /&gt;
# feature - The name of this type of feature.&lt;br /&gt;
# start - The starting position of the feature in the sequence. The first base are 1 indexed.&lt;br /&gt;
# end - The ending position of the feature (inclusive).&lt;br /&gt;
# score - A score between 0 and 1000.&lt;br /&gt;
# strand - Valid entries include '+', '-', or '.' (for don't know/don't care).&lt;br /&gt;
# frame – Is a number between 0 and 2, if the feature is a coding exon and if the feature is not a coding exon, it is ‘.’.&lt;br /&gt;
# group - Lines belonging  to the same group are linked together into a single item.&lt;br /&gt;
More information about this format can be found on [http://www.sanger.ac.uk/resources/software/gff Sanger website]&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
GFF files can be used to load repeats, variable and fixed window track as well as stripes.&lt;br /&gt;
&lt;br /&gt;
A GFF file needs to have a '.gff' extension or to have the following first line:&lt;br /&gt;
 ##GFF&lt;br /&gt;
&lt;br /&gt;
== GTF format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
GTF stands for Gene Transfer Format and is a stricter version of GFF. The first 8 GTF fields are the same as GFF. The group field has been expanded into a list of attributes. Each attribute is a type/value pair. Attributes must be terminated by a semi-colon. The gap between any two attributes must be exactly one space.&lt;br /&gt;
The attribute list must begin with the two required attributes:&lt;br /&gt;
# gene_id value - A GUID for the genomic source of the sequence&lt;br /&gt;
# transcript_id value - A GUID for the predicted transcript&lt;br /&gt;
Refer to the [http://www.sanger.ac.uk/resources/databases/encode/gencodeformat.html Sanger website] for further information.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
Stripes, fixed and variable window, repeat and gene tracks can be generated from a GTF file.&lt;br /&gt;
&lt;br /&gt;
A GTF files must either have a '.gtf' extension or to have the following first line:&lt;br /&gt;
 ##GTF&lt;br /&gt;
&lt;br /&gt;
== Pair format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
This file format is used by NimbleGen.&lt;br /&gt;
The fields of a NimbleGen Pair file are:&lt;br /&gt;
&lt;br /&gt;
# Image ID&lt;br /&gt;
# Gene Expression Option&lt;br /&gt;
# Sequence ID&lt;br /&gt;
# Probe ID&lt;br /&gt;
# Position&lt;br /&gt;
# X&lt;br /&gt;
# Y&lt;br /&gt;
# Match Index&lt;br /&gt;
# PM&lt;br /&gt;
# MM&lt;br /&gt;
&lt;br /&gt;
Please refer to the documentation of [http://www.nimblegen.com/products/lit/NimbleScan_v2p6_UsersGuide.pdf NimbleScan] (page 114) for further information on this format.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The pair files can generate fixed window tracks.&lt;br /&gt;
&lt;br /&gt;
The file needs to have a '.pair' extension to be loaded in GenPlay.&lt;br /&gt;
&lt;br /&gt;
== PSL format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
PSL lines represent alignments, and are typically taken from files generated by BLAT or psLayout. All of the following fields are required on each data line within a PSL file:&lt;br /&gt;
&lt;br /&gt;
# matches - Number of bases that match that aren’t repeats&lt;br /&gt;
# mismatches - Number of bases that don't match&lt;br /&gt;
# repeats - Number of bases that match but are part of repeats&lt;br /&gt;
# nbasecount - Number of 'N' bases&lt;br /&gt;
# numofinsertsquery - Number of inserts in query&lt;br /&gt;
# numofbaseinsertsquery - Number of bases inserted in query&lt;br /&gt;
# numofinsertstarget - Number of inserts in target&lt;br /&gt;
# numofbaseinsertsquery - Number of bases inserted in target&lt;br /&gt;
# strand - '+' or '-' for query strand. For translated alignments, second '+'or '-' is for genomic strand&lt;br /&gt;
# queryseqname - Query sequence name&lt;br /&gt;
# queryseqize - Query sequence size&lt;br /&gt;
# querystart - Alignment start position in query&lt;br /&gt;
# queryend - Alignment end position in query&lt;br /&gt;
# targetseqname - Target sequence name&lt;br /&gt;
# targetseqsize - Target sequence size&lt;br /&gt;
# targetstart - Alignment start position in target&lt;br /&gt;
# targetend - Alignment end position in target&lt;br /&gt;
# blockcount - Number of blocks in the alignment (a block contains no gaps)&lt;br /&gt;
# blocksizes - Comma-separated list of sizes of each block&lt;br /&gt;
# querystarts - Comma-separated list of starting positions of each block in query&lt;br /&gt;
# targetstarts - Comma-separated list of starting positions of each block in target&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
A PSL file can generate stripes. It can also be loaded as a fixed window, a variable window, a gene or a repeat track.&lt;br /&gt;
&lt;br /&gt;
To be loaded a PSL file needs either to have a '.psl' extension or to have the following first line:&lt;br /&gt;
 track type=psl&lt;br /&gt;
&lt;br /&gt;
== SOAPsnp format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
The SOAPsnp files contain the result of a resequencing utility that can assemble consensus sequence for the genome of a newly sequenced individual based on the alignment of raw sequencing reads on a known reference. The SNPs can then be identified on the consensus sequence through the comparison with the reference. More information about this file format can be found [http://soap.genomics.org.cn/soapsnp.html here]&lt;br /&gt;
&lt;br /&gt;
The result of SOAPsnp has 17 columns:&lt;br /&gt;
&lt;br /&gt;
# Chromosome ID&lt;br /&gt;
# Coordinate on chromosome, start from 1&lt;br /&gt;
# Reference genotype&lt;br /&gt;
# Consensus genotype&lt;br /&gt;
# Quality score of consensus genotype&lt;br /&gt;
# Best base&lt;br /&gt;
# Average quality score of best base&lt;br /&gt;
# Count of uniquely mapped best base&lt;br /&gt;
# Count of all mapped best base&lt;br /&gt;
# Second best bases&lt;br /&gt;
# Average quality score of second best base&lt;br /&gt;
# Count of uniquely mapped second best base&lt;br /&gt;
# Count of all mapped second best base&lt;br /&gt;
# Sequencing depth of the site&lt;br /&gt;
# Rank sum test p_value&lt;br /&gt;
# Average copy number of nearby region&lt;br /&gt;
# Whether the site is a dbSNP.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The SOAPsnp files can be used to generate SNPs tracks. &lt;br /&gt;
&lt;br /&gt;
Be sure that the file has a '.soapsnp' extension or starts with the following line:&lt;br /&gt;
 track type=SOAPsnp&lt;br /&gt;
&lt;br /&gt;
== WIG format ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
Wiggle format (WIG) allows the display of continuous-valued data in a track format.&lt;br /&gt;
Please refer to this [http://genome.ucsc.edu/goldenPath/help/wiggle.html page] for the whole description of a wiggle file.&lt;br /&gt;
&lt;br /&gt;
==== General Structure ====&lt;br /&gt;
Wiggle format is line-oriented. For wiggle custom tracks, the first line must be a track definition line, which designates the track as a wiggle track and adds a number of options for controlling the default display.&lt;br /&gt;
&lt;br /&gt;
Wiggle format is composed of declaration lines and data lines. There are two options for formatting wiggle data: '''variableStep''' and '''fixedStep'''. These formats were developed to allow the file to be written as compactly as possible.&lt;br /&gt;
&lt;br /&gt;
* '''variableStep''' is for data with irregular intervals between new data points and is the more commonly used wiggle format. It begins with a declaration line and is followed by two columns containing chromosome positions and data values:&lt;br /&gt;
&lt;br /&gt;
 variableStep  chrom=chrN  [span=windowSize]&lt;br /&gt;
 chromStartA  dataValueA&lt;br /&gt;
 chromStartB  dataValueB&lt;br /&gt;
 ... etc ...  ... etc ...&lt;br /&gt;
&lt;br /&gt;
The declaration line starts with the word variableStep and is followed by a specification for a chromosome. The optional span parameter (default: span=1) allows data composed of contiguous runs of bases with the same data value to be specified more succinctly. The span begins at each chromosome position specified and indicates the number of bases that data value should cover. &lt;br /&gt;
&lt;br /&gt;
For example, this variableStep specification:&lt;br /&gt;
&lt;br /&gt;
 variableStep chrom=chr2&lt;br /&gt;
 300701 12.5&lt;br /&gt;
 300702 12.5&lt;br /&gt;
 300703 12.5&lt;br /&gt;
 300704 12.5&lt;br /&gt;
 300705 12.5&lt;br /&gt;
&lt;br /&gt;
is equivalent to:&lt;br /&gt;
&lt;br /&gt;
 variableStep chrom=chr2 span=5&lt;br /&gt;
 300701 12.5&lt;br /&gt;
&lt;br /&gt;
Both versions display a value of 12.5 at position 300701-300705 on chromosome 2.&lt;br /&gt;
&lt;br /&gt;
* '''fixedStep''' is for data with regular intervals between new data values and is the more compact wiggle format. It begins with a declaration line and is followed by a single column of data values:&lt;br /&gt;
&lt;br /&gt;
 fixedStep  chrom=chrN  start=position  step=stepInterval  [span=windowSize]&lt;br /&gt;
 dataValue1&lt;br /&gt;
 dataValue2&lt;br /&gt;
 ... etc ...&lt;br /&gt;
&lt;br /&gt;
The declaration line starts with the word fixedStep and includes specifications for chromosome, start coordinate, and step size. The span specification has the same meaning as in variableStep format. &lt;br /&gt;
&lt;br /&gt;
For example, this fixedStep specification:&lt;br /&gt;
&lt;br /&gt;
 fixedStep chrom=chr3 start=400601 step=100&lt;br /&gt;
 11&lt;br /&gt;
 22&lt;br /&gt;
 33&lt;br /&gt;
&lt;br /&gt;
displays the values 11, 22, and 33 as single-base regions on chromosome 3 at positions 400601, 400701, and 400801, respectively. &lt;br /&gt;
&lt;br /&gt;
Adding span=5 to the declaration line:&lt;br /&gt;
&lt;br /&gt;
 fixedStep chrom=chr3 start=400601 step=100 span=5&lt;br /&gt;
 11&lt;br /&gt;
 22&lt;br /&gt;
 33&lt;br /&gt;
&lt;br /&gt;
causes the values 11, 22, and 33 to be displayed as 5-base regions on chromosome 3 at positions 400601-400605, 400701-400705, and 400801-400805, respectively.&lt;br /&gt;
&lt;br /&gt;
Note that for both '''variableStep''' and '''fixedStep''' formats, the same span must be used throughout the dataset. If no span is specified, the default span of one is used.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
A wiggle file can generate fixed or variable window tracks as well as stripes. &lt;br /&gt;
&lt;br /&gt;
Be sure that the file extension is '.wig' or that the file starts with the following line:&lt;br /&gt;
 track type=wiggle&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1617</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=Documentation&amp;diff=1617"/>
				<updated>2013-10-04T21:10:02Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
=== Starting GenPlay ===&lt;br /&gt;
GenPlay is freely available at http://www.genplay.net/wiki/index.php/Web_Start To start the software, click the button corresponding to the amount of memory that you wish to allocate to the Java virtual machine.&lt;br /&gt;
&lt;br /&gt;
The amount of memory determines how many layers you will be able to load simultaneously. The programming philosophy behind GenPlay is to provide fast performances once the data is loaded. To achieve that goal the entire genome need to be loaded in memory for multiple layers at the same time. This results in high quality performance, but requires a lot of memory. The amount of memory needed per layer depends on the genome, the layer type, the window size, the data precision etc.&lt;br /&gt;
&lt;br /&gt;
You should generally choose as much memory as you can afford on your system (generally about 70% of the total RAM memory that exists on your system). For mammalian genomes we recommend allocating at least 4 GB of RAM although you should be able to load a couple of genome-wide layers with 1GB or 1.5GB of RAM. Selecting analysis of only one chromosome at a time will drastically reduce the memory requirement and should allow you to load many layers at very high resolutions. Layers loaded in GenPlay can also be compressed as explained later in this documentation.&lt;br /&gt;
&lt;br /&gt;
The amount of RAM memory available to GenPlay is displayed in the lower right corner of the screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== The Welcome screen ===&lt;br /&gt;
The welcome screen is the first screen of GenPlay-MG and allow user to create or to load a project.&lt;br /&gt;
&lt;br /&gt;
==== New Project ====&lt;br /&gt;
In order to create a new project, users must give it a name as shown in Figure 1.&lt;br /&gt;
[[image:mg_basics_project name.png|center|frame|Figure 1: Text field to define the project name]]&lt;br /&gt;
&lt;br /&gt;
The second step is to choose a reference genome. Users can choose it using the different list according to the clade, the genome and the assembly (Figure 2).&lt;br /&gt;
[[image:mg_basics_assembly_chooser.png|center|frame|Figure 2: Assembly chooser]]&lt;br /&gt;
&lt;br /&gt;
Several chromosomes are available for each assembly but users can choose to select only some of them.&amp;lt;br/&amp;gt;&lt;br /&gt;
To open the chromosome chooser (Figure 3), users have to click on the tools button next to the assembly name.&lt;br /&gt;
[[image:mg_basics_chromosome_chooser.png|center|frame|Figure 3: Chromosome chooser]]&lt;br /&gt;
&lt;br /&gt;
The third and last step is to choose between a ''Simple Genome Project'' and a ''Multi Genome Project''. If the multi genome project option is selected, the welcome screen should be as the one shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_empty_welcome_screen.png|center|frame|Figure 4: Empty welcome screen for multi-genome project]]&lt;br /&gt;
===== Single Genome Project =====&lt;br /&gt;
&lt;br /&gt;
===== Multi Genome Project =====&lt;br /&gt;
====== Introduction ======&lt;br /&gt;
====== VCF Files ======&lt;br /&gt;
VCF files describe differences between genomes. Usually, it concerns differences between one or several genomes of interest and the reference genome used for the mapping process. VCF files define multiple type of variations; GenPlay is able to read and represent the followings: &lt;br /&gt;
* InDels&lt;br /&gt;
* SNPs&lt;br /&gt;
* SV (Structural Variation)&lt;br /&gt;
&lt;br /&gt;
A complete description of VCF files is given on the 1000 genomes project website:&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42 Variant Call Format specification]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== Tabix ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
VCF files contain a lot of information which  makes the scanning (loading) processes longer.&amp;lt;br/&amp;gt;&lt;br /&gt;
In order to increase the scanning efficiency, VCF files have to be compressed and indexed. The compression is done using BGZip and the indexing with Tabix.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/samtools/files/tabix/ Tabix download]&lt;br /&gt;
&lt;br /&gt;
: 2. VCF files indexing methods&lt;br /&gt;
:: 2.1. Using GenPlay&lt;br /&gt;
GenPlay is now able to compress and index VCF files using the VCF Loader.&amp;lt;br/&amp;gt;&lt;br /&gt;
The way the VCF Loader works is explained below. When you want to select the compressed file (.vcf.gz), simply select the VCF file (.vcf) instead. You may need to change the file extension filter in the file chooser in order to see .vcf files.&amp;lt;br/&amp;gt;&lt;br /&gt;
GenPlay will look then for compressed/indexed files at the same location, if nothing is found, it will offer to compress and index the selected VCF file (Figure 1).&lt;br /&gt;
[[image:mg_vcf_loader_compress_index.png|center|frame|Figure 1: VCF Loader compress/index]]&lt;br /&gt;
&lt;br /&gt;
It is fully automatic and non-platform dependent (works on Windows, Linux and Mac).&lt;br /&gt;
&lt;br /&gt;
:: 2.2. Manually&lt;br /&gt;
First, please note the following process must be performed in either Linux or Mac environments.&amp;lt;br/&amp;gt;&lt;br /&gt;
Each VCF files must be first compress to a BGZF (.bgz file) format. Tabix provides a tool to perform the compression.&lt;br /&gt;
After compression, VCF files must be indexed using the associated command.&lt;br /&gt;
Once Tabix is  installed, two commands are necessary to perform the indexation.&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available commands from the Tabix folder:&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f VCF_PATH;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf VCF_PATH;''&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, a VCF file named my_vcf.vcf located in the same folder as Tabix can be indexed with the following commands (Figure 2):&amp;lt;br/&amp;gt;&lt;br /&gt;
''bgzip -f ./my_vcf.vcf;''&amp;lt;br/&amp;gt;&lt;br /&gt;
''tabix –p vcf ./my_vcf.vcf.gz;''&lt;br /&gt;
[[image:mg_basics_indexation_commands.png|center|frame|Figure 2: VCF file indexation command]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
'''Note:''' the first command '''replaces''' the current VCF file by the compressed VCF file (.vcf.gz). The second command '''creates''' the indexed VCF file in the current folder (.vcf.gz.tbi).&amp;lt;br/&amp;gt;&lt;br /&gt;
More options are available on [http://samtools.sourceforge.net/tabix.shtml Tabix manual reference pages].&lt;br /&gt;
&lt;br /&gt;
====== The VCF Loader ======&lt;br /&gt;
: 1. Introduction&lt;br /&gt;
The VCF Loader is the most important part of multi-genome project settings. It allows users to load all necessary VCF files and to define how to extract information from them. It appears when users click on the &amp;quot;Edit&amp;quot; button from the welcome screen.&amp;lt;br/&amp;gt;&lt;br /&gt;
The Figure 3 shows an empty VCF Loader screen.&lt;br /&gt;
[[image:Mg_welcome_screen_vcf_loader.png|center|frame|Figure 3: VCF loader]]&lt;br /&gt;
&lt;br /&gt;
GenPlay-MG does not use directly the VCF file, it uses a compress version of it (.gz). Moreover, GenPlay-MG also needs the compress VCF file to be indexed with Tabix. Both file versions must be in the '''same folder''' and must have the '''same name''', only file extensions differ (.gz and .tbi).&lt;br /&gt;
In order to use GenPlay to generate additional files, please refer to the [[#Tabix|section above]].&lt;br /&gt;
&lt;br /&gt;
The user can add or remove rows by right clicking on the table.&lt;br /&gt;
&lt;br /&gt;
: 2. Columns description&lt;br /&gt;
'''''File'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
This column refers to the VCF file path. Once loaded, the raw name column is automatically filled with every raw genome name contained in the selected VCF file.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Raw name'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Raw name'' column list is automatically filled when a VCF file has been chosen. That list contains every genotype headers contained inside the selected VCF file. Because Genome names might be difficult to remembers, GenPlay-MG offers users the option of adding another name (an alias) using the ''Genome'' column.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Nickname'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
The ''Nickname'' column allows users to associate an alias  to the selected genome. This alias will appear in GenPlay-MG and can be useful because genome names in VCF files are often non descriptive numbers that can be hard to remember.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''''Group'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
Users can gather genomes by group. Group names are used to distinguish genomes  and to perform some specific functionalities.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: 3. Columns edition&amp;lt;br/&amp;gt;&lt;br /&gt;
''Group'', ''Nickname'' and ''File'' column have their own editable list.To edit a cell, click on it, go over the item you want to edit and choose one of the following action:&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add (green symbol on empty item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Edit (pen symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
- Delete (red symbol on an item)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That way, users can set up all columns before starting (or at the same time) to fill the table.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note: ''' The ''Raw name(s)'' column is automatically filled with genome name from the selected VCF file, that column cannot be edited manually.&lt;br /&gt;
&lt;br /&gt;
====== Import/Export ======&lt;br /&gt;
Once a project has been set up, it can be saved using the import/export function. Pressing the export button saves an XML files to the hard drive.  This XML file can then be imported to reload the project.&lt;br /&gt;
&lt;br /&gt;
The XML file structure is simple. Each row are stored in ''row'' mark containing every attribute names such as ''group'', ''genome, ''file'' and ''raw_name''. The settings file is formatted as shown in Figure 4.&lt;br /&gt;
[[image:mg_basics_xml_settings.png|center|frame|Figure 4: XML file settings]]&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the user moves the VCF files or changes one of its genotype headers, the XML file will not work anymore. User has to modify ''file'' and/or ''raw_name'' attribute values.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Load Project ====&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== GUI Overview ==&lt;br /&gt;
[[image:gui_overview.png|right|thumb|200px|GUI Overview 1.Ruler 2.Track List 3.Control Panel 4.Status Bar]]&lt;br /&gt;
&lt;br /&gt;
GenPlay main window is divided in 4 main parts:&lt;br /&gt;
# Ruler&lt;br /&gt;
# Track List&lt;br /&gt;
# Control Panel&lt;br /&gt;
# Status Bar&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Ruler ===&lt;br /&gt;
The ruler shows the coordinates of the current displayed position. &lt;br /&gt;
&lt;br /&gt;
[[image:ruler.png|left|thumb|500px|Ruler 1.Option Button 2.Absolute Positions 3.Relative Positions]]&lt;br /&gt;
&lt;br /&gt;
==== General Option Button ====&lt;br /&gt;
The button on the left of the ruler opens the pop-up menu with all the general options.&lt;br /&gt;
&lt;br /&gt;
==== Absolute Positions ====&lt;br /&gt;
The numbers written in red on top of the ruler are the absolute position on the selected chromosome or scaffold. &lt;br /&gt;
&lt;br /&gt;
The number on the left is the position of the first displayed base. This value can be negative.&lt;br /&gt;
&lt;br /&gt;
The number in the middle is the position of the red line. This value can go from 0 to the length of the current chromosome or scaffold as specified in the chromosome configuration file.&lt;br /&gt;
&lt;br /&gt;
The value on the right is the last displayed position. This value range from 1 to 2*(chromosome length).&lt;br /&gt;
&lt;br /&gt;
==== Relative Position ====&lt;br /&gt;
The numbers written in black on the second line represent the distance from the middle in base pair.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track List ===&lt;br /&gt;
The track list is the cornerstone of the GUI.  From here you can load layers and execute operations.&lt;br /&gt;
&lt;br /&gt;
The tracks are divided into two parts.  &lt;br /&gt;
&lt;br /&gt;
On the left, there is the track handler that becomes highlighted when the mouse is over it. By right clicking on the track handler, a contextual menu appears with all the operations that can be executed on the track and its layer(s).&lt;br /&gt;
&lt;br /&gt;
On the right, the data can be visualized.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Control Panel ===&lt;br /&gt;
[[image:control_panel.png|right|thumb|500px|Control Panel 1.Position Bar 2.Zoom Bar 3.Chromosome Box 4.Position Text Field]]&lt;br /&gt;
The control panel is divided into 4 parts:&lt;br /&gt;
# Position Bar: the position bar allows you to change the position of the current displayed windows&lt;br /&gt;
# Zoom Bar: use the zoom bar to modify the level of zoom&lt;br /&gt;
# Chromosome Box: set the selected chromosome with the chromosome box &lt;br /&gt;
# Position Text Field: the position text field follows the format of the UCSC Genome Browser position field so it is easy to copy and paste the position from one browser to the other&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Status Bar ===&lt;br /&gt;
[[image:status_bar.png|right|thumb|500px|Status Bar 1.Progress Bar 2.Stop Button 3.Operation Description 4.Memory Bar]]&lt;br /&gt;
The status bar helps monitor the progress of the current operation as well as memory usage. It is divided into 4 sub-components:&lt;br /&gt;
# Progress bar, shows the level of completion of the current operation&lt;br /&gt;
# Stop button, allows users to stop the current operation. If the button is not bright red the operation can't be stopped&lt;br /&gt;
# Operation description, displays a short text describing the current operation as well as the elapsed time from the beginning of the operation&lt;br /&gt;
# Memory bar, shows the amount of memory used and the amount of memory available. Make sure that you have enough memory before starting a new operation. You can delete or compress layers to free up memory.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Browsing the Genome ==&lt;br /&gt;
=== Changing the Position ===&lt;br /&gt;
You can change the position of the displayed window by:&lt;br /&gt;
# Dragging any track on the left or on the right with the left button of the mouse&lt;br /&gt;
# Clicking with the middle button of the mouse inside a track and then moving the cursor on the left or on the right of the middle red line&lt;br /&gt;
# Moving the knob of the position bar on the control panel&lt;br /&gt;
# Changing the value of the position text field on the control panel&lt;br /&gt;
# Using the keyboard left and right arrows&lt;br /&gt;
# Double-clicking on a track where you want to center the view&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Chromosomes ===&lt;br /&gt;
You can switch the selected chromosome by:&lt;br /&gt;
# Changing the selection in the chromosome box on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Changing the Zoom ===&lt;br /&gt;
The level of the zoom can be modified by:&lt;br /&gt;
# Wheeling up or down inside a track with the mouse wheel&lt;br /&gt;
# Using the zoom bar on the control panel&lt;br /&gt;
# Changing the text of the position text field on the control panel&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Loading a Layer ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
The layers are the way to show information from files. They can represent information in different manners.&amp;lt;br /&amp;gt;&lt;br /&gt;
A layer is created from a track, each track can contain one or several layers.&amp;lt;br /&amp;gt;&lt;br /&gt;
To load a layer in a track, right click on its handler (the blue part on the left of the track). This opens a contextual menu with the different actions available on the track.&lt;br /&gt;
The menu of a track empty of layer looks like the one in figure 1.&amp;lt;br /&amp;gt;&lt;br /&gt;
By clicking &amp;quot;Add Layer&amp;quot; appears a dialog to select one of the different layer type GenPlay offers (Figure 2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Examples of layers that can be loaded in GenPlay are available for download from the GenPlay Library accessible from the GenPlay.net website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=350px perrow=2&amp;gt;&lt;br /&gt;
image:add_layer.png|Figure 1: Track Contextual Menu&lt;br /&gt;
image:layer_type.png|Figure 2: Layer Types&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Sequencing/Microarray Layer ===&lt;br /&gt;
The Sequencing/Microarray layer allows the visualization of windows of variable/fix sizes with a score associated to these windows.&lt;br /&gt;
Select the “Sequencing/Microarray Layer” option. This opens up a file chooser dialog box. Load the file of your choice from the list of available window files and click the open button.&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequencing/microarray layer.&lt;br /&gt;
&lt;br /&gt;
This opens a new dialog to set different parameters for the new layer (as shown on the figure below). The dialog is separated in 6 sections detailed below.&lt;br /&gt;
[[image:Add_layer_seq_micro.png|right|thumb|300px|New Layer Settings Dialog]]&lt;br /&gt;
&lt;br /&gt;
==== Layer Name ====&lt;br /&gt;
Gives a name to the layer.&lt;br /&gt;
&lt;br /&gt;
==== Bin ====&lt;br /&gt;
By default, the windows generated in sequencing/microarray layer have a variable size. It represents very precisely the content of the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
For some other purposes, users may want to have fixed windows size. They are useful to represent the results of many types of experiments including, but not limited to: CHIP-seq, RNA seq, and TimEX-seq.  Files containing the results of alignments (SAM, bowtie, Eland) and files containing already created bin lists (bed, bgr, etc.) can be loaded using this option. In the case of alignment files, bin lists will be created on the fly as described below. Files containing the results of micro-array experiments can also be loaded as long as they are in one of the accepted formats.&lt;br /&gt;
It lowers the resolution but usually offers better memory usage.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is implemented here by enabling the &amp;quot;Bin Data&amp;quot; option. The &amp;quot;Bin Size&amp;quot; field will then be available in order to give the size of the windows in base pairs.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' A bin size of 1 bp will use a lot of memory. According to the experiment, it may be more efficient to disable the bin data option and stay in variable window size mode.&lt;br /&gt;
&lt;br /&gt;
==== Score Calculation ====&lt;br /&gt;
[[image:score_calculation_methods.png|right|thumb|100px|Name and Score Calculation]]&lt;br /&gt;
It can happen that files contain overlapping windows. In this case, GenPlay splits them into smaller windows using a simple algorithm.&amp;lt;br /&amp;gt;&lt;br /&gt;
This algorithm can be chosen in that section offering the following possibilities:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Addition&lt;br /&gt;
* Average&lt;br /&gt;
* Maximum&lt;br /&gt;
* Minimum&lt;br /&gt;
&lt;br /&gt;
Some examples are shown in the sections below for both [[#For non bined layer|non bined]] and [[#For bined layer|bined]] layers.&lt;br /&gt;
&lt;br /&gt;
==== Strand ====&lt;br /&gt;
If your input file contains information regarding the strands, you'll be able to choose to load the data from either both or only one strand.  &lt;br /&gt;
&lt;br /&gt;
You can also decide to shift the reads from both strands as shown in the figure on the left. To shift the strands just put a value in the &amp;quot;Shift&amp;quot; input box. &lt;br /&gt;
&lt;br /&gt;
The value you entered is going to be added to the position of the data on the 5' strand and subtracted from the ones on the 3' strand.&lt;br /&gt;
&lt;br /&gt;
==== Fragment Length ====&lt;br /&gt;
==== Selected Chromosomes ====&lt;br /&gt;
By default all the chromosomes of the project are selected. If you want to change this selection, click on the &amp;quot;modify selection&amp;quot; button and uncheck the undesired chromosomes. Working on fewer chromosomes will save memory and loading time.&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' GenPlay can accelerate the loading if you know that your file is sorted by chromosome.  If you press Yes when GenPlay asks you if the file is sorted when your file is actually not sorted, the file may load incompletely, leading to a loss of valuable information.  The chromosomes must be ordered the same way it is ordered in the chromosome selection combo-box.&lt;br /&gt;
&lt;br /&gt;
==== Examples of Score Calculations ====&lt;br /&gt;
===== For non bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
[[image:loadVWT_ex1.png|center|frame|Loading of an alignment file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadVWT_ex2.png|center|thumb|400px|Loading of an interval file as a variable window layer]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020&lt;br /&gt;
| 1120 &lt;br /&gt;
| (100 + 30) / 2 = 65&lt;br /&gt;
| Max(100, 30) = 100&lt;br /&gt;
| 100 + 30 = 130&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (100 + 120) / 2 = 110&lt;br /&gt;
| Max(100, 120) = 120&lt;br /&gt;
| 100 + 120 = 220&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== For bined layer =====&lt;br /&gt;
====== Example 1 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score is always one)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex1.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 5&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 2 ======&lt;br /&gt;
Loading of an alignment file as a fixed window layer with a window size of 100: &lt;br /&gt;
&lt;br /&gt;
(each line represents one read position, score varies)&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1125 &lt;br /&gt;
| 1126 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1135 &lt;br /&gt;
| 1136 &lt;br /&gt;
| 3&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1145 &lt;br /&gt;
| 1146 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1149 &lt;br /&gt;
| 1150 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1175 &lt;br /&gt;
| 1176 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1210 &lt;br /&gt;
| 1211 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1230 &lt;br /&gt;
| 1231 &lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1340 &lt;br /&gt;
| 1341 &lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1345 &lt;br /&gt;
| 1346 &lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex2.png|center|frame|Loading of an alignment file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| 7 / 5 = 1.4&lt;br /&gt;
| 3&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 7 / 2 = 3.5&lt;br /&gt;
| 6&lt;br /&gt;
| 7&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example 3 ======&lt;br /&gt;
Loading of an interval file as a fixed window layer with a window size of 100:&lt;br /&gt;
&lt;br /&gt;
''' Input file '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Score&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1020 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 30&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1120 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 120&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1010 &lt;br /&gt;
| 1350 &lt;br /&gt;
| 100&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:loadFWT_ex3.png|center|frame|Loading of an interval file as a fixed window layer with a window size of 100]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Result '''&lt;br /&gt;
{|  cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Chr &lt;br /&gt;
! Start &lt;br /&gt;
! Stop &lt;br /&gt;
! Average&lt;br /&gt;
! Maximum&lt;br /&gt;
! Sum&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1000 &lt;br /&gt;
| 1100 &lt;br /&gt;
| (26.47 + 24) / 2 = 25.23&lt;br /&gt;
| Max(26.47, 24) = 26.47&lt;br /&gt;
| 26.47 + 24 = 50.47&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1100&lt;br /&gt;
| 1200 &lt;br /&gt;
| (29.41 + 6 + 60) / 3 = 31.80&lt;br /&gt;
| Max(29.41, 6, 60) = 60&lt;br /&gt;
| 29.41 + 6 + 60 = 95.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1200 &lt;br /&gt;
| 1300 &lt;br /&gt;
| (29.41 + 60) / 2 = 44.70&lt;br /&gt;
| Max(29.41 +60) = 60&lt;br /&gt;
| 29.41 +60 = 89.41&lt;br /&gt;
|-&lt;br /&gt;
| Chr1 &lt;br /&gt;
| 1300 &lt;br /&gt;
| 1400 &lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
| 14.70&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Gene Annotation Layer ===&lt;br /&gt;
[[image:gene_track.png|left|thumb||A Gene Layer]]&lt;br /&gt;
[[image:score_color.png|right|thumb|40px|Score Color]]&lt;br /&gt;
Select the “Gene Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a gene layer.&lt;br /&gt;
&lt;br /&gt;
Once it's done, just wait until the loading is complete and the gene layer will appear in the track you selected. &lt;br /&gt;
&lt;br /&gt;
Note that the genes on the plus strand are in red and the genes on the minus strand are in blue. If the file contains expression values, the exons are color coded to represent the expression (red = high, blue = low, as shown on the right).&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Repeat Family Layer ===&lt;br /&gt;
Select the &amp;quot;Repeat Layer&amp;quot; option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a repeat layer.&lt;br /&gt;
&lt;br /&gt;
This layer type displays repeats organized by family or class.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a DNA Sequence Layer ===&lt;br /&gt;
Select the “DNA Sequence Layer” option. This opens up a file chooser dialog box that allows you to select the file that you want to load. Please refer to the [[#File formats|File formats]] section if you want to know what kind of file can be loaded as a sequence layer.&lt;br /&gt;
[[image:sequence_track.png|center|thumb|300px|A Sequence Layer]]&lt;br /&gt;
Sequence layers show DNA sequences from .2bit files. &lt;br /&gt;
&lt;br /&gt;
The hg18, hg19, mm8 and mm9 sequence files can be downloaded from the [http://129.98.70.162/wiki/index.php/Library library] of GenPlay.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Mask Layer ===&lt;br /&gt;
[[image:Stripes.png|right|thumb|200px|CPG Islands Shown As Stripes On a Refseq Gene Layer]]&lt;br /&gt;
Select the &amp;quot;Mask Layer&amp;quot; option. The stripes acting as masks can be useful to show regions of interest such as CpG Islands or repeat regions.&lt;br /&gt;
&lt;br /&gt;
Check the [[#File Formats|File Formats]] section out if you need to know what kind of file can be loaded as a stripes.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading a Variant Layer ===&lt;br /&gt;
[[image:Mg_add_layer_variant_selection.png|right|thumb|200px|Add a Variant Layer]]&lt;br /&gt;
Select the &amp;quot;Variant Layer&amp;quot; option, this option is only available in multi-genome projects. This will pop up a new dialog to select which sample the user wants to load, and which variation(s).&lt;br /&gt;
A variant layer is according to only one sample. It is also possible to change the colors of each variation independently by clicking on the colored square next to the variation checkbox.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Loading Data From a DAS Server ===&lt;br /&gt;
The distributed annotation system (DAS) is a client-server system in which a client can retrieve data from one or multiple servers. GenPlay can connect to any server that follows the DAS/1 protocol as specified by [http://www.biodas.org/wiki/DAS/1 BioDAS]&lt;br /&gt;
&lt;br /&gt;
[[image:DAS_dialog.png|left|thumb||DAS Dialog]]&lt;br /&gt;
The “Add Layer from DAS Server” option from the track handler menu will show the DAS Dialog.&lt;br /&gt;
&lt;br /&gt;
Select the server from which you want to retrieve the data in the &amp;quot;Server&amp;quot; box. &lt;br /&gt;
&lt;br /&gt;
Then select the &amp;quot;Data Source&amp;quot;. Most of the time, the Data Source corresponds to the reference genome that you want to work on.&lt;br /&gt;
&lt;br /&gt;
Once that's done you need to select the data that you want to retrieve in the &amp;quot;Data Type&amp;quot; box.&lt;br /&gt;
&lt;br /&gt;
GenPlay can either generate a gene layer or a variable window layer from the retrieved data. You can select what type of output layer you want in the &amp;quot;Generate&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
Finally, you can also choose to download data on only a part of the genome. This can be useful because retrieving data from a DAS server can be time consuming.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The [[#DAS server|DAS server]] section shows how to add new servers to the list of available servers in the DAS dialog.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Main Menu ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|200px|Main Menu]]&lt;br /&gt;
On GenPlay’s main screen, click on the top left button (shown by a little hammer and wrench) to pop up the main menu.&lt;br /&gt;
&lt;br /&gt;
=== New Project ===&lt;br /&gt;
This will pop up the welcome screen in order to start a new project. All work not saved will be lost.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Load / Save Project ===&lt;br /&gt;
This menu allows you to load or to save a whole GenPlay project in a space efficient binary compressed format. When you load a GenPlay project, all the tracks and layers of your current project will be replaced by the ones from the loaded project and all the information that hasn't been saved will be lost.&lt;br /&gt;
'''Important Note:''' The GenPlay project files may be dependent on the version of GenPlay you're using. Be sure to remember with which version of GenPlay you saved a project and use the same version next time you load your project.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Full Screen ===&lt;br /&gt;
Click on this item from the main menu to toggle the full screen mode. When the full screen mode is on, the control panel and the status bar are hidden. &lt;br /&gt;
&lt;br /&gt;
You can also toggle the full screen mode by pressing the F11 key.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Warnings report ===&lt;br /&gt;
This option will pop up the Warnings report dialog in order to consult previous and current alerts.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Option ===&lt;br /&gt;
The option menu item allows you to modify the configuration of GenPlay. Please refer to the section [[#Changing the Configuration of GenPlay|Changing the configuration of GenPlay]] for further information.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== RNA To DNA Reference ===&lt;br /&gt;
This option allows you to transformed the coordinate system of the result of a RNA-Seq experiment based on alignment to a transcriptome  (for instance  all refseq genes),  to a genomic coordinate system.&lt;br /&gt;
&lt;br /&gt;
You need two files in order to use this functionality.&lt;br /&gt;
# The result of the RNA-Seq experiment, called &amp;quot;Coverage File&amp;quot; in GenPlay. This file must be in bedGraph file format.&lt;br /&gt;
# An annotation file in bed format. &lt;br /&gt;
&lt;br /&gt;
Two output files can be generated:&lt;br /&gt;
# A bedGraph file with the position based on a reference genome&lt;br /&gt;
# A annotation GdpGene file &lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Coverage File:&lt;br /&gt;
 NM_000016	0	413	0&lt;br /&gt;
 NM_000016	413	456	1&lt;br /&gt;
 NM_000016	456	471	2&lt;br /&gt;
 NM_000016	471	488	3&lt;br /&gt;
 NM_000016	488	494	2&lt;br /&gt;
 NM_000016	494	504	3&lt;br /&gt;
&lt;br /&gt;
Annotation File:&lt;br /&gt;
 chr1	76190042	76229353	NM_000016	0	+	76190472	76228448	0	12	460,88,98,70,101,81,131,109,141,96,249,977,	0,4043,8286,8495,9170,10433,15622,21448,25061,26093,36764,38334,&lt;br /&gt;
&lt;br /&gt;
The result as a bedGraph file is:&lt;br /&gt;
 chr1	76190455	76190498	43.0&lt;br /&gt;
 chr1	76190498	76190502	8.0&lt;br /&gt;
 chr1	76194085	76194096	22.0&lt;br /&gt;
 chr1	76194096	76194113	51.0&lt;br /&gt;
 chr1	76194113	76194119	12.0&lt;br /&gt;
 chr1	76194119	76194129	30.0&lt;br /&gt;
&lt;br /&gt;
And the result as a GdpGene file is:&lt;br /&gt;
 NM_000016	chr1	+	76190042	76229353	76190042,76194085,76198328,76198537,76199212,76200475,76205664,76211490,76215103,76216135,76226806,76228376	76190502,76194173,76198426,76198607,76199313,76200556,76205795,76211599,76215244,76216231,76227055,76229353	667888.95,1506024.1,0,0,0,0,0,0,0,0,0,0&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Help and About GenPlay ===&lt;br /&gt;
The help and the about GenPlay options open a browser showing respectively the documentation and about pages of GenPlay website.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Exit ===&lt;br /&gt;
This option closes the application after asking for confirmation.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Changing the Configuration of GenPlay ==&lt;br /&gt;
[[image:main_menu.png|right|thumb|250px|Option Menu]]&lt;br /&gt;
Click on the option item of the [[#Main Menu|main menu]] to open the configuration screen.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== General Options ===&lt;br /&gt;
The following screen lets you set the general options.&lt;br /&gt;
&lt;br /&gt;
The Default Directory lets the user choose which folder to open by default for any of the file chooser within GenPlay.&lt;br /&gt;
&lt;br /&gt;
From this screen, you can also modify the appearance of the software by changing the look &amp;amp; feel.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track Option ===&lt;br /&gt;
The Number of Tracks text box defines the maximum number of tracks that can be loaded on GenPlay.&lt;br /&gt;
&lt;br /&gt;
The Default Track Height text box defines the height of each of the tracks. &lt;br /&gt;
&lt;br /&gt;
The Undo Count text box defines the number of operations that can be undone. Note that the higher the number of undos selected, the more memory will be required.&lt;br /&gt;
&lt;br /&gt;
The reset option allows the user to easily reset a layer in order to come back as if it has been freshly loaded.&lt;br /&gt;
&lt;br /&gt;
The legend showing layers name on the upper right of a track can also be enabled or disabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DAS Server ===&lt;br /&gt;
The DAS server option shows the list of existing DAS servers along with the URL where these servers are located. It also provides the options to add new servers and remove existing servers.&lt;br /&gt;
&lt;br /&gt;
GenPlay can communicate and retrieve data from the servers implementing the [http://www.biodas.org/wiki/DAS/1 DAS/1 protocol]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Restore Default ===&lt;br /&gt;
The Restore Default configuration restores everything back to the factory settings.&lt;br /&gt;
&amp;lt;gallery widths=220px heights=100px perrow=3&amp;gt;&lt;br /&gt;
image:Options_general.png|General Options&lt;br /&gt;
image:options_track.png|Track Option&lt;br /&gt;
image:das_server_option.png|DAS Server&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== File Formats ==&lt;br /&gt;
The different file formats used in GenPlay are described on this [[GenPlay File Formats|page]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Using Tracks ==&lt;br /&gt;
[[image:add_layer.png|right|thumb|150px|Track Menu]]&lt;br /&gt;
=== Handling Tracks ===&lt;br /&gt;
==== Moving a Track ====&lt;br /&gt;
To move a track up or down in the track list, just click on the track handler (the left part of the track with the track number) and drag the track to the desired position.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Inserting a Track ====&lt;br /&gt;
To insert a track, right click on the track handler of the track right under where you want to insert and choose the &amp;quot;Insert&amp;quot; option.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Deleting a Track ====&lt;br /&gt;
To delete, select  a track and click on the delete option of the contextual menu or press Delete on the keyboard.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Copying, Cutting and Pasting a Layer ====&lt;br /&gt;
[[image:paste_layer.png|right|thumb|200px|Track Menu]]&lt;br /&gt;
To copy layers, select the desired track where the layers are and click on the copy option in the contextual menu or press CTRL+C.&lt;br /&gt;
&lt;br /&gt;
To cut layers, select the desired track where the layers are and click on the cut option in the contextual menu or press CTRL+X.&lt;br /&gt;
&lt;br /&gt;
To paste a track, select the track where you want to paste and click on the paste option in the contextual menu or press CTRL+P.&amp;lt;br /&amp;gt;&lt;br /&gt;
A new window will appear showing all layers recently copied/cut that can be pasted on the track. The user has to select all layers he wants to paste and then click &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Taking a Screenshot of the Track ====&lt;br /&gt;
To take a screenshot, select a track and choose the &amp;quot;Save as Image&amp;quot; option in the contextual menu.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
==== Using the Undo / Redo / Reset Options ====&lt;br /&gt;
The undo, redo and reset options are only available for the Variable and Fixed Window layers. They are accessible from the contextual menu when you right click on the track handler.&lt;br /&gt;
&lt;br /&gt;
The number of undo and redo operations available can be specified as described in the [[#Track Option|Track Option]] section. Note that this operations are memory consuming and reducing the number of undo / redo available can save memory.&lt;br /&gt;
&lt;br /&gt;
The reset operation restore the track to the way it was right after being loaded. A reset operation can also be undone.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Track/Layer Settings ===&lt;br /&gt;
==== General ====&lt;br /&gt;
[[image:track_settings_track.png|right|thumb|300px|Track Settings - General]]&lt;br /&gt;
===== Basic Options =====&lt;br /&gt;
*Name: The name of the track.&lt;br /&gt;
*Height: The height of the track.&lt;br /&gt;
===== Axis Options =====&lt;br /&gt;
*Show horizontal lines: Split the track horizontally.&lt;br /&gt;
*Horizontal line count: Number of horizontal lines, equally separated.&lt;br /&gt;
*Show vertical lines: Split the track vertically.&lt;br /&gt;
*Vertical line count: Number of vertical lines, equally separated.&lt;br /&gt;
===== Score Options =====&lt;br /&gt;
*Minimum Score: The minimum score to show.&lt;br /&gt;
*Maximum Score: The maximum score to show.&lt;br /&gt;
*Auto-rescaled: Enable the automatic score rescaling.&lt;br /&gt;
*Score Position: Choose where the score is shown (top/bottom).&lt;br /&gt;
*Score Color: Set the font color of the score.&lt;br /&gt;
==== Layers ====&lt;br /&gt;
[[image:track_settings_layer.png|right|thumb|300px|Track Settings - Layers]]&lt;br /&gt;
*Name: Click on the name to edit it.&lt;br /&gt;
*Type: The type of layer.&lt;br /&gt;
*Color: Click to edit the color of the layer.&lt;br /&gt;
*Graph Type: Click to change the graph type:&lt;br /&gt;
**Curve&lt;br /&gt;
**Points&lt;br /&gt;
**Bar&lt;br /&gt;
**Dense&lt;br /&gt;
*Visible: Show/hide the layer.&lt;br /&gt;
*Active: Set the layer as &amp;quot;active&amp;quot;. The active layer as direct interaction with the mouse pointer and clicks.&lt;br /&gt;
*Set For Deletion: If set, the layer(s) will be deleted when clicking &amp;quot;Ok&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
== Operations ==&lt;br /&gt;
Once a layer is loaded, a right click on the location of the track handler opens a popup menu as shown in the figure below.&lt;br /&gt;
[[image:operation_menu.png|center|thumb|600px|Operation Menu]]&lt;br /&gt;
The Operation sub-menu of the popup menu contains all the actions that you can use on the selected layer.&lt;br /&gt;
=== Sequencing/Microarray Layer Operations ===&lt;br /&gt;
Bin-ed and non bin-ed layers do not have all the same operations. They share most of them but some are specific.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=400px perrow=2&amp;gt;&lt;br /&gt;
image:micro_seq_operations.png|Non bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
image:micro_seq_bin_operations.png|Bin-ed Microarray/Sequencing Layer Operations&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
==== Common operations ====&lt;br /&gt;
===== Show History =====&lt;br /&gt;
Show the history of the layer, every changes that have been made since loaded.&lt;br /&gt;
===== Constant Operation =====&lt;br /&gt;
[[image:Micro_seq_constant_operation.png|right|thumb|250px|Operation With Constant]]&lt;br /&gt;
Thes operations use one constant in the following ways:&lt;br /&gt;
* Addition: adds the constant to each window (F(x) = x + constant).&lt;br /&gt;
* Subtraction: substracts the constant to each window (F(x) = x - constant).&lt;br /&gt;
* Multiplication: multiplies the score by the constant(F(x) = x * constant).&lt;br /&gt;
* Division: divides the score by the constant (F(x) = x / constant).&lt;br /&gt;
* Inversion: inverts the score of each windows (F(x) = constant / x).&lt;br /&gt;
* Unique Score: sets all windows to an unique score (F(x) = constant).&lt;br /&gt;
The function can also be applied to null windows by checking the box.&lt;br /&gt;
===== Two Layers Operation =====&lt;br /&gt;
This allows operations between two Sequencing/Microarray layers, bin-ed and non bin-ed.&amp;lt;br /&amp;gt;&lt;br /&gt;
In order to set the operations, few windows appear in the following order:&lt;br /&gt;
# A first window appears in order to select the second layer.&lt;br /&gt;
# The second window asks in which track the resulting layer will be put.&lt;br /&gt;
# The third and last window offers the algorithms to complete the operation (x1: score first layer; x2: score second layer):&lt;br /&gt;
* Addition: add scores (x = x1 + x2).&lt;br /&gt;
* Subtraction: substract scores (x = x1 - x2).&lt;br /&gt;
* Multiplication: multiply scores (x = x1 * x2).&lt;br /&gt;
* Division: divide scores (x = x1 / x2).&lt;br /&gt;
* Average: average score (x = (x1 + x2) / 2).&lt;br /&gt;
* Maximum: keeps the highest score.&lt;br /&gt;
* Minimum: keeps the lowest score.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The only way the resulting layer would be a bin-ed layer is to make an operation between two bin-ed layer having the same bin size. Any other case will result in a non bin-ed layer.&lt;br /&gt;
===== Index =====&lt;br /&gt;
Indexation can be useful to compare multiple layers at the same scale. It &amp;quot;re-scales&amp;quot; existing scores to a new range defined by the user.&amp;lt;br /&amp;gt;&lt;br /&gt;
If scores go from 10 to 600 but for some reason would need to be observed between 0 and 100, this operation will do the work.&amp;lt;br /&amp;gt;&lt;br /&gt;
It will first ask for the new minimum and the new maximum. The next dialog asks to perfom the re-scaling by chromosome independently or genome wide.&amp;lt;br /&amp;gt;&lt;br /&gt;
Using the previous example, for a new scale of [0; 100] if the first chromosome as a maximum score of 600 and the second one has a maximum score of 800; 800 will become the reference value of 100 for both chromosomes if the operation is processed genome wide. If the operation is processed by chromosome independently, 600 will become the reference value of 100 for the first chromosome, and 800 for the second chromosome.&lt;br /&gt;
&lt;br /&gt;
Since this operation uses the minimum and maximum scores, it is very important to note that indexing does not work well in the presence of outliers. Indexing works best if outliers are eliminated or removed first using a filter (see below).&lt;br /&gt;
===== Log =====&lt;br /&gt;
[[image:operation_log.png|right|thumb|100px|Logarithm Bases]]&lt;br /&gt;
For each window, the log operation applies the function f(x) = log(x), where x is the window score. The base of the logarithm function can be selected between either 2 (binary log), e (natural log) or 10 (common log).&lt;br /&gt;
===== Normalize =====&lt;br /&gt;
[[image:operation_Normalize.png|left|thumb|100px|Normalization Coefficient]]&lt;br /&gt;
After a normalize operation the score of each window is divided by the result of the Score Count operation and multiplied by a specified fixed value. By default, after normalization the scores are expressed per 10 millions reads.&lt;br /&gt;
===== Standard Score =====&lt;br /&gt;
Calculates the standard score for the selected layer i.e. (x - avg) / stdev; where x is the score, avg is the average score of the layer and stdev is the standard deviation of the scores of the layer.&lt;br /&gt;
===== Filter =====&lt;br /&gt;
GenPlay provides four different filters:&lt;br /&gt;
====== Percentage Filter ======&lt;br /&gt;
[[image:operation_pfilter.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the X% lowest values and the Y% greatest values where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Threshold Filter ======&lt;br /&gt;
[[image:operation_tfilter.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option removes the values that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
====== Band-Stop Filter ======&lt;br /&gt;
[[image:operation_bfilter.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes values between two specified threshold.&lt;br /&gt;
====== Count Filter ======&lt;br /&gt;
[[image:operation_cfilter.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest values and the Y greatest values, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Transfrag =====&lt;br /&gt;
This operation aggregates the windows of the selected layer that are separated by a gap smaller than a specified size (in bp). &lt;br /&gt;
&lt;br /&gt;
The score of the new window can be the sum, the average or the maximum of the scores of the aggregated windows.&lt;br /&gt;
===== Score Distribution Histogram =====&lt;br /&gt;
The show repartition operation generates a graph showing the distribution of the scores of the selected layers. The options for the type of plot are score v/s window count and score v/s base pair count.&lt;br /&gt;
&lt;br /&gt;
The user needs to choose a size for the bins of scores. The graphics will show, depending on the selection, how many windows or how many base pair there is for each bin of scores.&lt;br /&gt;
===== Convert Layer =====&lt;br /&gt;
This operation converts the current layer into another layer among the following:&lt;br /&gt;
*Gene Annotation Layer&lt;br /&gt;
*Microarray/Sequencing Layer bin/non-bin&lt;br /&gt;
*Mask Layer&lt;br /&gt;
==== Non Bin-ed Layers Only ====&lt;br /&gt;
===== CG Methylation Profile =====&lt;br /&gt;
This operation computes the methylation values on CG sequences by combining the value on the C position and the value on the G position.&amp;lt;br /&amp;gt;&lt;br /&gt;
This is based on data fron a sequence layer in order to find CG sequences.&lt;br /&gt;
&lt;br /&gt;
==== Bin-ed Layers Only ====&lt;br /&gt;
===== Smooth =====&lt;br /&gt;
The smooth operation can be processed according to the 3 following algorithms:&lt;br /&gt;
====== Gauss Smoothing ======&lt;br /&gt;
[[image:operation_fwt_gaussian.png|right|thumb|150px|Sigma Value]]&lt;br /&gt;
This operation applies a [http://en.wikipedia.org/wiki/Gaussian_filter Gaussian filter] to the layer, depending on the sigma value provided by the user.&lt;br /&gt;
&lt;br /&gt;
G(x) = (1 / v (2?) s) * e-x2 / 2 s2    &lt;br /&gt;
&lt;br /&gt;
Where, x is the score and s is the standard deviation of the layer.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Loess Smoothing ======&lt;br /&gt;
This operation computes the Loess regression of degree 1 on the selected layer. &lt;br /&gt;
&lt;br /&gt;
For each x value where a y value is to be calculated, the Loess technique performs a regression on points in a moving range around the x value, where the values in the moving range are weighted according to their distance from this X value.&lt;br /&gt;
&lt;br /&gt;
The Loess regression is a smoothing function. You will need to precise the half size of the moving window on which the regression will be computed. &lt;br /&gt;
&lt;br /&gt;
The weight function of the Loess regression is computed as follow: W(i) = (1 - X(i)^3)^3, where X(i) is the normalized distance: current distance / maximum distance among points in the moving regression.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
====== Moving Average Smoothing ======&lt;br /&gt;
For each window of the layer, compute the average on a region of a specified size center on the window and score the window with the result of this average. The half-size of the region is prompted prior to the calculation.&lt;br /&gt;
&lt;br /&gt;
You can choose the extrapolate option to &amp;quot;fill&amp;quot; the windows with a score of zero.&lt;br /&gt;
===== Find Peaks =====&lt;br /&gt;
The find peak operation offers three different algorithms that can be used to find the peaks:&lt;br /&gt;
====== Standard Deviation Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_sfinder.png|left|thumb|150px|Standard Deviation Peak Finder]]&lt;br /&gt;
The standard deviation peak finder prompts the user to enter two parameters.&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side in order to calculate the standard deviation.&lt;br /&gt;
 &lt;br /&gt;
For example, if S = 10, it means that for each window we consider 10 windows to the left and 10 windows to the right to calculate the standard deviation.&lt;br /&gt;
&lt;br /&gt;
For a window to be accepted, its standard deviation needs to be at least ‘T’ times greater than the value of the standard deviation of the chromosome.&lt;br /&gt;
====== Density Peak Finder ======&lt;br /&gt;
[[image:operation_fwt_dfinder.png|right|thumb|150px|Density Peak Finder]]&lt;br /&gt;
The Density Finder works as follows:&lt;br /&gt;
&lt;br /&gt;
The parameter ‘S’ specifies the number of windows to be considered for each window on either side of the window under consideration.&lt;br /&gt;
&lt;br /&gt;
For the window under consideration to be accepted, at least ‘P’ percentage of values must be above the high threshold ‘H’ or at least ‘P’ percentage of values must be below the low threshold ‘L’.&lt;br /&gt;
====== Island Finder ======&lt;br /&gt;
[[image:operation_fwt_ifinder.png|left|thumb|150px|Island Finder]]&lt;br /&gt;
The Island Finder is based on the algorithm described in the paper &lt;br /&gt;
[http://bioinformatics.oxfordjournals.org/content/25/15/1952.full.pdf Zang, C., Schones, D. E., Zeng, C., Cui, K., Zhao, K., and Peng, W. (2009). A clustering approach for identification of enriched domains from histone modification chip-seq data. Bioinformatics (Oxford, England), 25(15):1952-1958.]&lt;br /&gt;
&lt;br /&gt;
The parameters window value and gap of the island finder are the parameters ‘l0’ and ‘g’ respectively. The island score allows the user to select the scores greater than or equal to a particular value. The island length parameter allows the user to select islands encompassing at least specified number of windows.&lt;br /&gt;
There are two result types:&lt;br /&gt;
* Start values:  Depicts only those islands that are selected and removes the ones that are rejected.&lt;br /&gt;
* Island score: Depicts the islands by considering the score.&lt;br /&gt;
* Island Summit: Depicts the island with the summit of the input island as a score.&lt;br /&gt;
===== Correlation =====&lt;br /&gt;
[[image:operation_fwt_correlation.png|right|thumb|100px|Correlation Report]]&lt;br /&gt;
The correlation operation computes the Pearson’s correlation between the score values of two layers. The two layers need to have the same bin size. The following formula is used to calculate the correlation:&lt;br /&gt;
&lt;br /&gt;
? = ( ? xi yi – n x’ y’) / ((n - 1) sx sy) &lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* ? is the Pearson’s correlation&lt;br /&gt;
* xi and yi are the scores of the layers &lt;br /&gt;
* n is the number of values&lt;br /&gt;
* x’ and y’ are the means of the scores of the layers&lt;br /&gt;
* sx and sy are the standard deviations of the scores of the layers&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a correlation report.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The correlation is computed only on the windows that are different from zero on both layer. If one of the layer has a zero value window, the window of the other layer with the same coordinate will be skipped as well.&lt;br /&gt;
===== Density =====&lt;br /&gt;
This operation generates a new fixed window layer where the score of the windows represent the density of non null windows in the neighborhood of the windows.&lt;br /&gt;
You first need to enter the size S of the neighborhood.&lt;br /&gt;
For each window W, the algorithm count how many of the S windows before W and the S windows after W have a score different from zero. This value is then divided by 2 * S + 1 and the result is the score of W.&lt;br /&gt;
===== Intervals Scoring =====&lt;br /&gt;
This operation needs two layers:&lt;br /&gt;
* The selected layer that defines the scores&lt;br /&gt;
* A second layer that defines the intervals&lt;br /&gt;
This operation generates a new layer containing the intervals of the &amp;quot;interval track&amp;quot;. For each interval the algorithm then looks at the corresponding scores in the score layer, and compute either the maximum, the average or the sum of all the scores that fall in the interval. This value is the new score value in the result layer.&lt;br /&gt;
&lt;br /&gt;
You can also choose to use only a certain percentage of the greatest scores that falls in the interval.&lt;br /&gt;
===== Concatenate =====&lt;br /&gt;
[[image:operation_select_tracks.png|right|thumb|150px|Select Layers to Concatenate]]&lt;br /&gt;
The concatenate operations allows you to generate a file containing the scores of multiple fixed window layers that have the same bin size.&lt;br /&gt;
The output file contains the following fields:&lt;br /&gt;
# chromosome&lt;br /&gt;
# start position&lt;br /&gt;
# stop position&lt;br /&gt;
# score layer 1&lt;br /&gt;
# score layer 2&lt;br /&gt;
# score layer 3&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Gene Layer Operations ===&lt;br /&gt;
Directly on a gene layer, you can:&lt;br /&gt;
# Double click on a gene to open a web page describing the gene. Make sure that your input file contains a geneDBURL line as described in the [[#File Formats|File Formats]] section in order to enable this option.&lt;br /&gt;
# Put the mouse over a gene to have some information about the name and the score of the gene. If the exons of the gene have different scores you can put your mouse over an exon to have the exon score.&lt;br /&gt;
==== Score Count ====&lt;br /&gt;
This operation count the sum of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Average ====&lt;br /&gt;
This operation computes the average of all scores.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes ====&lt;br /&gt;
This operation count the total number of genes.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Genes with Non-Null Score ====&lt;br /&gt;
This operation count the total number of genes excluding the ones with a score of 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Count Exons ====&lt;br /&gt;
This operation count the total number of exons.&amp;lt;br /&amp;gt;&lt;br /&gt;
A window asks first to select chromosomes to include in the calculation (all by default).&lt;br /&gt;
==== Search Gene ====&lt;br /&gt;
[[image:gene_search_gene.png|left|thumb|100px|Search Gene]]&lt;br /&gt;
Use this option to search a gene on the selected layer by typing the name of the gene.&lt;br /&gt;
&lt;br /&gt;
Check the Match Case option if you want the search to be case sensitive.&lt;br /&gt;
Check the whole word option if you want to search genes where the input match the whole name of the gene.&lt;br /&gt;
Press next or previous to find respectively the next or previous gene found.&lt;br /&gt;
You can also open the Find Gene dialog by pressing CTRL+F after selecting a gene layer.&lt;br /&gt;
==== Extract Intervals ====&lt;br /&gt;
[[image:gene_extract_intervals.png|right|thumb|200px|Extract Intervals]]&lt;br /&gt;
This option allows you to extract intervals defined relatively to the beginning, the end or the middle of a gene and to generate a new gene layer showing these intervals.&lt;br /&gt;
&lt;br /&gt;
You can, for example, defined promoters as regions that starts 100bp before the beginning of genes and that ends 150bp after the beginning of genes. This option would allow you to generate a new layer from this parameters.&lt;br /&gt;
==== Extract Exons ====&lt;br /&gt;
[[image:gene_extract_exons.png|right|thumb|150px|Extract Exons]]&lt;br /&gt;
This option generate a new gene layer showing only the exons of the genes of the selected layer. &lt;br /&gt;
&lt;br /&gt;
You can choose between the three following options:&lt;br /&gt;
# Extract the first exon of the genes&lt;br /&gt;
# Extract the last exon&lt;br /&gt;
# Extract all the exons&lt;br /&gt;
==== Unique Score ====&lt;br /&gt;
[[image:gene_unique_score.png|right|thumb|150px|Unique Score]]&lt;br /&gt;
This operation sets the same score for all exons.&lt;br /&gt;
==== Score Exons ====&lt;br /&gt;
[[image:gene_score_exons.png|right|thumb|200px|Score Exons]]&lt;br /&gt;
To execute this operation you need to have at least one microarray/sequencing layer loaded. For each exon of each gene of the selected gene layer, this operation computes a new score based on the window score from the selected layer that falls into the exon. There are 3 different ways to compute the new score:&lt;br /&gt;
*Base Coverage Sum&lt;br /&gt;
*Maximum coverage&lt;br /&gt;
*RPKM&lt;br /&gt;
==== Filter ====&lt;br /&gt;
This option provides four different filters for gene layers:&lt;br /&gt;
===== Percentage Filter =====&lt;br /&gt;
[[image:gene_filter_percentage.png|right|thumb|130px|Percentage Filter]]&lt;br /&gt;
This option filters the genes with the X% lowest overall score and the Y% greatest overall scores where X and Y are two decimals and where X + Y &amp;lt;= 100.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Threshold Filter =====&lt;br /&gt;
[[image:gene_filter_threshold.png|right|thumb|130px|Threshold Filter]]&lt;br /&gt;
This option filters the genes with an overall score that are lower than X OR greater than Y, where X and Y are two specified threshold values.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
===== Band-Stop Filter =====&lt;br /&gt;
[[image:gene_filter_band-stop.png|right|thumb|130px|Band-Stop Filter]]&lt;br /&gt;
This option removes the genes with an overall score between two specified threshold.&lt;br /&gt;
===== Count Filter =====&lt;br /&gt;
[[image:gene_filter_count.png|right|thumb|130px|Count Filter]]&lt;br /&gt;
This option filters the X lowest scored genes and the Y greatest scored genes, where X and Y are two specified integers.&lt;br /&gt;
You can choose between removing the filtered values (remove) or setting the filtered values to the boundary values (saturate).&lt;br /&gt;
==== Filter Strand ====&lt;br /&gt;
You need to select a strand when prompted.  At the end of the operation the layer will contain only the genes on the selected strand. All the other genes will have been removed.&lt;br /&gt;
==== Rename Genes ====&lt;br /&gt;
This operation allows you to change the name of the genes. You need to provide a text file where each line contains the current gene name and the new gene name separated by a tabulation. Every time a gene with a name from the first column is found this name will be replace by the new gene name from the second column.&lt;br /&gt;
==== Distance Calculation ====&lt;br /&gt;
Development in progress, coming soon.&lt;br /&gt;
==== Score Repartition Around Start ====&lt;br /&gt;
You first need to select a Fixed window layer containing the scores.  After that, you need to select the chromosomes on which you want to execute the operation. You also need to specify a bin size S, a bin count C and a method for the calculation of the scores.  &lt;br /&gt;
&lt;br /&gt;
The operation will create C bins on each side of the start position of each gene.  The size S of each bin is in base-pair.  Depending of the method of calculation chosen the operation is going to compute the sum, the maximum or the average of the scores for each corresponding bin from each gene and display a bar  graph of the result. The data can be exported by right-clicking on the graph and using the &amp;quot;save as&amp;quot; function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multi-curve graph can be generated using the following procedure:&amp;lt;br /&amp;gt;&lt;br /&gt;
To generate a comparison between 2 fixed-window layers: 1) Perform an analysis for the first layer as described above. 2) Save it to your hard drive. 3) Close the graph window. 4) Perform the same analysis on the second layer. 4) Right click on the second graph and choose the load data option. 5) Load the first analysis. Colors of the curves, type of graphs (bar, points, curve) and scale can be adjusted by right-clicking on the graph.   Procedure can be used to load more than two graphs. To produce more complex graphs we recommend loading the saved data on your favorites spreadsheet software. &lt;br /&gt;
Score Repartition Around Start&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Repeat Layer Operations ===&lt;br /&gt;
There is currently no operation available for the repeat layer.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== DNA Sequence Layer Operations ===&lt;br /&gt;
There is currently no operation available for the sequence layers.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Mask Layer Operations ===&lt;br /&gt;
Documentation in writing...&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Variant Layer Operations ===&lt;br /&gt;
Documentation in writing...&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Gene_filter_count.png&amp;diff=1612</id>
		<title>File:Gene filter count.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Gene_filter_count.png&amp;diff=1612"/>
				<updated>2013-10-04T20:00:26Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Gene_filter_band-stop.png&amp;diff=1611</id>
		<title>File:Gene filter band-stop.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Gene_filter_band-stop.png&amp;diff=1611"/>
				<updated>2013-10-04T20:00:15Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Gene_filter_threshold.png&amp;diff=1610</id>
		<title>File:Gene filter threshold.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Gene_filter_threshold.png&amp;diff=1610"/>
				<updated>2013-10-04T20:00:05Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Gene_filter_percentage.png&amp;diff=1609</id>
		<title>File:Gene filter percentage.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Gene_filter_percentage.png&amp;diff=1609"/>
				<updated>2013-10-04T19:59:44Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Gene_score_exons.png&amp;diff=1607</id>
		<title>File:Gene score exons.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Gene_score_exons.png&amp;diff=1607"/>
				<updated>2013-10-04T18:15:29Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Gene_unique_score.png&amp;diff=1606</id>
		<title>File:Gene unique score.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Gene_unique_score.png&amp;diff=1606"/>
				<updated>2013-10-04T18:15:21Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Gene_extract_exons.png&amp;diff=1605</id>
		<title>File:Gene extract exons.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Gene_extract_exons.png&amp;diff=1605"/>
				<updated>2013-10-04T18:15:10Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Gene_extract_intervals.png&amp;diff=1604</id>
		<title>File:Gene extract intervals.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Gene_extract_intervals.png&amp;diff=1604"/>
				<updated>2013-10-04T18:14:59Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Gene_search_gene.png&amp;diff=1603</id>
		<title>File:Gene search gene.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Gene_search_gene.png&amp;diff=1603"/>
				<updated>2013-10-04T18:14:45Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Gene_operations.png&amp;diff=1602</id>
		<title>File:Gene operations.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Gene_operations.png&amp;diff=1602"/>
				<updated>2013-10-04T18:14:32Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Operation_menu.png&amp;diff=1598</id>
		<title>File:Operation menu.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Operation_menu.png&amp;diff=1598"/>
				<updated>2013-10-03T21:40:57Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: uploaded a new version of &amp;amp;quot;File:Operation menu.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Micro_seq_constant_operation.png&amp;diff=1595</id>
		<title>File:Micro seq constant operation.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Micro_seq_constant_operation.png&amp;diff=1595"/>
				<updated>2013-10-03T18:21:50Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Micro_seq_bin_operations.png&amp;diff=1594</id>
		<title>File:Micro seq bin operations.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Micro_seq_bin_operations.png&amp;diff=1594"/>
				<updated>2013-10-03T18:21:33Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Micro_seq_operations.png&amp;diff=1593</id>
		<title>File:Micro seq operations.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Micro_seq_operations.png&amp;diff=1593"/>
				<updated>2013-10-03T18:21:16Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Track_settings_layer.png&amp;diff=1590</id>
		<title>File:Track settings layer.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Track_settings_layer.png&amp;diff=1590"/>
				<updated>2013-10-01T18:44:23Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Track_settings_track.png&amp;diff=1589</id>
		<title>File:Track settings track.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Track_settings_track.png&amp;diff=1589"/>
				<updated>2013-10-01T18:44:03Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Paste_layer.png&amp;diff=1588</id>
		<title>File:Paste layer.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Paste_layer.png&amp;diff=1588"/>
				<updated>2013-10-01T18:23:35Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Options_general.png&amp;diff=1585</id>
		<title>File:Options general.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Options_general.png&amp;diff=1585"/>
				<updated>2013-10-01T16:45:21Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	<entry>
		<id>http://www.genplay.net/wiki/index.php?title=File:Options_track.png&amp;diff=1583</id>
		<title>File:Options track.png</title>
		<link rel="alternate" type="text/html" href="http://www.genplay.net/wiki/index.php?title=File:Options_track.png&amp;diff=1583"/>
				<updated>2013-10-01T16:05:17Z</updated>
		
		<summary type="html">&lt;p&gt;Nicolas: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nicolas</name></author>	</entry>

	</feed>