¶
bash_command¶
.bash_command(
cmd
)
Executes bash command in subprocess
Args
- cmd (str) : bash command to be runned in subprocess
Returns
- 0 : returns 0 if everything's alright
hashrf¶
.hashrf(
file, n_trees, output_file
)
Computes unweighted Robison Foulds distances
Args
- file (str) : name of input file with phylogenetic trees in newick format
- n_trees (int) : number of trees in file
- output_file (str) : name of output file that will contain the distance matrix
Returns
- distance_matrix (pandas.DataFrame) : computed distance matrix
hashrf_weighted¶
.hashrf_weighted(
file, n_trees, output_file
)
Computes weighted Robison Foulds distances
Args
- file (str) : name of input file with phylogenetic trees in newick format
- n_trees (int) : number of trees in file
- output_file (str) : name of output file that will contain the distance matrix
Returns
- distance_matrix (pandas.DataFrame) : computed distance matrix
Last update: 2024-04-29