ec903ae4d17d39e1d3ca0490fcbe7c0e061edd5e kate Wed Oct 4 16:48:16 2017 -0700 Correct definition of CAVIAR probability; input from Casey Brown, U Penn (GTEx analyst). refs #15646 diff --git src/hg/inc/gtexEqtlCluster.h src/hg/inc/gtexEqtlCluster.h index f3d6f16..8d5cac0 100644 --- src/hg/inc/gtexEqtlCluster.h +++ src/hg/inc/gtexEqtlCluster.h @@ -13,31 +13,31 @@ struct gtexEqtlCluster /* BED5+ of eQTLs (variants affecting gene expression) with a target (gene or tissue), and lists of secondary targets (e.g. tissues or genes) */ { struct gtexEqtlCluster *next; /* Next in singly linked list. */ char *chrom; /* Reference sequence chromosome or scaffold */ unsigned chromStart; /* Start position in chromosome */ unsigned chromEnd; /* End position in chromosome */ char *name; /* Name of variant (rsID or GTEx identifier if none) */ unsigned score; /* Score from 0-1000 */ char *target; /* Name of target (gene or tissue) */ int distance; /* Distance from TSS */ unsigned expCount; /* Number of experiment values */ char **expNames; /* Comma separated list of experiment names (e.g. tissue or gene) */ float *expScores; /* Comma separated list of effect size values */ float *expPvals; /* Comma separated list of -log10 transformed p-values */ - float *expProbs; /* Comma separated list of probability variant is in causal set */ + float *expProbs; /* Comma separated list of probability variant is causal */ }; struct gtexEqtlCluster *gtexEqtlClusterLoadByQuery(struct sqlConnection *conn, char *query); /* Load all gtexEqtlCluster from table that satisfy the query given. * Where query is of the form 'select * from example where something=something' * or 'select example.* from example, anotherTable where example.something = * anotherTable.something'. * Dispose of this with gtexEqtlClusterFreeList(). */ void gtexEqtlClusterSaveToDb(struct sqlConnection *conn, struct gtexEqtlCluster *el, char *tableName, int updateSize); /* Save gtexEqtlCluster as a row to the table specified by tableName. * As blob fields may be arbitrary size updateSize specifies the approx size * of a string that would contain the entire query. Arrays of native types are * converted to comma separated strings and loaded as such, User defined types are * inserted as NULL. This function automatically escapes quoted strings for mysql. */