biomedical_id_resolver
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -63,3 +63,3 @@ exports.CURIE = { | ||
"name": ["mondo.label", "disgenet.xrefs.disease_name"], | ||
"MESH": ["mondo.xrefs.mesh", "ctd.mesh"], | ||
"MESH": ["mondo.xrefs.mesh", "disease_ontology.xrefs.mesh", "ctd.mesh"], | ||
"OMIM": ["mondo.xrefs.omim", "hpo.omim"], | ||
@@ -128,3 +128,3 @@ "EFO": ["mondo.xrefs.efo"], | ||
"Pathway": { | ||
"id_ranks": ["Reactome", "KEGG", "PHARMGKB", "WIKIPATHWAYS", "name"], | ||
"id_ranks": ["REACT", "KEGG", "PHARMGKB", "WIKIPATHWAYS", "name"], | ||
"semantic": "Pathway", | ||
@@ -167,2 +167,2 @@ "api_name": "geneset API", | ||
} | ||
} | ||
} |
{ | ||
"name": "biomedical_id_resolver", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "js library for converting biomedical entity ids in batch", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -24,3 +24,3 @@ const _ = require('lodash'); | ||
let res = this.generateBioThingsAPIPromisesByCuries(this.inputIDs[semanticType], semanticType); | ||
let chunked_promises = _.chunk(res.valid, 5); | ||
let chunked_promises = _.chunk(res.valid, 2); | ||
chunked_promises.map((item, i) => { | ||
@@ -140,3 +140,3 @@ if (!(i in this.promises)) { | ||
url: meta['url'], | ||
timeout: 10000, | ||
timeout: 30000, | ||
data: query, | ||
@@ -195,3 +195,3 @@ headers: { 'content-type': 'application/x-www-form-urlencoded' } | ||
// note: maximum length of inputs for BioThings APIs is 1000; | ||
let chunked_ids = _.chunk(ids, 1000); | ||
let chunked_ids = _.chunk(ids, 500); | ||
let axiosQuery; | ||
@@ -198,0 +198,0 @@ for (let i = 0; i < chunked_ids.length; i++) { |
@@ -31,2 +31,3 @@ const biothings_parser = require("./biothingsParser"); | ||
} else { | ||
// console.log("failed", item) | ||
} | ||
@@ -33,0 +34,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144544
1101