Comments (10)
can you post a nexson file here so it can be used for writing the code
from treemachine.
Here is study 15
https://gist.github.com/jar398/5100472
You should feel free to merge in my branch. I didn't submit a pull request yet because Peter and I are still working out the metadata properties details, but the code is in a consistent state and works with this example. (branch: JSONimport)
from treemachine.
Warning, some OTU labels are missing from the example. Known problem, fixed, just haven't updated the file yet.
from treemachine.
Decision to be made: Where/how to store the ottol id inside the JadeNode. (The id ultimately comes from phylografter, is transmitted as an OTU metadata property in the Nexson file, and will have to be used for node unification when the tree gets incorporated into the graph db.) Should it be a new field? Or a property? Or should it go into the 'number' field? Also is it an integer or a string, i.e. what format would treemachine be happiest with?
(help please Stephen.)
from treemachine.
Sorry for the lack of response. I am traveling at virginia tech right now
and dont have much access to the machine. Maybe joseph or cody could help
answer that real quick until I can get to it this weekend.
On Mar 8, 2013 9:29 AM, "Jonathan A Rees" [email protected] wrote:
Decision to be made: Where/how to store the ottol id inside the JadeNode.
(The id ultimately comes from phylografter, is transmitted as an OTU
metadata property in the Nexson file, and will have to be used for node
unification when the tree gets incorporated into the graph db.) Should it
be a new field? Or a property? Or should it go into the 'number' field?
Also is it an integer or a string, i.e. what format would treemachine be
happiest with?(help please Stephen.)
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-14622847
.
from treemachine.
Cody and I will figure this out soon.
Joseph.
On Fri, Mar 8, 2013 at 10:16 AM, Stephen Smith [email protected]:
Sorry for the lack of response. I am traveling at virginia tech right now
and dont have much access to the machine. Maybe joseph or cody could help
answer that real quick until I can get to it this weekend.
On Mar 8, 2013 9:29 AM, "Jonathan A Rees" [email protected]
wrote:Decision to be made: Where/how to store the ottol id inside the
JadeNode.
(The id ultimately comes from phylografter, is transmitted as an OTU
metadata property in the Nexson file, and will have to be used for node
unification when the tree gets incorporated into the graph db.) Should
it
be a new field? Or a property? Or should it go into the 'number' field?
Also is it an integer or a string, i.e. what format would treemachine be
happiest with?(help please Stephen.)
—
Reply to this email directly or view it on GitHub<
https://github.com/OpenTreeOfLife/treemachine/issues/7#issuecomment-14622847>.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-14625169
.
from treemachine.
OK, I'm going to put the ottol id as a Long-valued property of the JadeNode, so you can get it using
jadenode.getObject("ot:ottolid")
Note that not all JadeNodes coming from phylografter will have ottol ids - some OTUs from the original data set won't have mapped to ottol. The ones that don't will only have labels. It would be nice to be able to make use of them in spite of this, and that shouldn't be too hard given that their place in the phylogeny is known.
from treemachine.
This makes sense (a long) as that is the native format. What is left to resolve this issue? (starting to look at these now)
from treemachine.
On Fri, Mar 8, 2013 at 5:02 PM, Stephen Smith [email protected]:
This makes sense (a long) as that is the native format. What is left to
resolve this issue? (starting to look at these now)Nothing, it's agreed... except I made a mistake in my commit, it's
currently a String. Will fix.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-14648245
.
from treemachine.
On Fri, Mar 8, 2013 at 5:06 PM, Jonathan A Rees [email protected] wrote:
On Fri, Mar 8, 2013 at 5:02 PM, Stephen Smith [email protected]:
This makes sense (a long) as that is the native format. What is left to
resolve this issue? (starting to look at these now)Nothing, it's agreed... except I made a mistake in my commit, it's
currently a String. Will fix.
Fixed. I also fixed the example nexson that was checked into the repo. The
ids are made up but at least now they're decimal integers in the nexson and
Longs after reading into Java. So y'all should be enabled to work on issue
#11.
from treemachine.
Related Issues (20)
- Trouble spots in v3/tree_of_life API HOT 5
- treemachine plugin versions HOT 5
- No entries in `sourceToMetaMap` for "rootward" nodes HOT 4
- returning unique_name or not? HOT 6
- Implement partial v2/v3 compatibility layer HOT 1
- Delete "terminal" properties when the value starts with "ott" HOT 1
- Bad property value for was_constrained and was_uncontested HOT 4
- How did treemachine compute total_OTU_count ? HOT 2
- offer options that prune the `subtree` method's response to the species level
- Use GET instead of POST where possible
- Treemachine could manage multiple trees HOT 4
- Fix the child/parent induced subtree problem HOT 6
- Deal with missing OTT ids better HOT 3
- label internal nodes of induced tree
- add synth_id to response from synth-dependent services HOT 4
- add synth_id option to "about" to retrieve metadata for old versions
- Display more than 3 levels if not too many tips HOT 6
- Support arguson format in induced_subtree method
- Newick strings contains comma-rightparen
- Input files all use UTF-8 encoding, need to read them that way HOT 1
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 treemachine.