Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

g2p_mapper

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g2p_mapper - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

dist/mapper.test.d.ts

3

dist/mapper.d.ts

@@ -6,4 +6,3 @@ export interface Feat {

phase: number;
ID: string;
score: number;
id: string;
start: number;

@@ -10,0 +9,0 @@ end: number;

@@ -6,6 +6,6 @@ "use strict";

function genomeToTranscriptSeqMapping(feature) {
var _a;
var _a, _b;
const strand = feature.strand;
const refName = feature.refName;
const cds = ((_a = feature.subfeatures) === null || _a === void 0 ? void 0 : _a.filter(f => f.type === 'CDS').sort((a, b) => strand * (a.start - b.start))) || [];
const cds = (_b = (_a = feature.subfeatures) === null || _a === void 0 ? void 0 : _a.filter(f => f.type === 'CDS').sort((a, b) => strand * (a.start - b.start))) !== null && _b !== void 0 ? _b : [];
const g2p = {};

@@ -12,0 +12,0 @@ const p2g = {};

{
"name": "g2p_mapper",
"description": "Map genome to protein coordinates and back",
"version": "1.0.3",
"version": "1.0.4",
"license": "MIT",

@@ -13,2 +13,3 @@ "main": "dist/mapper.js",

"clean": "rimraf dist",
"test": "jest",
"prebuild": "npm run clean",

@@ -21,3 +22,6 @@ "build": "tsc",

"access": "public"
},
"dependencies": {
"yargs": "^17.7.2"
}
}

@@ -6,4 +6,3 @@ export interface Feat {

phase: number
ID: string
score: number
id: string
start: number

@@ -21,3 +20,3 @@ end: number

?.filter(f => f.type === 'CDS')
.sort((a, b) => strand * (a.start - b.start)) || []
.sort((a, b) => strand * (a.start - b.start)) ?? []
const g2p = {} as Record<number, number | undefined>

@@ -24,0 +23,0 @@ const p2g = {} as Record<number, number | undefined>

Sorry, the diff of this file is not supported yet

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