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

Bugfix/KBDEV 1135 update NCIt loader with newer file formatting #131

Merged
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 6 additions & 4 deletions src/ncit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
First download the latest version of the plain text tab delimited files. This should include both
the main thesaurus file and the cross mapping file

- [Load the Main Flat File](#load-the-main-flat-file)
- [FDA Cross Mapping File](#fda-cross-mapping-file)
- [NCI Thesaurus](#nci-thesaurus)
- [Load the Main Flat File](#load-the-main-flat-file)
- [FDA Cross Mapping File](#fda-cross-mapping-file)

## Load the Main Flat File

Expand All @@ -27,11 +28,12 @@ This is a headerless tab delimited file with the following
- display name
- concept status
- semantic type
- concept in subset
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

concept name also changed to concept IRI.


Next use the general file loader to load the NCIt terms

```bash
node bin/loadFile ncit Thesaurus.txt
node bin/load.js file ncit Thesaurus.txt
```

## FDA Cross Mapping File
Expand All @@ -46,5 +48,5 @@ Then, after you have loaded the [FDA-SRS](../fdaSrs) data (if you are planning t
load the cross-reference mapping data

```bash
node bin/loadFile ncitFdaXref FDA-UNII_NCIt_Subsets.txt
node bin/load.js file ncitFdaXref FDA-UNII_NCIt_Subsets.txt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, that shows how old that loader is, lol!

```
1 change: 1 addition & 0 deletions src/ncit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ const uploadFile = async ({
'name',
'conceptStatus',
'semanticType',
'conceptInSubset',
],
});
// determine unresolvable records
Expand Down