NBISweden / Earth-Biogenome-Project-pilot

Assembly and Annotation workflows for analysing data in the Earth Biogenome Project pilot project.
https://www.earthbiogenome.org/
GNU General Public License v3.0
9 stars 8 forks source link

Check if GOAT API is easier to parse out then GOAT cli #92

Open mahesh-panchal opened 3 months ago

mahesh-panchal commented 3 months ago

Can get TolID with exec: process. It'll probably make it easier to do the same for GOAT:

    exec:
    def args = task.ext.args ?: ''
    def response = new URL("https://id.tol.sanger.ac.uk/api/v2/species?taxonomyId=$taxid").text
    def json = new JsonSlurper().parseText(response)
    tolid = json.species[0].tolIds[0].tolId