<commit_before>package EnsEMBL::Web::ImageConfig::ld_population;

use strict;
use warnings;
no warnings 'uninitialized';

use base qw(EnsEMBL::Web::ImageConfig);

sub init {
  my $self = shift;   

  $self->set_parameters({

    'title'         => 'Population Features',
    'show_buttons'  => 'no',  # do not show +/- buttons
    'show_labels'   => 'yes',  # show track names on left-hand side
    'label_width'   => 113,   # width of labels on left-hand side
    'margin'        => 5,     # margin
    'spacing'       => 2,     # spacing
  });


  $self->create_menus(
  'other'               =>  'Features',
  );

    $self->add_tracks( 'other',
    [ 'text',         '',     'text',         { 'display' => 'normal', 'strand' => 'r', 'menu' => 'no' } ],
    [ 'tagged_snp',   '',     'tagged_snp',   { 'display' => 'normal',  'strand' => 'r', 'colours' => $self->species_defs->colour('variation'),  'depth' => '10000',  'style' => 'box', 'caption' => 'Tagged SNPs', 'name' => 'Tagged SNPs'  } ],
    [ 'ld2_r2',       '',     'ld2',      { 'display' => 'normal',  'strand' => 'r', 'key' => 'r2', 'colours' => $self->species_defs->colour('variation'),  'caption' => 'LD (r2)', 'name' => 'LD2 (r2)', 'height' => 200 } ],
    [ 'ld2_d_prime',  '',     'ld2',      { 'display' => 'normal',  'strand' => 'r', 'key' => 'd_prime', 'colours' => $self->species_defs->colour('variation'), 'caption' => "LD (d_prime)", 'name' => "LD2 (d')", 'height' => 200  } ],
    [ 'ld_r2',        '',     'ld',      { 'display' => 'normal',  'strand' => 'r', 'key' => 'r2', 'colours' => $self->species_defs->colour('variation'),  'caption' => 'LD (r2)', 'name' => 'LD (r2)'      } ],
    [ 'ld_d_prime',   '',     'ld',      { 'display' => 'normal',  'strand' => 'r', 'key' => 'd_prime', 'colours' => $self->species_defs->colour('variation'), 'caption' => "LD (d_prime)", 'name' => "LD (d')" } ],
 );

  $self->load_tracks();

}
1;

__END__
sub init {<commit_msg>removed config for tracks that are not yet ready for display<commit_after>package EnsEMBL::Web::ImageConfig::ld_population;

use strict;
use warnings;
no warnings 'uninitialized';

use base qw(EnsEMBL::Web::ImageConfig);

sub init {
  my $self = shift;   

  $self->set_parameters({

    'title'         => 'Population Features',
    'show_buttons'  => 'no',  # do not show +/- buttons
    'show_labels'   => 'yes',  # show track names on left-hand side
    'label_width'   => 113,   # width of labels on left-hand side
    'margin'        => 5,     # margin
    'spacing'       => 2,     # spacing
  });


  $self->create_menus(
  'other'               =>  'Features',
  );

=head
    $self->add_tracks( 'other',
    [ 'text',         '',     'text',         { 'display' => 'normal', 'strand' => 'r', 'menu' => 'no' } ],
    [ 'tagged_snp',   '',     'tagged_snp',   { 'display' => 'normal',  'strand' => 'r', 'colours' => $self->species_defs->colour('variation'),  'depth' => '10000',  'style' => 'box', 'caption' => 'Tagged SNPs', 'name' => 'Tagged SNPs'  } ],
    [ 'ld2_r2',       '',     'ld2',      { 'display' => 'normal',  'strand' => 'r', 'key' => 'r2', 'colours' => $self->species_defs->colour('variation'),  'caption' => 'LD (r2)', 'name' => 'LD2 (r2)', 'height' => 200 } ],
    [ 'ld2_d_prime',  '',     'ld2',      { 'display' => 'normal',  'strand' => 'r', 'key' => 'd_prime', 'colours' => $self->species_defs->colour('variation'), 'caption' => "LD (d_prime)", 'name' => "LD2 (d')", 'height' => 200  } ],
    [ 'ld_r2',        '',     'ld',      { 'display' => 'normal',  'strand' => 'r', 'key' => 'r2', 'colours' => $self->species_defs->colour('variation'),  'caption' => 'LD (r2)', 'name' => 'LD (r2)'      } ],
    [ 'ld_d_prime',   '',     'ld',      { 'display' => 'normal',  'strand' => 'r', 'key' => 'd_prime', 'colours' => $self->species_defs->colour('variation'), 'caption' => "LD (d_prime)", 'name' => "LD (d')" } ],
 );
=cut

    $self->add_tracks( 'other',
    [ 'text',         '',     'text',         { 'display' => 'normal', 'strand' => 'r', 'menu' => 'no' } ],    [ 'tagged_snp',   '',     'tagged_snp',   { 'display' => 'normal',  'strand' => 'r', 'colours' => $self->species_defs->colour('variation'),  'depth' => '10000',  'style' => 'box', 'caption' => 'Tagged SNPs', 'name' => 'Tagged SNPs'  } ],
    [ 'ld_r2',        '',     'ld',      { 'display' => 'normal',  'strand' => 'r', 'key' => 'r2', 'colours' => $self->species_defs->colour('variation'),  'caption' => 'LD (r2)', 'name' => 'LD (r2)'      } ],
    [ 'ld_d_prime',   '',     'ld',      { 'display' => 'normal',  'strand' => 'r', 'key' => 'd_prime', 'colours' => $self->species_defs->colour('variation'), 'caption' => "LD (d_prime)", 'name' => "LD (d')" } ],
 );

  $self->load_tracks();

}
1;

__END__
sub init {
{'fraction_non_alphanumeric': 0.2582070707070707, 'fraction_numerical': 0.01494107744107744, 'mean_word_length': 3.0177514792899407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 146, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1684364', 'n_tokens_mistral': 1872, 'n_tokens_neox': 1785, 'n_words': 378}