Search robot: Difference between revisions

From genomewiki
Jump to navigationJump to search
(initial page)
 
No edit summary
Line 18: Line 18:
I keep an example in kent/src/hg/qa/search1.txt (and this is what the build robot uses):
I keep an example in kent/src/hg/qa/search1.txt (and this is what the build robot uses):


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


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


The HapMap SNPs examples need to be added.
The HapMap SNPs examples need to be added.

Revision as of 16:30, 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.