Overview

Namespaces

  • AnalyseModule
    • Models
  • BaseModule
    • Exceptions
    • Models
    • Repository
    • Services
  • DispatchModule
    • Helpers
    • Models
    • Tools
  • PredictModule
  • SearchModule

Classes

  • BaseTool
  • ConservancyComparator
  • Overview
  • Namespace
  • Class

Class ConservancyComparator

ConservancyComparator handles execution of ConservancyComparator utility. It allows user to compare several sequences and visualize results in SVG plots

Nette\Object
Extended by BaseModule\Services\BaseService
Extended by AnalyseModule\Models\BaseTool
Extended by AnalyseModule\Models\ConservancyComparator
Namespace: AnalyseModule\Models
Located at AnalyseModule/models/ConservancyComparator.php
Methods summary
public array
# execute( array $accessions, integer $winsize = null )

Execute comparison

Execute comparison

Parameters

$accessions
list of accession number that should be compared
$winsize
window size

Returns

array
sequences compared (complete records loaded from database for specified accession numbers)

Throws

BaseModule\Exceptions\ToolException
public string
# export( string $tmpPath, array $svgs, integer $winsize )

Export generated results - save all svgs (colored), fastas and info file into a zip archive

Export generated results - save all svgs (colored), fastas and info file into a zip archive

Parameters

$tmpPath
path to directory containig the result of the comparison
$svgs
array containing generated svgs (as a text since it includes changes made on-the-fly by D3.js)
$winsize
window size

Returns

string
path to generated archive
public static
# deleteOldDirs( )

Delete all conservancycomparator temporary directories older than 24 hours

Delete all conservancycomparator temporary directories older than 24 hours

public string
# getTmpDir( )

Get path to temporary directory

Get path to temporary directory

Returns

string
path to temporary directory
public integer
# getWinSize( )

Get window size

Get window size

Returns

integer
window size used for comparison tagger
Methods inherited from AnalyseModule\Models\BaseTool
loadSequencesFromDb()
Methods inherited from BaseModule\Services\BaseService
__construct()
Properties inherited from BaseModule\Services\BaseService
$container
API documentation generated by ApiGen