Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix NA scenarios #13

Merged
merged 4 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,17 @@ const outputFile = 'IPSSMexample.annotated.xlsx'
await annotateFile(inputFile, outputFile)
```


<!-- Anchor to target cli help -->
<span id="inputs" />

## :spiral_notepad: Input Variables Definition

Note: Values for mutations:

- `0` means wild-type (non-mutated)
- `1` means mutated, and
- `NA` means 'Not Asssesed'.

| Category | Variable Explanation | Variable | Unit | Possible Value |
|----------------------------|-------------------------------|--------------|------------------------------|-------------------------------------------------------------|
| clinical | Hemoglobin | `HB` | numerical, in g/dL | [`4`-`20`] |
Expand Down Expand Up @@ -377,3 +382,16 @@ await annotateFile(inputFile, outputFile)
## :question: Question

Any questions feel free to add an [issue](https://github.com/papaemmelab/ipssm-js/issues) to this repo or to contact [ElsaB](https://elsab.github.io/).

## :code: Development

```bash
# Install dependencies
npm install

# Run the development server
npm run serve

# Run tests
npm test
```
98 changes: 57 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PatientInput, PatientOutput, IpssmScores, PatientForIpssr, CsvData } from './types'
import { PatientInput, PatientOutput, IpssmScores, PatientForIpssr } from './types'
import { processInputs } from './utils/preprocess'
import { computeIpssm, computeIpssr as ipssr } from './utils/risk'
import { parseCsv, parseXlsx, writeCsv, writeXlsx } from './utils/parseFile'
Expand Down
2 changes: 1 addition & 1 deletion src/utils/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ genes.forEach((gene) => {
values: [
0,
1,
'N/A',
'NA',
],
}
})
Expand Down
Loading
Loading