Combined tree sequence of multiple chromosomes #2517
-
|
I have inferred and dated tree sequences for roughly 2000 haploid individuals. I obtained those via running tsinfer and tsdate on VCFs for each of the 22 human autosomes. I guess my question might be somewhat related to #2421 , but I might be way off. Is there a way to generate one tree sequence from my 22 tree sequences. I am basically looking for something like " all = some_merge_function(ts1:ts22) ". Is that something achievable? Best |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
It's technically do-able @benekirsch, but I'm not sure it would mean very much. There wouldn't be any nodes shared across the chromosomes so there wouldn't be any benefit of shared information, and it would mean that all chromosomes would have to be on a single long coordinate space. Why do you want to merge them? |
Beta Was this translation helpful? Give feedback.
-
|
Just to point you to the new |
Beta Was this translation helpful? Give feedback.
Just to point you to the new
ts.concatenate()function, which will do what you want but also not share nodes between chromosomes (apart from the sample nodes). Re cross-chromosomal phasing, there's some nice info in asides in this recent paper: https://www.nature.com/articles/s41586-025-09357-5