Search robot: Difference between revisions

From genomewiki
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 35: Line 35:


Since snp127 is only on hgwdev, this example only works there.
Since snp127 is only on hgwdev, this example only works there.
[[Category:Browser QA]]

Revision as of 18:47, 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 8
snp126 chr13 31344591 31345092 rs3
snp127 chr13 31344591 31345092 rs3
hapmapSnpsCEU chr13 31344591 31345092 rs3
hapmapSnpsCHB chr13 31344591 31345092 rs3
hapmapSnpsJPT chr13 31344591 31345092 rs3
hapmapSnpsYRI chr13 31344591 31345092 rs3
hapmapAllelesChimp chr13 31344591 31345092 rs3
hapmapAllelesMacaque chr13 31344591 31345092 rs3

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