gramene-search 1.2.86 → 1.2.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.parcel-cache/026731a8e03b9698 +0 -0
- package/.parcel-cache/08c5f61543303fa8 +0 -0
- package/.parcel-cache/1a5f979ef6ee6606 +0 -0
- package/.parcel-cache/1fad770eff2dc533 +0 -0
- package/.parcel-cache/202f4fa61a6db014 +0 -0
- package/.parcel-cache/2126881b633272fa.txt +2 -2
- package/.parcel-cache/23858cdca340809d +0 -0
- package/.parcel-cache/2d4ba3bbd11ddbd9 +0 -0
- package/.parcel-cache/35a4992435507d84 +0 -0
- package/.parcel-cache/37c075a090d2565c +0 -0
- package/.parcel-cache/3883b9be5c7dfe69 +0 -0
- package/.parcel-cache/4061111f9795474b +0 -0
- package/.parcel-cache/425346ba6a54d932 +0 -0
- package/.parcel-cache/43a294e536c20194 +0 -0
- package/.parcel-cache/46feddc9cb9e8605 +0 -0
- package/.parcel-cache/4e2ad0fe4c7c6766 +0 -0
- package/.parcel-cache/694cecb27f308869 +0 -0
- package/.parcel-cache/6e02cdcba92b377e +0 -0
- package/.parcel-cache/8478f4910112aff7 +0 -0
- package/.parcel-cache/878e3ffbad677982 +0 -0
- package/.parcel-cache/9259851a8e334934 +0 -0
- package/.parcel-cache/96c34caf136de38c +0 -0
- package/.parcel-cache/9d92913d9a5fde85 +0 -0
- package/.parcel-cache/9ff1685cbd169282 +0 -0
- package/.parcel-cache/aaa834d13c760c5a +0 -0
- package/.parcel-cache/b9a229ed67a459e2 +0 -0
- package/.parcel-cache/bbfc6fab41a92806.txt +2 -0
- package/.parcel-cache/bf653d2e76cac1c0 +0 -0
- package/.parcel-cache/cdecf11601322051 +0 -0
- package/.parcel-cache/ce709637d3d0d34d +0 -0
- package/.parcel-cache/d60c1bf58ed31376 +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/ec0b5946ebeb81a6 +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/dist/index.js +235 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/bundles/docs.js +52 -0
- package/src/components/results/details/Sequences.js +110 -17
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
256893153
|
|
2
|
+
1704849569404690000
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.parcel-cache/data.mdb
CHANGED
|
Binary file
|
|
Binary file
|
package/.parcel-cache/lock.mdb
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1208,6 +1208,8 @@ const $671312b287158a8a$var$grameneDocs = {
|
|
|
1208
1208
|
pathways: {},
|
|
1209
1209
|
expression: {},
|
|
1210
1210
|
sequences: {},
|
|
1211
|
+
rnaSequences: {},
|
|
1212
|
+
pepSequences: {},
|
|
1211
1213
|
studies: {}
|
|
1212
1214
|
};
|
|
1213
1215
|
return (state = initialState, { type: type , payload: payload })=>{
|
|
@@ -1269,11 +1271,35 @@ const $671312b287158a8a$var$grameneDocs = {
|
|
|
1269
1271
|
return newState;
|
|
1270
1272
|
}
|
|
1271
1273
|
break;
|
|
1274
|
+
case "RNA_SEQUENCE_REQUESTED":
|
|
1275
|
+
if (!state.rnaSequences.hasOwnProperty(payload)) {
|
|
1276
|
+
newState = Object.assign({}, state);
|
|
1277
|
+
newState.rnaSequences[payload] = {};
|
|
1278
|
+
return newState;
|
|
1279
|
+
}
|
|
1280
|
+
break;
|
|
1281
|
+
case "PEP_SEQUENCE_REQUESTED":
|
|
1282
|
+
if (!state.rnaSequences.hasOwnProperty(payload)) {
|
|
1283
|
+
newState = Object.assign({}, state);
|
|
1284
|
+
newState.pepSequences[payload] = {};
|
|
1285
|
+
return newState;
|
|
1286
|
+
}
|
|
1287
|
+
break;
|
|
1272
1288
|
case "GENE_SEQUENCE_RECEIVED":
|
|
1273
1289
|
newState = Object.assign({}, state);
|
|
1274
1290
|
newState.sequences = Object.assign({}, state.sequences);
|
|
1275
1291
|
newState.sequences[payload.id] = payload.geneSeq;
|
|
1276
1292
|
return newState;
|
|
1293
|
+
case "RNA_SEQUENCE_RECEIVED":
|
|
1294
|
+
newState = Object.assign({}, state);
|
|
1295
|
+
newState.rnaSequences = Object.assign({}, state.rnaSequences);
|
|
1296
|
+
newState.rnaSequences[payload.id] = payload.RnaSeq;
|
|
1297
|
+
return newState;
|
|
1298
|
+
case "PEP_SEQUENCE_RECEIVED":
|
|
1299
|
+
newState = Object.assign({}, state);
|
|
1300
|
+
newState.pepSequences = Object.assign({}, state.pepSequences);
|
|
1301
|
+
newState.pepSequences[payload.id] = payload.PepSeq;
|
|
1302
|
+
return newState;
|
|
1277
1303
|
case "PARALOG_EXPRESSION_REQUESTED":
|
|
1278
1304
|
if (!state.expression.hasOwnProperty(payload)) {
|
|
1279
1305
|
newState = Object.assign({}, state);
|
|
@@ -1418,6 +1444,44 @@ const $671312b287158a8a$var$grameneDocs = {
|
|
|
1418
1444
|
});
|
|
1419
1445
|
}
|
|
1420
1446
|
},
|
|
1447
|
+
doRequestRnaSequence: (id)=>({ dispatch: dispatch , store: store })=>{
|
|
1448
|
+
const maps = store.selectGrameneMaps();
|
|
1449
|
+
const seqs = store.selectRnaSequences();
|
|
1450
|
+
if (!seqs.hasOwnProperty(id)) {
|
|
1451
|
+
dispatch({
|
|
1452
|
+
type: "RNA_SEQUENCE_REQUESTED",
|
|
1453
|
+
payload: id
|
|
1454
|
+
});
|
|
1455
|
+
fetch(`${store.selectEnsemblAPI()}/sequence/id/${id}?type=cdna&content-type=application/json`).then((res)=>res.json()).then((RnaSeq)=>{
|
|
1456
|
+
dispatch({
|
|
1457
|
+
type: "RNA_SEQUENCE_RECEIVED",
|
|
1458
|
+
payload: {
|
|
1459
|
+
id: id,
|
|
1460
|
+
RnaSeq: RnaSeq
|
|
1461
|
+
}
|
|
1462
|
+
});
|
|
1463
|
+
});
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
doRequestPepSequence: (id)=>({ dispatch: dispatch , store: store })=>{
|
|
1467
|
+
const maps = store.selectGrameneMaps();
|
|
1468
|
+
const seqs = store.selectPepSequences();
|
|
1469
|
+
if (!seqs.hasOwnProperty(id)) {
|
|
1470
|
+
dispatch({
|
|
1471
|
+
type: "PEP_SEQUENCE_REQUESTED",
|
|
1472
|
+
payload: id
|
|
1473
|
+
});
|
|
1474
|
+
fetch(`${store.selectEnsemblAPI()}/sequence/id/${id}?type=protein&content-type=application/json`).then((res)=>res.json()).then((PepSeq)=>{
|
|
1475
|
+
dispatch({
|
|
1476
|
+
type: "PEP_SEQUENCE_RECEIVED",
|
|
1477
|
+
payload: {
|
|
1478
|
+
id: id,
|
|
1479
|
+
PepSeq: PepSeq
|
|
1480
|
+
}
|
|
1481
|
+
});
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1421
1485
|
doRequestParalogExpression: (id)=>({ dispatch: dispatch , store: store })=>{
|
|
1422
1486
|
const expr = store.selectParalogExpression();
|
|
1423
1487
|
if (!expr.hasOwnProperty(id)) {
|
|
@@ -1471,6 +1535,8 @@ const $671312b287158a8a$var$grameneDocs = {
|
|
|
1471
1535
|
selectGramenePathways: (state)=>state.grameneDocs.pathways,
|
|
1472
1536
|
selectParalogExpression: (state)=>state.grameneDocs.expression,
|
|
1473
1537
|
selectGeneSequences: (state)=>state.grameneDocs.sequences,
|
|
1538
|
+
selectRnaSequences: (state)=>state.grameneDocs.rnaSequences,
|
|
1539
|
+
selectPepSequences: (state)=>state.grameneDocs.pepSequences,
|
|
1474
1540
|
selectAtlasStudies: (state)=>state.grameneDocs.studies
|
|
1475
1541
|
};
|
|
1476
1542
|
var $671312b287158a8a$export$2e2bcd8739ae039 = $671312b287158a8a$var$grameneDocs;
|
|
@@ -3312,7 +3378,7 @@ const $527ebc19dc92444d$var$CodeBlock = (props)=>{
|
|
|
3312
3378
|
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
|
|
3313
3379
|
className: "fasta-container",
|
|
3314
3380
|
children: [
|
|
3315
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("code", {
|
|
3381
|
+
props.mode === "dna" && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("code", {
|
|
3316
3382
|
className: "fasta",
|
|
3317
3383
|
children: [
|
|
3318
3384
|
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("b", {
|
|
@@ -3350,6 +3416,40 @@ const $527ebc19dc92444d$var$CodeBlock = (props)=>{
|
|
|
3350
3416
|
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("br", {})
|
|
3351
3417
|
]
|
|
3352
3418
|
}),
|
|
3419
|
+
props.mode === "rna" && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("code", {
|
|
3420
|
+
className: "fasta",
|
|
3421
|
+
children: [
|
|
3422
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("b", {
|
|
3423
|
+
children: "Key:"
|
|
3424
|
+
}),
|
|
3425
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
|
|
3426
|
+
className: "utr5",
|
|
3427
|
+
children: "--5'UTR exon 1--"
|
|
3428
|
+
}),
|
|
3429
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
|
|
3430
|
+
className: "utr5-other",
|
|
3431
|
+
children: "--5'UTR exon 2--"
|
|
3432
|
+
}),
|
|
3433
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
|
|
3434
|
+
className: "cds",
|
|
3435
|
+
children: "--Coding exon 1--"
|
|
3436
|
+
}),
|
|
3437
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
|
|
3438
|
+
className: "cds-other",
|
|
3439
|
+
children: "--Coding exon 2--"
|
|
3440
|
+
}),
|
|
3441
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
|
|
3442
|
+
className: "utr3",
|
|
3443
|
+
children: "--3'UTR exon 1--"
|
|
3444
|
+
}),
|
|
3445
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
|
|
3446
|
+
className: "utr3-other",
|
|
3447
|
+
children: "--3'UTR exon 2--"
|
|
3448
|
+
}),
|
|
3449
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("br", {}),
|
|
3450
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("br", {})
|
|
3451
|
+
]
|
|
3452
|
+
}),
|
|
3353
3453
|
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("code", {
|
|
3354
3454
|
className: "fasta",
|
|
3355
3455
|
children: [
|
|
@@ -3379,7 +3479,7 @@ const $527ebc19dc92444d$var$CodeBlock = (props)=>{
|
|
|
3379
3479
|
]
|
|
3380
3480
|
});
|
|
3381
3481
|
};
|
|
3382
|
-
const $527ebc19dc92444d$var$
|
|
3482
|
+
const $527ebc19dc92444d$var$decorateSeq = (geneSeq, gene, up, down, tid, mode)=>{
|
|
3383
3483
|
// return a list of blocks with kind and seq properties
|
|
3384
3484
|
let blocks = [];
|
|
3385
3485
|
const transcript = gene.gene_structure.transcripts.find((tr)=>tr.id === tid);
|
|
@@ -3395,23 +3495,24 @@ const $527ebc19dc92444d$var$decorateDNA = (geneSeq, gene, up, down, tid)=>{
|
|
|
3395
3495
|
let pos_in_transcript = 0;
|
|
3396
3496
|
let pos_in_gene = 0;
|
|
3397
3497
|
let blockType = "utr5";
|
|
3498
|
+
let extra = "";
|
|
3398
3499
|
transcript.exons.forEach((eid, e_idx)=>{
|
|
3399
3500
|
const exon = gene.gene_structure.exons.find((exon)=>exon.id === eid);
|
|
3400
|
-
if (
|
|
3401
|
-
|
|
3501
|
+
if (e_idx > 0 && mode === "dna") {
|
|
3502
|
+
blocks.push({
|
|
3402
3503
|
kind: "intron",
|
|
3403
3504
|
seq: geneSeq.seq.substring(offset + pos_in_gene, offset + exon.start - 1).toLowerCase()
|
|
3404
|
-
};
|
|
3405
|
-
// actually, don't do this blocks.push(intronBlock);
|
|
3505
|
+
});
|
|
3406
3506
|
pos_in_gene = exon.start - 1;
|
|
3407
3507
|
}
|
|
3508
|
+
if (mode === "rna") extra = e_idx % 2 === 1 ? "-other" : "";
|
|
3408
3509
|
let exon_length = exon.end - exon.start + 1;
|
|
3409
3510
|
if (transcript.cds && pos_in_transcript < transcript.cds.start && pos_in_transcript + exon_length >= transcript.cds.start) {
|
|
3410
3511
|
// CDS starts in this exon
|
|
3411
3512
|
const utr5_len = transcript.cds.start - pos_in_transcript - 1;
|
|
3412
3513
|
if (utr5_len > 0) {
|
|
3413
3514
|
blocks.push({
|
|
3414
|
-
kind: blockType,
|
|
3515
|
+
kind: blockType + extra,
|
|
3415
3516
|
seq: geneSeq.seq.substring(offset + pos_in_gene, offset + pos_in_gene + utr5_len)
|
|
3416
3517
|
});
|
|
3417
3518
|
exon_length -= utr5_len;
|
|
@@ -3425,7 +3526,7 @@ const $527ebc19dc92444d$var$decorateDNA = (geneSeq, gene, up, down, tid)=>{
|
|
|
3425
3526
|
const cds_len = transcript.cds.end - pos_in_transcript;
|
|
3426
3527
|
if (cds_len > 0) {
|
|
3427
3528
|
blocks.push({
|
|
3428
|
-
kind: blockType,
|
|
3529
|
+
kind: blockType + extra,
|
|
3429
3530
|
seq: geneSeq.seq.substring(offset + pos_in_gene, offset + pos_in_gene + cds_len)
|
|
3430
3531
|
});
|
|
3431
3532
|
exon_length -= cds_len;
|
|
@@ -3435,7 +3536,7 @@ const $527ebc19dc92444d$var$decorateDNA = (geneSeq, gene, up, down, tid)=>{
|
|
|
3435
3536
|
blockType = "utr3";
|
|
3436
3537
|
}
|
|
3437
3538
|
if (exon_length > 0) blocks.push({
|
|
3438
|
-
kind: blockType,
|
|
3539
|
+
kind: blockType + extra,
|
|
3439
3540
|
seq: geneSeq.seq.substring(offset + pos_in_gene, offset + pos_in_gene + exon_length)
|
|
3440
3541
|
});
|
|
3441
3542
|
pos_in_gene = exon.end;
|
|
@@ -3460,7 +3561,13 @@ const $527ebc19dc92444d$var$buildId = (gene, geneSeq, up, down)=>{
|
|
|
3460
3561
|
};
|
|
3461
3562
|
const $527ebc19dc92444d$var$Detail = (props)=>{
|
|
3462
3563
|
const gene = props.geneDocs[props.searchResult.id];
|
|
3564
|
+
const [tab, setTab] = (0, $gXNCa$react.useState)("dna");
|
|
3565
|
+
const [upstream, setUpstream] = (0, $gXNCa$react.useState)(0);
|
|
3566
|
+
const [downstream, setDownstream] = (0, $gXNCa$react.useState)(0);
|
|
3567
|
+
const [tid, setTid] = (0, $gXNCa$react.useState)(gene.gene_structure.canonical_transcript);
|
|
3463
3568
|
let geneSeq;
|
|
3569
|
+
let rnaSeq;
|
|
3570
|
+
let pepSeq;
|
|
3464
3571
|
if (props.geneSequences && props.geneSequences[gene._id]) geneSeq = props.geneSequences[gene._id];
|
|
3465
3572
|
else {
|
|
3466
3573
|
props.doRequestGeneSequence(gene);
|
|
@@ -3468,12 +3575,30 @@ const $527ebc19dc92444d$var$Detail = (props)=>{
|
|
|
3468
3575
|
children: "loading"
|
|
3469
3576
|
});
|
|
3470
3577
|
}
|
|
3578
|
+
if (props.rnaSequences && props.rnaSequences[tid]) rnaSeq = props.rnaSequences[tid];
|
|
3579
|
+
else {
|
|
3580
|
+
props.doRequestRnaSequence(tid);
|
|
3581
|
+
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("pre", {
|
|
3582
|
+
children: "loading"
|
|
3583
|
+
});
|
|
3584
|
+
}
|
|
3471
3585
|
const maxUp = gene.location.strand === 1 ? gene.location.start - geneSeq.start : geneSeq.end - gene.location.end;
|
|
3472
3586
|
const maxDown = gene.location.strand === -1 ? gene.location.start - geneSeq.start : geneSeq.end - gene.location.end;
|
|
3473
|
-
const
|
|
3474
|
-
|
|
3475
|
-
|
|
3587
|
+
const transcript = gene.gene_structure.transcripts.find((tr)=>tr.id === tid);
|
|
3588
|
+
let tl_id;
|
|
3589
|
+
if (transcript.translation) {
|
|
3590
|
+
tl_id = transcript.translation.id;
|
|
3591
|
+
if (props.pepSequences && props.pepSequences[tl_id]) pepSeq = props.pepSequences[tl_id];
|
|
3592
|
+
else {
|
|
3593
|
+
props.doRequestPepSequence(tl_id);
|
|
3594
|
+
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("pre", {
|
|
3595
|
+
children: "loading"
|
|
3596
|
+
});
|
|
3597
|
+
}
|
|
3598
|
+
}
|
|
3476
3599
|
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tabs), {
|
|
3600
|
+
activeKey: tab,
|
|
3601
|
+
onSelect: (k)=>setTab(k),
|
|
3477
3602
|
children: [
|
|
3478
3603
|
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tab), {
|
|
3479
3604
|
tabClassName: "dna",
|
|
@@ -3610,26 +3735,116 @@ const $527ebc19dc92444d$var$Detail = (props)=>{
|
|
|
3610
3735
|
]
|
|
3611
3736
|
}),
|
|
3612
3737
|
geneSeq && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($527ebc19dc92444d$var$CodeBlock, {
|
|
3738
|
+
mode: "dna",
|
|
3613
3739
|
id: $527ebc19dc92444d$var$buildId(gene, geneSeq, +upstream, +downstream),
|
|
3614
3740
|
seq: geneSeq.seq.substring(maxUp - +upstream, maxUp + gene.location.end - gene.location.start + 1 + +downstream),
|
|
3615
|
-
blocks: $527ebc19dc92444d$var$
|
|
3741
|
+
blocks: $527ebc19dc92444d$var$decorateSeq(geneSeq, gene, +upstream, +downstream, tid, "dna")
|
|
3616
3742
|
})
|
|
3617
3743
|
]
|
|
3618
3744
|
}),
|
|
3619
|
-
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.
|
|
3620
|
-
tabClassName: "
|
|
3621
|
-
eventKey: "
|
|
3622
|
-
title: "Transcript sequence"
|
|
3745
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tab), {
|
|
3746
|
+
tabClassName: "rna",
|
|
3747
|
+
eventKey: "rna",
|
|
3748
|
+
title: "Transcript sequence",
|
|
3749
|
+
children: [
|
|
3750
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Container), {
|
|
3751
|
+
style: {
|
|
3752
|
+
width: "100ch",
|
|
3753
|
+
marginLeft: 0
|
|
3754
|
+
},
|
|
3755
|
+
children: gene.gene_structure.transcripts.length > 1 && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Row), {
|
|
3756
|
+
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Col), {
|
|
3757
|
+
children: [
|
|
3758
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("b", {
|
|
3759
|
+
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("i", {
|
|
3760
|
+
children: "Select transcript"
|
|
3761
|
+
})
|
|
3762
|
+
}),
|
|
3763
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("br", {}),
|
|
3764
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.ButtonGroup), {
|
|
3765
|
+
children: gene.gene_structure.transcripts.sort((a, b)=>a.id.localeCompare(b.id)).map((tr, idx)=>{
|
|
3766
|
+
let v = tr.id === gene.gene_structure.canonical_transcript ? "primary" : "secondary";
|
|
3767
|
+
if (tr.id !== tid) v = `outline-${v}`;
|
|
3768
|
+
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.ToggleButton), {
|
|
3769
|
+
variant: v,
|
|
3770
|
+
id: `radio-${idx}`,
|
|
3771
|
+
type: "radio",
|
|
3772
|
+
name: tr.id,
|
|
3773
|
+
value: tr.id,
|
|
3774
|
+
checked: tr.id === tid,
|
|
3775
|
+
onChange: (e)=>setTid(e.currentTarget.value),
|
|
3776
|
+
children: tr.id
|
|
3777
|
+
}, idx);
|
|
3778
|
+
})
|
|
3779
|
+
})
|
|
3780
|
+
]
|
|
3781
|
+
})
|
|
3782
|
+
})
|
|
3783
|
+
}),
|
|
3784
|
+
geneSeq && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($527ebc19dc92444d$var$CodeBlock, {
|
|
3785
|
+
mode: "rna",
|
|
3786
|
+
id: tid,
|
|
3787
|
+
seq: rnaSeq.seq,
|
|
3788
|
+
blocks: $527ebc19dc92444d$var$decorateSeq(geneSeq, gene, 0, 0, tid, "rna")
|
|
3789
|
+
})
|
|
3790
|
+
]
|
|
3623
3791
|
}),
|
|
3624
|
-
gene.biotype === "protein_coding" && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.
|
|
3792
|
+
gene.biotype === "protein_coding" && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tab), {
|
|
3625
3793
|
tabClassName: "pep",
|
|
3626
3794
|
eventKey: "pep",
|
|
3627
|
-
title: "Peptide sequence"
|
|
3795
|
+
title: "Peptide sequence",
|
|
3796
|
+
children: [
|
|
3797
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Container), {
|
|
3798
|
+
style: {
|
|
3799
|
+
width: "100ch",
|
|
3800
|
+
marginLeft: 0
|
|
3801
|
+
},
|
|
3802
|
+
children: gene.gene_structure.transcripts.length > 1 && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.Row), {
|
|
3803
|
+
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Col), {
|
|
3804
|
+
children: [
|
|
3805
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("b", {
|
|
3806
|
+
children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("i", {
|
|
3807
|
+
children: "Select transcript"
|
|
3808
|
+
})
|
|
3809
|
+
}),
|
|
3810
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("br", {}),
|
|
3811
|
+
/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.ButtonGroup), {
|
|
3812
|
+
children: gene.gene_structure.transcripts.sort((a, b)=>a.id.localeCompare(b.id)).map((tr, idx)=>{
|
|
3813
|
+
let v = tr.id === gene.gene_structure.canonical_transcript ? "primary" : "secondary";
|
|
3814
|
+
if (tr.id !== tid) v = `outline-${v}`;
|
|
3815
|
+
return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $gXNCa$reactbootstrap.ToggleButton), {
|
|
3816
|
+
variant: v,
|
|
3817
|
+
id: `radio-${idx}`,
|
|
3818
|
+
type: "radio",
|
|
3819
|
+
name: tr.id,
|
|
3820
|
+
value: tr.id,
|
|
3821
|
+
checked: tr.id === tid,
|
|
3822
|
+
onChange: (e)=>setTid(e.currentTarget.value),
|
|
3823
|
+
children: tr.id
|
|
3824
|
+
}, idx);
|
|
3825
|
+
})
|
|
3826
|
+
})
|
|
3827
|
+
]
|
|
3828
|
+
})
|
|
3829
|
+
})
|
|
3830
|
+
}),
|
|
3831
|
+
geneSeq && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($527ebc19dc92444d$var$CodeBlock, {
|
|
3832
|
+
mode: "pep",
|
|
3833
|
+
id: tl_id,
|
|
3834
|
+
seq: pepSeq.seq,
|
|
3835
|
+
blocks: [
|
|
3836
|
+
{
|
|
3837
|
+
type: "pep",
|
|
3838
|
+
seq: pepSeq.seq
|
|
3839
|
+
}
|
|
3840
|
+
]
|
|
3841
|
+
})
|
|
3842
|
+
]
|
|
3628
3843
|
})
|
|
3629
3844
|
]
|
|
3630
3845
|
});
|
|
3631
3846
|
};
|
|
3632
|
-
var $527ebc19dc92444d$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)("selectConfiguration", "selectGeneSequences", "doRequestGeneSequence", $527ebc19dc92444d$var$Detail);
|
|
3847
|
+
var $527ebc19dc92444d$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.connect)("selectConfiguration", "selectGeneSequences", "selectRnaSequences", "selectPepSequences", "doRequestGeneSequence", "doRequestRnaSequence", "doRequestPepSequence", $527ebc19dc92444d$var$Detail);
|
|
3633
3848
|
|
|
3634
3849
|
|
|
3635
3850
|
|