Search robot: Difference between revisions

From genomewiki
Jump to navigationJump to search
No edit summary
mNo edit summary
Line 24: Line 24:
clonePos chr1 0 36744 AP006221.1<BR><BR>
clonePos chr1 0 36744 AP006221.1<BR><BR>


rs3 hg18 2<BR>
rs3 hg18 8<BR>
snp126 chr13 31344591 31345092 rs3<BR>
snp126 chr13 31344591 31345092 rs3<BR>
snp127 chr13 31344591 31345092 rs3<BR>
snp127 chr13 31344591 31345092 rs3<BR>
hapmapSnpsCEU chr13 31344591 31345092 rs3<BR>
hapmapSnpsCHB chr13 31344591 31345092 rs3<BR>
hapmapSnpsJPT chr13 31344591 31345092 rs3<BR>
hapmapSnpsYRI chr13 31344591 31345092 rs3<BR>
hapmapAllelesChimp chr13 31344591 31345092 rs3<BR>
hapmapAllelesMacaque chr13 31344591 31345092 rs3<BR><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.

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