|
ensembl-hive
2.8.1
|
Public Member Functions | |
| public Boolean | user_proceed () |
| public List | sort_chromosomes () |
| protected Values | _by_chr_num () |
| public A | commify () |
| public | parse_bytes () |
| public | directory_hash () |
| public | path_append () |
| public Boolean | inject () |
| public | dynamic_use () |
| protected Values Bio::EnsEMBL::Utils::ScriptUtils::_by_chr_num | ( | ) |
Example :
Description : Subroutine to use in sort for sorting chromosomes. Sorts
numerically, then alphabetically
Return type : values to be used by sort
Exceptions : none
Caller : internal ($self->sort_chromosomes)
Code:
| public A Bio::EnsEMBL::Utils::ScriptUtils::commify | ( | ) |
Arg[1] : Int $num - a number to commify Example :
Description : put commas into a number to make it easier to read Return type : a string representing the commified number Exceptions : none Caller : general Status : stable
Code:
| public Bio::EnsEMBL::Utils::ScriptUtils::directory_hash | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::ScriptUtils::dynamic_use | ( | ) |
Undocumented method
Code:
| public Boolean Bio::EnsEMBL::Utils::ScriptUtils::inject | ( | ) |
Arg [1] : String $classname - The name of the class to require/import Example :
Description: Requires and imports the methods for the classname provided,
checks the symbol table so that it doesnot re-require modules
that have already been required.
Returntype : true on success
Exceptions : Warns to standard error if module fails to compile
Caller : internal
Code:
| public Bio::EnsEMBL::Utils::ScriptUtils::parse_bytes | ( | ) |
Undocumented method
Code:
| public Bio::EnsEMBL::Utils::ScriptUtils::path_append | ( | ) |
Undocumented method
Code:
| public List Bio::EnsEMBL::Utils::ScriptUtils::sort_chromosomes | ( | ) |
Arg[1] : (optional) Hashref $chr_hashref - Hashref with chr_name as keys Example :
Description : Sorts chromosomes in an intuitive way (numerically, then
alphabetically). If no chromosome hashref is passed, it's
retrieve by calling $self->get_chrlength()
Return type : List - sorted chromosome names
Exceptions : thrown if no hashref is provided
Caller : general
Code:
| public Boolean Bio::EnsEMBL::Utils::ScriptUtils::user_proceed | ( | ) |
Arg[1] : (optional) String $text - notification text to present to user Example :
Description : If running interactively, the user is asked if he wants to
perform a script action. If he doesn't, this section is skipped
and the script proceeds with the code. When running
non-interactively, the section is run by default.
Return type : TRUE to proceed, FALSE to skip.
Exceptions : none
Caller : general
Code: