Skip to content

Commit b130c66

Browse files
committed
cleaning up APIs
1 parent dcfb3b4 commit b130c66

File tree

8 files changed

+13
-144
lines changed

8 files changed

+13
-144
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "phenoboard",
3-
"version": "0.5.103",
3+
"version": "0.5.104",
44
"scripts": {
55
"ng": "ng",
66
"start": "nx serve phenoboard --port 1420",

src-tauri/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "phenoboard"
3-
version = "0.5.103"
3+
version = "0.5.104"
44
description = "Curate cohorts of GA4GH Phenopackets"
55
authors = ["Peter N Robinson"]
66
edition = "2021"
@@ -25,7 +25,7 @@ ontolius = "0.7.2"
2525
reqwest = { version = "0.13.2", features = ["json", "blocking"] }
2626
rfd = { version = "0.16.0", default-features = false}
2727
fenominal = { git = 'https://github.com/P2GX/fenominal.git', tag = '0.1.18' }
28-
ga4ghphetools = { git = 'https://github.com/P2GX/ga4ghphetools.git', tag = '0.5.23' }
28+
ga4ghphetools = { git = 'https://github.com/P2GX/ga4ghphetools.git', tag = '0.5.24' }
2929
#ga4ghphetools = { path = "../../ga4ghphetools" }
3030
serde = { version = "1.0.219", features = ["derive"] }
3131
serde_json = "1.0.148"
@@ -45,7 +45,7 @@ nucleo-matcher = "0.3"
4545

4646
[target.'cfg(target_os = "linux")'.dependencies]
4747
rfd = { version = "0.16.0", default-features = false, features = ["xdg-portal", "tokio"] }
48-
48+
# rfd buggy with version 0.17.2: package `phenoboard` depends on `rfd` with feature `tokio` but `rfd` does not have that feature.
4949

5050

5151

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "phenoboard",
4-
"version": "0.5.103",
4+
"version": "0.5.104",
55
"identifier": "org.p2gx.phenoboard",
66
"build": {
77
"beforeDevCommand": "npx nx serve phenoboard --configuration=development --no-cloud",

src/app/cohortdialog/cohortdialog.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h3>Gene Info</h3>
5959
<p class="error-text">Valid HGNC ID required (e.g., HGNC:1234)</p>
6060
}
6161
</div>
62-
62+
6363
<div class="form-field">
6464
<div class="form-field flex gap-2">
6565
<input
@@ -75,7 +75,7 @@ <h3>Gene Info</h3>
7575
@if (isLoading()) {
7676
<span class="animate-spin"></span>
7777
} @else {
78-
🔍 Fetch info
78+
🔍 Fetch HGNC/Transcript info
7979
}
8080
</button>
8181
</div>

src/app/hpominingverifier/hpominingverifier.component.html

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/app/hpominingverifier/hpominingverifier.component.scss

Whitespace-only changes.

src/app/hpominingverifier/hpominingverifier.component.ts

Lines changed: 0 additions & 84 deletions
This file was deleted.

src/app/services/etl_session_service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,16 @@ export class EtlSessionService {
127127
const value = val.toLowerCase().trim();
128128
const femaleSymbols = new Set(["female", "woman","f", "w", "girl", "fem"]);
129129
const maleSymbols = new Set(["male","man","m","boy", "masc"]);
130+
const unknownSymbols = new Set(["u", "ukn", "unknown", "?"]);
131+
const otherSymbols = new Set(["o", "other"]);
130132
if (femaleSymbols.has(value)) {
131133
return "F";
132134
} else if (maleSymbols.has(value)) {
133135
return "M";
136+
} else if (unknownSymbols.has(value)) {
137+
return "U";
138+
} else if (otherSymbols.has(value)) {
139+
return "O";
134140
} else {
135141
return undefined;
136142
}

0 commit comments

Comments
 (0)