begin mrbayes;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Phylogenetic Analysis: Parallel Mr. Bayes on a Cluster under Torque (PBS) and OpenMP | |
# Selects 3 machines, and 4 cpu's on each machine | |
#PBS -N mrbayes | |
#PBS -W group_list="max_ittc" | |
#PBS -q max_ittc | |
#PBS -l nodes=3:ncpus=4 | |
cd $PBS_O_WORKDIR | |
mpirun -np 12 /share/apps/bin/mb-multi-cvs-3.2 pythonidae.mb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sample custom iterator. | |
// By perfectly.insane (http://www.dreamincode.net/forums/index.php?showuser=76558) | |
// From: http://www.dreamincode.net/forums/index.php?showtopic=58468 | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <iterator> | |
#include <cassert> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
int main(int, char* []) { | |
std::vector<int> a(10000000, 10); | |
std::vector<int> b; | |
b.reserve(10000000); | |
b.insert(b.end(), a.begin(), a.end()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
BUILD_TYPE="release" | |
PROGRAM_LABEL="" | |
for arg in $@ | |
do | |
if [[ $arg = debug ]] | |
then | |
BUILD_TYPE="debug" | |
elif [[ $arg = profil* ]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import re | |
import dendropy as dpy | |
BEAST_NODE_INFO_PATTERN = re.compile(r'(.+?)=({.+?,.+?}|.+?)(,|$)') | |
BEAST_SUMMARY_TREE_NODE_FIELDS = [ | |
'height', | |
'height_median', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import dendropy | |
from dendropy import treesplit | |
from dendropy.interop import paup | |
trees = dendropy.TreeList.get_from_path('smallwt.nex', 'nexus') | |
taxa = trees.taxon_set | |
tax_labels, bipartitions, bipartition_counts, bipartition_freqs = paup.bipartitions("weightedtrees.taxa.nex", "weightedtrees.nex", use_tree_weights=True) | |
split_dists_paup = paup.build_split_distribution(bipartition_counts, |
OlderNewer