Comparing version 1.0.3 to 1.0.4
@@ -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
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
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
11
148
1
27
1
+ Addedyargs@^17.7.2
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)