Overview

Namespaces

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

Classes

  • SearchPresenter
  • Overview
  • Namespace
  • Class

Class SearchPresenter

Description of SearchPresenter

Nette\Application\UI\Presenter
Extended by BaseModule\BasePresenter
Extended by SearchModule\SearchPresenter
Namespace: SearchModule
Author: Tomáš Hladík
Located at SearchModule/presenters/SearchPresenter.php
Methods summary
public
# renderDefault( )

Render default search form page

Render default search form page

protected BaseModule\Form
# createComponentSearchForm( )

Creates search form

Creates search form

Returns

BaseModule\Form
public
# searchFormSubmitted( Nette\Application\UI\Form $f )

Search form processing

Search form processing

Parameters

$f
public
# renderExport( )

Forces a file to download (from the export of the search). Data are from the post request (variables exportType and export)

Forces a file to download (from the export of the search). Data are from the post request (variables exportType and export)

public
# saveResultSet( DispatchModule\ResultSet $resultSet, String $ext = "fasta" )

Forces a file to download

Forces a file to download

Parameters

$resultSet
Result set containing all sequences to be saved
$ext
Extension of the file, "fasta" as default
public
# saveResultSetFasta( DispatchModule\ResultSet $resultSet )

Forces a fasta file to download

Forces a fasta file to download

Parameters

$resultSet
Result set containing all sequences to be saved
public
# saveResultSetCsv( DispatchModule\ResultSet $resultSet, String $file = null )

Forces a CSV file to download

Forces a CSV file to download

Parameters

$resultSet
Result set containing all sequences to be saved
$file
Location to save the output of the file, "php://output" as default
public
# saveResultSetJSON( DispatchModule\ResultSet $resultSet )

Forces a JSON file to download

Forces a JSON file to download

Parameters

$resultSet
Result set containing all sequences to be saved
public
# actionGetOrganismName( )

Autocomplete - organism name

Autocomplete - organism name

public json
# actionGetResultSize( )

Returns result size in json response

Returns result size in json response

Returns

json
encoded array containing 'resultSize' key with integer value
public
# actionGetImage( string $param )

Returns file response with image for specified structure

Returns file response with image for specified structure

Parameters

$param
name of the image to be displayed (format is ACCESSION_START_STOP)
public
# actionGetTemplate( string $param )

Returns a file response with a requested template

Returns a file response with a requested template

Parameters

$param
id of the template
public
# actionGetSequence( string $param, integer $start, integer $stop )

Gets sequence from database

Gets sequence from database

Parameters

$param
accesion number
$start
start position
$stop
stop position

Throws

BaseModule\Exceptions\NotFoundException
public
# actionGetStructure( string $param, integer $start, integer $stop, integer $id )

Gets structure from database

Gets structure from database

Parameters

$param
accession number
$start
start position
$stop
stop position
$id
predicted structure id

Throws

BaseModule\Exceptions\NotFoundException
public
# actionGetFullImage( string $param, integer $start = null, integer $stop = null, integer $id = null )

Gets full SVG iamge for accesion & prediction id

Gets full SVG iamge for accesion & prediction id

Parameters

$param
accession number OR file name for predicted file display (in case rest of the parameters are null)
$start
start of the sequence region
$stop
end of the sequence region
$id
prediction id
public
# actionGetTaxonomyChoiceWithSpecies( integer $param )

Serves for AJAX calls - returns JSON-encoded list of taxonomies in sublevel

Serves for AJAX calls - returns JSON-encoded list of taxonomies in sublevel

Parameters

$param
taxonomy id
public
# actionTaxonomybrowser( string $preselected = null, string $fulltext = null, boolean $fulltextOnlyMatches = true, string $fulltextIds = '', integer $treeElSize = 600 )

Display taxonomy browser - the top list categories are displayed

Display taxonomy browser - the top list categories are displayed

Parameters

$preselected
preselected ids (split by ',')
$fulltext
word to search for
$fulltextOnlyMatches
if true, only direct (non-expanded) paths to fulltext matches are shown
$fulltextIds
serialized array of ids of matches (helper to ease heavy use of DB in between same fulltext calls)
$treeElSize
helper determinig the tree height based on viewport size (is here just in case of JS problems since the actual height is set by JS anyway)
public JSON
# actionGetSequencesByAccessions( string $param )

Serves for AJAX calls - list sequences by (multiple) accession numbers

Serves for AJAX calls - list sequences by (multiple) accession numbers

Parameters

$param
json-encoded array of accession numbers

Returns

JSON
array containing all sequences with specified accession numbers
public JSON
# actionGetFastaInfoByAccessions( string $param )

Serves for AJAX calls - list fasta file info (name, sequence, prediction) of sequences by (multiple) accession numbers

Serves for AJAX calls - list fasta file info (name, sequence, prediction) of sequences by (multiple) accession numbers

Parameters

$param
json-encoded array of accession numbers

Returns

JSON
array containing all sequences with specified accession numbers
protected BaseModule\Form
# createComponentTaxonomyBrowserForm( )

Creates search form

Creates search form

Returns

BaseModule\Form
Methods inherited from BaseModule\BasePresenter
__construct(), formatLayoutTemplateFiles(), startup()
Properties summary
protected DispatchModule\SearchParser $parser

object that parses query and returns result

object that parses query and returns result

Inject

#
protected BaseModule\Services\DbService $dbService

object that parses query and returns result

object that parses query and returns result

Inject

#
API documentation generated by ApiGen