Socket
Socket
Sign inDemoInstall

biomedical_id_resolver

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biomedical_id_resolver - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

6

config.js

@@ -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 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc