Bio::RNA::Treekin::Record - Parse, query, and manipulate Treekin output.
use Bio::RNA::Treekin;
Parses a regular output file of Treekin. Allows to query population data as well as additional info from the header. New minima can be generated. The stringification returns, again, a valid Treekin file which can be, e. g., visualized using Grace.
These attributes of the class allow to query various data from the header of the input file.
The time and date of the Treekin run.
The RNA sequence for which the simulation was computed.
The method used to build the transition matrix as documented for the --method switch of Treekin.
--method
Initial time of the simulation.
Time at which the simulation stops.
Temperature of the simulation in degrees Celsius.
Name of the input file. May be <stdin> if data was read from standard input.
<stdin>
Factor by which the time is multiplied in each simulation step (roughly, the truth is more complicated).
Whether to consider degeneracy in transition rates.
The states specified as absorbing do not have any outgoing transitions and thus serve as "population sinks" during the simulation.
Maximum number of states (???). Value is always (?) 2^31 = 2147483647.
A free text field containing additional comments.
Only available in some of the records of a BarMap multi-record file. Use predicate has_info to check whether this attribute is available.
has_info
The initial population specified by the user. This information is extracted from the cmd attribute.
cmd
Only available in BarMap's multi-record files. Use predicate has_init_population to check whether this attribute is available.
has_init_population
The file that the rate matrix was read from.
Only available in BarMap's multi-record files. Use predicate has_rates_file to check whether this attribute is available.
has_rates_file
Zero-based index given to the input files in the order they were read. Extracted from the rates_file attribute.
rates_file
Use predicate has_file_index to check whether this attribute is available.
has_file_index
The command used to invoke Treekin. Only available in BarMap's multi-record files.
Use predicate has_cmd to check whether this attribute is available.
has_cmd
These methods allow the construction, querying and manipulation of the record objects and its population data.
Construct a new record from a (single) Treekin file.
Return the number of population data records, i. e. the number of simulated time steps, including the start time.
Return the number of minima.
Return the list of all contained minima, i. e. 1...$record->min_count
1...$record->min_count
Remove all minima but the ones from @kept_minima. The list is sorted and de-duplicated first.
@kept_minima
Like keep_mins(), but do not sort / de-duplicate, but use @kept_minima as is. This can be used to remove, duplicate or reorder minima.
keep_mins()
Get the maximum population value of all time points for a specific $minimum.
$minimum
Get a list of the populations at all time points (in chronological order) for a single $minimum.
Get the last population data record, an object of class Bio::RNA::Treekin::PopulationDataRecord. It contains the population data for all minima at the stop_time.
stop_time
Get the $i-th population data record, an object of class Bio::RNA::Treekin::PopulationDataRecord. $i is a zero-based index in chronological order.
$i
Returns the list of all population data records. Useful for iterating.
Add a single new minimum with all-zero entries. Data can then be appended to this new min using append_pop_data().
append_pop_data()
Returns the index of the new minimum.
Given a list of population data records $pop_data_ref, append them to the population data of this record.
$pop_data_ref
The columns of the added data can be re-arranged on the fly by providing a mapping $append_to_min_ref (a hash ref) giving for each minimum in $pop_data_ref (key) a minimum in the current population data (value) to which the new minimum should be swapped. If no data is provided for some minimum of this record, its population is set to zero in the newly added entries.
$append_to_min_ref
Returns the record as a Treekin file.
Felix Kuehnl, <felix@bioinf.uni-leipzig.de>
<felix@bioinf.uni-leipzig.de>
Please report any bugs or feature requests by raising an issue at https://github.com/xileF1337/Bio-RNA-Treekin/issues.
You can also do so by mailing to bug-bio-rna-treekin at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Bio-RNA-Treekin. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-bio-rna-treekin at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Bio::RNA::Treekin
You can also look for information at:
Github: the official repository
https://github.com/xileF1337/Bio-RNA-Treekin
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Bio-RNA-Treekin
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Bio-RNA-Treekin
CPAN Ratings
https://cpanratings.perl.org/d/Bio-RNA-Treekin
Search CPAN
https://metacpan.org/release/Bio-RNA-Treekin
Copyright 2019-2021 Felix Kuehnl.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
To install Bio::RNA::Treekin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::RNA::Treekin
CPAN shell
perl -MCPAN -e shell install Bio::RNA::Treekin
For more information on module installation, please visit the detailed CPAN module installation guide.