Skip to content
Snippets Groups Projects
Commit 5f3f73e8 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Update analysis_description for 'snpdensity' to be the same as in the

production database.
parent 613d0bc5
No related branches found
No related tags found
No related merge requests found
......@@ -42,19 +42,21 @@ my $sth = $slice_adaptor->dbc->prepare("DELETE df, dt, a, ad FROM analysis_descr
$sth->execute();
# Sort slices by coordinate system rank, then by length
my @sorted_slices =
sort( { $a->coord_system()->rank() <=> $b->coord_system()->rank()
|| $b->seq_region_length() <=> $a->seq_region_length()
} @{ $slice_adaptor->fetch_all('toplevel') } );
my $analysis = new Bio::EnsEMBL::Analysis(-program => "variation_density.pl",
-database => "ensembl",
-gff_source => "variation_density.pl",
-gff_feature => "density",
-logic_name => "snpdensity",
-description => 'Density of SNP features on the sequence',
-display_label => 'SNP Density',
-displayable => 1 );
my @sorted_slices = sort( {
$a->coord_system()->rank() <=> $b->coord_system()->rank()
|| $b->seq_region_length() <=> $a->seq_region_length()
} @{ $slice_adaptor->fetch_all('toplevel') } );
my $analysis =
new Bio::EnsEMBL::Analysis(
-program => "variation_density.pl",
-database => "ensembl",
-gff_source => "variation_density.pl",
-gff_feature => "density",
-logic_name => "snpdensity",
-description => 'Density of Single Nucleotide Polymorphisms (SNPs) calculated by variation_density.pl (see scripts at the <a rel="external" href="http://cvs.sanger.ac.uk/cgi-bin/viewvc.cgi/?root=ensembl">Sanger Institute CVS</a> repository).',
-display_label => 'SNP Density',
-displayable => 1 );
$analysis_adaptor->store($analysis);
$analysis_adaptor->update($analysis);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment