Skip to content

Commit

Permalink
variants => genomicVariations
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Sep 19, 2023
1 parent 88b3519 commit a5bf584
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
4 changes: 1 addition & 3 deletions src/hooks/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,7 @@ export function getServiceItemUrl(id, collection, datasetIds) {
}

export function getDataItemPageUrl(id, entity, datasetIds) {
return `${SITE_DEFAULTS.API_PATH}${entity}/?datasetIds=${datasetIds}&${
entity == "variants" ? "_id" : "id"
}=${id}`
return `${SITE_DEFAULTS.API_PATH}${entity}/?datasetIds=${datasetIds}&id=${id}`
}

export function NoResultsHelp(id, entity) {
Expand Down
6 changes: 3 additions & 3 deletions src/modules/details-pages/biosamplePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function Biosample({ biosId, biosample, individual, datasetIds }) {
<BeaconRESTLink
entryType="biosamples"
idValue={biosId}
responseType="variants"
responseType="genomicVariations"
datasetIds={datasetIds}
label="Beacon JSON"
/>
Expand All @@ -273,7 +273,7 @@ function Biosample({ biosId, biosample, individual, datasetIds }) {
<BeaconRESTLink
entryType="biosamples"
idValue={biosId}
responseType="variants"
responseType="genomicVariations"
datasetIds={datasetIds}
output="pgxseg"
label="Progenetix .pgxseg file"
Expand All @@ -283,7 +283,7 @@ function Biosample({ biosId, biosample, individual, datasetIds }) {
<BeaconRESTLink
entryType="biosamples"
idValue={biosId}
responseType="variants"
responseType="genomicVariations"
datasetIds={datasetIds}
output="vcf"
label="(experimental) VCF 4.4 file"
Expand Down
6 changes: 3 additions & 3 deletions src/modules/details-pages/variantPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,15 +306,15 @@ function Variant({ variant, id, datasetIds }) {
<ul>
<li>Variant as{" "}
<BeaconRESTLink
entryType="variants"
entryType="genomicVariations"
idValue={id}
datasetIds={datasetIds}
label="Beacon JSON"
/>
</li>
<li>Variant as{" "}
<BeaconRESTLink
entryType="variants"
entryType="genomicVariations"
idValue={id}
datasetIds={datasetIds}
output="pgxseg"
Expand All @@ -323,7 +323,7 @@ function Variant({ variant, id, datasetIds }) {
</li>
<li>Variant as{" "}
<BeaconRESTLink
entryType="variants"
entryType="genomicVariations"
idValue={id}
datasetIds={datasetIds}
output="vcf"
Expand Down
6 changes: 3 additions & 3 deletions remnants/callsetPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function Callset({ callset, csId, datasetIds }) {
<BeaconRESTLink
entryType="analyses"
idValue={csId}
responseType="variants"
responseType="genomicVariations"
datasetIds={datasetIds}
label="Beacon JSON"
/>
Expand All @@ -110,7 +110,7 @@ function Callset({ callset, csId, datasetIds }) {
<BeaconRESTLink
entryType="analyses"
idValue={csId}
responseType="variants"
responseType="genomicVariations"
datasetIds={datasetIds}
output="pgxseg"
label="Progenetix .pgxseg file"
Expand All @@ -120,7 +120,7 @@ function Callset({ callset, csId, datasetIds }) {
<BeaconRESTLink
entryType="analyses"
idValue={csId}
responseType="variants"
responseType="genomicVariations"
datasetIds={datasetIds}
output="vcf"
label="(experimental) VCF 4.4 file"
Expand Down
6 changes: 3 additions & 3 deletions remnants/individualPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function Individual({ individual, datasetIds }) {
<BeaconRESTLink
entryType="individuals"
idValue={individual.id}
responseType="variants"
responseType="genomicVariations"
datasetIds={datasetIds}
label="Beacon JSON"
/>
Expand All @@ -170,7 +170,7 @@ function Individual({ individual, datasetIds }) {
<BeaconRESTLink
entryType="individuals"
idValue={individual.id}
responseType="variants"
responseType="genomicVariations"
datasetIds={datasetIds}
output="pgxseg"
label="Progenetix .pgxseg file"
Expand All @@ -180,7 +180,7 @@ function Individual({ individual, datasetIds }) {
<BeaconRESTLink
entryType="individuals"
idValue={individual.id}
responseType="variants"
responseType="genomicVariations"
datasetIds={datasetIds}
output="vcf"
label="(experimental) VCF 4.4 file"
Expand Down

0 comments on commit a5bf584

Please sign in to comment.