Search robot: Difference between revisions

From genomewiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 19: Line 19:


NC_001807 hg18 1<BR>
NC_001807 hg18 1<BR>
ctgPos chrM 0 16571 NC_001807<BR>
ctgPos chrM 0 16571 NC_001807<BR><BR>
 
AP006221.1 hg18 1<BR>
AP006221.1 hg18 1<BR>
clonePos chr1 0 36744 AP006221.1<BR>
clonePos chr1 0 36744 AP006221.1<BR><BR>
 
rs3 hg18 2<BR>
rs3 hg18 2<BR>
snp126 chr13 31344591 31345092 rs3<BR>
snp126 chr13 31344591 31345092 rs3<BR>

Revision as of 16:31, 11 July 2007

One of the robots that runs automatically during the CGI Build Process, is the testSearch robot.

The code is kent/src/hg/qa/testSearch.c.

testSearch - test search functionality. usage:

 testSearch inputFile

The input format is:

<search term> <database> <count of expected results> followed by a line for each of the expected results

Each expected result line looks like:

<tablename> <chrom> <chromStart> <chromEnd> <actual search match>

I keep an example in kent/src/hg/qa/search1.txt (and this is what the build robot uses):

NC_001807 hg18 1
ctgPos chrM 0 16571 NC_001807

AP006221.1 hg18 1
clonePos chr1 0 36744 AP006221.1

rs3 hg18 2
snp126 chr13 31344591 31345092 rs3
snp127 chr13 31344591 31345092 rs3

Since snp127 is only on hgwdev, this example only works there.

The HapMap SNPs examples need to be added.