Class ConservancyComparator
ConservancyComparator handles execution of ConservancyComparator utility. It
allows user to compare several sequences and visualize results in SVG plots
-
Nette\Object
-
BaseModule\Services\BaseService
-
AnalyseModule\Models\BaseTool
-
AnalyseModule\Models\ConservancyComparator
Methods summary
public
array
|
#
execute( array $accessions, integer $winsize = null )
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
|
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
Returns
integer window size used for comparison tagger
|