Giter Site home page Giter Site logo

Comments (10)

blackrim avatar blackrim commented on August 11, 2024

can you post a nexson file here so it can be used for writing the code

from treemachine.

jar398 avatar jar398 commented on August 11, 2024

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.

jar398 avatar jar398 commented on August 11, 2024

Warning, some OTU labels are missing from the example. Known problem, fixed, just haven't updated the file yet.

from treemachine.

jar398 avatar jar398 commented on August 11, 2024

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.

blackrim avatar blackrim commented on August 11, 2024

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.

josephwb avatar josephwb commented on August 11, 2024

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.

jar398 avatar jar398 commented on August 11, 2024

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.

blackrim avatar blackrim commented on August 11, 2024

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.

jar398 avatar jar398 commented on August 11, 2024

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.

jar398 avatar jar398 commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.