Comments (5)
I'm good with this, although it does seem like if someone tries to simplify to a non-sample, it's most likely an error. Related: previously, we have said that a "sample" must be a node for which we have parents for across the entire genome. Should we no longer say this, and only say that is a focal node in analyses?
from tskit.
I'm good with this, although it does seem like if someone tries to simplify to a non-sample, it's most likely an error.
I think we should mark it as a sample in the output though, regardless of its sample status in the input. Right now, I'm layering up a tree sequence by sequentially adding new stuff. Things that were samples before are not now, and things that weren't samples become samples; I want to simplify WRT to the current samples, and also WRT to everything that is not the current samples. It's a powerful operation, there's a million different things you might want to do with it, and having to edit the tree sequence first just to set the sample flag on the node you're interested in is really annoying.
Anyway, this is a long-winded way of saying, "I don't think it's most likely an error"!
Related: previously, we have said that a "sample" must be a node for which we have parents for across the entire genome. Should we no longer say this, and only say that is a focal node in analyses?
Yes, you're right. I think we should drop this clause --- it's unnecessary and doesn't add anything.
from tskit.
I think we should mark it as a sample in the output though, regardless of its sample status in the input.
Yes.
Anyway, this is a long-winded way of saying, "I don't think it's most likely an error"!
Sounds good. I meant "for everyone else but you, currently, it is most likely an error." =)
from tskit.
Sounds good. I meant "for everyone else but you, currently, it is most likely an error." =)
Haha, true enough. Hopefully more people than me will be doing these sort of tree sequence manipulation soon...
from tskit.
@gtsambos has run into this annoyance, here
from tskit.
Related Issues (20)
- Use reusable workflows across repos? HOT 2
- Error pip install tskit on Windows HOT 2
- Add node_is_sample array HOT 2
- TreeSequence.f2 is not symmetric with multiallelic sites HOT 3
- Bug assertion in `ts.allele_frequency_spectrum` HOT 8
- Folded AFS between branch and site modes differs by factor of two HOT 7
- edges lost after merging two trees HOT 20
- Codecov upload issues HOT 1
- keep_intervals() giving _tskit.LibraryError: Can't squash, flush, simplify or link ancestors... HOT 7
- Update GitHub upload/download artefacts
- Add XTable.drop_metadata HOT 1
- trees.c Compilation Error HOT 2
- Split large numbers in html/cli print out.
- Post release for 0.5.7 HOT 1
- Fixup tests for lshmm 0.0.6 HOT 7
- Fix tests for numpy 2.0 HOT 1
- Drop "benchmark" CI job?
- Pass a numpy array of booleans to python simplify? HOT 7
- Cannot pickle '_tskit.Tree' object HOT 3
- AFS folding (polarised=False) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tskit.