EHR-Phenolyzer is a python pipeline to automatically translate raw clinical notes into meaningfully ranked candidate causal genes. It might greatly shorten the time for disease causal genes identification and discovery.
$pip install requests
$pip install lxml
$pip install urllib3
python ehr_phenolyzer.py -i example/Kleyner_ANKRD11.txt -p kleyner -n "metamap" > ehr_phenolyzer.log
For more testing examples, please check and run the bash scripts under test/
usage: ehr_phenolyzer.py [-h] -i INPUT [-p PREFIX] [-n NLP] [-d OUTDIR] [-k]
[-m OMIM] [-x OBO]
Get ranked gene ids based on EHR medical notes
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
medical note file in txt format (in case of using
medlee, the input is medlee xml format)
-p PREFIX, --prefix PREFIX
the prefix for the output file
-n NLP, --nlp NLP type of NLP (metamap (default),medlee, NCBOannotator)
-d OUTDIR, --outdir OUTDIR
the path to the output folder
-k, --keeptmp keep temporary files
-m OMIM, --omim OMIM path to the OMIM txt file
-x OBO, --obo OBO path to HPO obo file
One step from EHR records to ranked gene list.Before running, please install
Phenolyzer, and get the NLP tools ready.
The source file is available from OMIM as the morbidmap.txt file after you get access to OMIM. The gene names were further extracted from this source file, and the aliases gene names and offical gene names were grouped into one line separated by ",". This file can be found in the folder "db/"
The source file was download from http://purl.obolibrary.org/obo/hp.obo. This file can be also found in the folder 'db/'
Medical notes file should be in plain text format, and examples notes files can be found in folder "example/". However, if you use MedLEE as the NLP engine, the input file should be XML file processed by MedLEE.
By using the software, you acknowledge that you agree to the terms below:
For academic and non-profit use, you are free to fork, download, modify, distribute and use the software without restriction.
For commercial use, you are required to contact Columbia Technology Ventures to discuss licensing options.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
$ claude mcp add EHR-Phenolyzer \
-- python -m otcore.mcp_server <graph>