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

g2p_mapper

Package Overview
Dependencies
Maintainers
0
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.6 to 1.0.7

4

dist/mapper.d.ts

@@ -12,6 +12,6 @@ export interface Feat {

export declare function genomeToTranscriptSeqMapping(feature: Feat): {
g2p: Record<number, number | undefined>;
p2g: Record<number, number | undefined>;
g2p: Record<number, number>;
p2g: Record<number, number>;
refName: string;
strand: number;
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vitest_1 = require("vitest");
const mapper_1 = require("./mapper");
test('basic', () => {
(0, vitest_1.test)('basic', () => {
const ret = (0, mapper_1.genomeToTranscriptSeqMapping)({

@@ -25,4 +26,4 @@ type: 'mRNA',

});
expect(ret).toMatchSnapshot();
(0, vitest_1.expect)(ret).toMatchSnapshot();
});
//# sourceMappingURL=mapper.test.js.map
{
"name": "g2p_mapper",
"description": "Map genome to protein coordinates and back",
"version": "1.0.6",
"version": "1.0.7",
"license": "MIT",

@@ -12,4 +12,6 @@ "main": "dist/mapper.js",

"scripts": {
"test": "vitest",
"lint": "eslint --report-unused-disable-directives --max-warnings 0",
"clean": "rimraf dist",
"test": "jest",
"format": "prettier --write .",
"prebuild": "npm run clean",

@@ -22,3 +24,14 @@ "build": "tsc",

"access": "public"
},
"devDependencies": {
"@types/node": "^20.11.28",
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"eslint": "^9.9.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"typescript": "^5.5.4",
"typescript-eslint": "^8.2.0",
"vitest": "^2.1.5"
}
}

@@ -27,1 +27,6 @@ # g2p_mapper

```
## Notes
See also https://github.com/cmdcolin/interproscan2genome and
https://github.com/cmdcolin/g2p_mapper_cli for usages of this tool

@@ -0,1 +1,2 @@

import { test, expect } from 'vitest'
import { genomeToTranscriptSeqMapping } from './mapper'

@@ -2,0 +3,0 @@

@@ -19,4 +19,4 @@ export interface Feat {

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

@@ -23,0 +23,0 @@ let proteinCounter = 0

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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