Skip to content

Can I modify the population after I loaded the vcf file into tree sequence ? #2173

Answered by jeromekelleher
silvewheat asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @silvewheat 👋

You can update the population information afterwards using the tables API. Essentially, you'll need to add a new population to the popualtion table, and then edit the node table so that the population column reflects the required structures.

However, you don't actually have to do this if all you want to do is compute GNNs. The GNN method takes a list of "sample sets", which may or may not correspond to populations.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by silvewheat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants