public class MutationValidation extends MutationMention
MutationMention from the validation corpus, where
we already know which dbSNP entry is associated with this gene.
Therefore this class can be used to evaluate precision, recall and F1 for any
normalization method.MutationMention.Toolambiguous, location, mutResidue, normalized, nsm, patternId, position, psm, ref, text, tool, transcripts, type, wtResidue| Constructor and Description |
|---|
MutationValidation(int dbSNP,
EntityOffset location,
String wtResidue,
String mutResidue,
String position,
String mutationType,
String entity)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDbSNP()
Gets the associated dbSNP entry.
|
String |
getEntity()
Gets the actual entity mention
|
String |
getMutationType()
Gets the either NSM or PSM.
|
static Map<Integer,List<MutationValidation>> |
readMutationsValidation(String file)
Reads the mutation from the annotated corpus and returns these mutations.
|
String |
toString()
(non-Javadoc)
|
equals, getBestNormalized, getEnd, getLocation, getMutResidue, getNormalized, getPatternId, getPosition, getRef, getStart, getText, getTool, getTranscripts, getType, getWtResidue, hashCode, isAmbiguous, isNsm, isPsm, normalizeSequences, normalizeSNP, normalizeSNP, readMutations, setAmbiguous, setMutResidue, setNsm, setPatternId, setPosition, setPsm, setWtResidue, toHGVS, toNormalizedpublic MutationValidation(int dbSNP,
EntityOffset location,
String wtResidue,
String mutResidue,
String position,
String mutationType,
String entity)
dbSNP - -- Goldstandard dbSNP-IdWlocation - -- Location in the textwtResidue - -- Wildtype Allele (e.g. R)mutResidue - -- Mutated Allele (e.g. C)position - -- Mutation mocation (e.g. 271)public int getDbSNP()
public String getMutationType()
public String getEntity()
public static Map<Integer,List<MutationValidation>> readMutationsValidation(String file) throws IOException
file - Annotated corpusIOExceptionpublic String toString()
toString in class MutationMentionMutationMention.toString()Copyright © 2016. All rights reserved.