gramene-search 1.4.6 → 1.5.0

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.
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- 45639393
2
- 1716227417065002000
1
+ 18147469107994750558
2
+ 1719605229238939000
package/dist/index.js CHANGED
@@ -2646,13 +2646,13 @@ class $569586cb7d303e26$export$2e2bcd8739ae039 extends (0, ($parcel$interopDefau
2646
2646
  sources: [
2647
2647
  {
2648
2648
  name: "DNA",
2649
- ensemblURI: this.props.ensemblRest,
2649
+ ensemblURI: this.props.config.ensemblRest,
2650
2650
  species: g.system_name,
2651
2651
  tier_type: "sequence"
2652
2652
  },
2653
2653
  {
2654
2654
  name: "Genes",
2655
- uri: this.props.ensemblRest,
2655
+ uri: this.props.config.ensemblRest,
2656
2656
  tier_type: "ensembl",
2657
2657
  species: g.system_name,
2658
2658
  type: [
@@ -2860,7 +2860,7 @@ class $264d7db426cab787$var$Location extends (0, ($parcel$interopDefault($gXNCa$
2860
2860
  let links = [
2861
2861
  {
2862
2862
  name: "Ensembl Browser",
2863
- url: `${this.props.ensemblURL}/${gene.system_name}/Gene/Summary?g=${gene._id}`
2863
+ url: `${this.props.config.ensemblURL}/${gene.system_name}/Gene/Summary?g=${gene._id}`
2864
2864
  }
2865
2865
  ];
2866
2866
  if (gene.annotations.taxonomy.ancestors.includes(4557)) links.push({
@@ -4400,60 +4400,63 @@ function $6c5c4f90059875bf$var$renderClosestOrtholog(gene) {
4400
4400
  function $6c5c4f90059875bf$var$shouldShowClosestOrtholog(searchResult) {
4401
4401
  return searchResult.closest_rep_id || searchResult.model_rep_id && searchResult.model_rep_id !== searchResult.id;
4402
4402
  }
4403
+ const $6c5c4f90059875bf$var$allDetails = [
4404
+ {
4405
+ id: "VEP",
4406
+ label: "Germplasm",
4407
+ popup: "Germplasm with protein truncating variants (PTVs)",
4408
+ available: false
4409
+ },
4410
+ {
4411
+ id: "sequences",
4412
+ label: "Sequences",
4413
+ popup: "Gene/cDNA/protein fasta",
4414
+ available: true
4415
+ },
4416
+ {
4417
+ id: "location",
4418
+ label: "Location",
4419
+ popup: "Genome Browser",
4420
+ available: false
4421
+ },
4422
+ {
4423
+ id: "expression",
4424
+ label: "Expression",
4425
+ popup: "Gene Expression Atlas",
4426
+ available: false
4427
+ },
4428
+ {
4429
+ id: "homology",
4430
+ label: "Homology",
4431
+ popup: "Gene Family Tree",
4432
+ available: false
4433
+ },
4434
+ {
4435
+ id: "pathways",
4436
+ label: "Pathways",
4437
+ popup: "Plant Reactome Pathways",
4438
+ available: false
4439
+ },
4440
+ {
4441
+ id: "pubs",
4442
+ label: "Papers",
4443
+ popup: "Curated Publications",
4444
+ available: false
4445
+ },
4446
+ {
4447
+ id: "xrefs",
4448
+ label: "Xrefs",
4449
+ popup: "Database Cross-references",
4450
+ available: false
4451
+ }
4452
+ ];
4403
4453
  class $6c5c4f90059875bf$var$Gene extends (0, ($parcel$interopDefault($gXNCa$react))).Component {
4404
4454
  constructor(props){
4405
4455
  super(props);
4406
4456
  this.state = {
4407
- details: [
4408
- // {
4409
- // id: 'VEP',
4410
- // label: 'Germplasm',
4411
- // popup: 'Germplasm with protein truncating variants (PTVs)',
4412
- // available: false
4413
- // },
4414
- {
4415
- id: "sequences",
4416
- label: "Sequences",
4417
- popup: "Gene/cDNA/protein fasta",
4418
- available: true
4419
- },
4420
- {
4421
- id: "location",
4422
- label: "Location",
4423
- popup: "Genome Browser",
4424
- available: false
4425
- },
4426
- {
4427
- id: "expression",
4428
- label: "Expression",
4429
- popup: "Gene Expression Atlas",
4430
- available: false
4431
- },
4432
- {
4433
- id: "homology",
4434
- label: "Homology",
4435
- popup: "Gene Family Tree",
4436
- available: false
4437
- },
4438
- {
4439
- id: "pathways",
4440
- label: "Pathways",
4441
- popup: "Plant Reactome Pathways",
4442
- available: false
4443
- },
4444
- {
4445
- id: "pubs",
4446
- label: "Papers",
4447
- popup: "Curated Publications",
4448
- available: false
4449
- },
4450
- {
4451
- id: "xrefs",
4452
- label: "Xrefs",
4453
- popup: "Database Cross-references",
4454
- available: false
4455
- }
4456
- ],
4457
+ details: $6c5c4f90059875bf$var$allDetails.map((o)=>({
4458
+ ...o
4459
+ })).filter((d)=>props.config.details[d.id]),
4457
4460
  expandedDetail: props.expandedDetail
4458
4461
  };
4459
4462
  let hasData = {};
@@ -4498,7 +4501,7 @@ class $6c5c4f90059875bf$var$Gene extends (0, ($parcel$interopDefault($gXNCa$reac
4498
4501
  return $6c5c4f90059875bf$var$renderTairSummary(gene) || $6c5c4f90059875bf$var$renderClosestOrtholog(gene);
4499
4502
  }
4500
4503
  render() {
4501
- const panSite = this.props.panSite;
4504
+ const panSite = this.props.config.panSite;
4502
4505
  const searchResult = this.props.searchResult;
4503
4506
  const taxName = this.props.taxName;
4504
4507
  // let orthologs='';
@@ -4620,9 +4623,7 @@ const $6c5c4f90059875bf$var$GeneList = (props)=>{
4620
4623
  }),
4621
4624
  props.grameneSearch.response.docs.map((g, idx)=>/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($6c5c4f90059875bf$var$Gene, {
4622
4625
  searchResult: g,
4623
- ensemblURL: props.configuration.ensemblURL,
4624
- ensemblRest: props.configuration.ensemblRest,
4625
- panSite: props.configuration.panSite,
4626
+ config: props.configuration,
4626
4627
  taxName: props.grameneTaxonomy[g.taxon_id].name,
4627
4628
  geneDocs: props.grameneGenes,
4628
4629
  requestGene: props.doRequestGrameneGene,