Comparing version
@@ -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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
9509
90.45%11
120%148
49.49%1
-50%27
Infinity%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added