Beispiel #1
0
/* clone a node */
stTree *stTree_cloneNode(stTree *node) {
    stTree *node2 = stTree_construct();
    stTree_setBranchLength(node2, stTree_getBranchLength(node));
    stTree_setClientData(node2, stTree_getClientData(node));
    stTree_setLabel(node2, stTree_getLabel(node));
    return node2;
}
Beispiel #2
0
/* get malnComp for a node, or NULL */
static struct malnComp *getNodeComp(stTree *node) {
    struct mafTreeNodeCompLink *ncLink = stTree_getClientData(node);
    if (ncLink == NULL) {
        return NULL;
    } else {
        return ncLink->comp;
    }
}
Beispiel #3
0
/* add genome object from client data */
static struct Genome *speciesTreeGetGenome(stTree *speciesNode) {
    return stTree_getClientData(speciesNode);
}
Beispiel #4
0
/* get mafTreeNodeCompLink for a node */
static struct mafTreeNodeCompLink *getNodeCompLink(stTree *node) {
    return stTree_getClientData(node);
}