public class SETH extends Object
MutationFinder
, SETHNER
, OldNomenclature
, and dbSNPRecognizer
.
This allows to recognize SNPs written in the latest HGVS nomenclature (e.g. p.Ala123Tyr),
SNPs written in free text (e.g. Ala to Tyr substitution at position 123),
SNPs written in deprecated nomenclature
and dbSNP mentionsConstructor and Description |
---|
SETH()
Parameter free constructor for SETH.
|
SETH(String regexFile,
boolean exactGrammar,
boolean oldNomenclature)
Initializes
MutationFinder and SETHNER . |
Modifier and Type | Method and Description |
---|---|
List<MutationMention> |
findMutations(String text)
Searches for mutation mentions in applied text and returns them
|
static void |
main(String[] args)
Minimal example to perform named entity recognition and normalization using SETH
|
public SETH()
SETH(String, boolean, boolean)
provides more flexibility for advanced configuration
MutationFinder is initialized using the regular expressions contained in Java-Archive 'resources/mutations.txt'
SETH-NER (HGVS) is initialized with fuzzy match-optionpublic SETH(String regexFile, boolean exactGrammar, boolean oldNomenclature)
MutationFinder
and SETHNER
.
Requires a file with regular expressions for MutationFinderregexFile
- File location with regular expressions for MutationFinderexactGrammar
- If true, SETH uses the exact EBNF grammar, otherwise matching is fuzzyoldNomenclature
- If true, SETH searches for deletions, insertions, frameshifts in old nomenclaturepublic List<MutationMention> findMutations(String text)
text
- Text possibly containing a mutation mentionMutationMention
public static void main(String[] args) throws SQLException, IOException
args
- SQLException
IOException
Copyright © 2016. All rights reserved.