Skip to content
Closed

POC #3279

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions c/tskit/tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ typedef struct {
/** @brief The ID of the edge that this mutation lies on, or TSK_NULL
if there is no corresponding edge.*/
tsk_id_t edge;
/** @brief Inherited state. */
const char *inherited_state;
/** @brief Size of the inherited state in bytes. */
tsk_size_t inherited_state_length;
} tsk_mutation_t;

/**
Expand Down
2 changes: 2 additions & 0 deletions c/tskit/trees.c
Original file line number Diff line number Diff line change
Expand Up @@ -4951,6 +4951,8 @@ tsk_treeseq_get_mutation(
goto out;
}
mutation->edge = self->site_mutations_mem[index].edge;
mutation->inherited_state = self->site_mutations_mem[index].inherited_state;
mutation->inherited_state_length = self->site_mutations_mem[index].inherited_state_length;
out:
return ret;
}
Expand Down
Loading