Difference between revisions of "WormBase Search Syntax Guide"
From WormBaseWiki
Jump to navigationJump to search(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
==Basic Search== | ==Basic Search== | ||
Line 15: | Line 16: | ||
==What Works== | ==What Works== | ||
− | *Single terms (daf-2) | + | * Single terms (daf-2) |
− | *Partial terms with wildcard (daf-*) | + | * Partial terms with wildcard (daf-*) |
− | *Quoted phrases ("insulin receptor") | + | * Quoted phrases ("insulin receptor") |
− | *Field filters in square brackets | + | * Field filters in square brackets |
Line 30: | Line 31: | ||
==Important Notes== | ==Important Notes== | ||
− | #Words like "AND" or "OR" are treated as regular search terms | + | # Words like "AND" or "OR" are treated as regular search terms |
− | #All searches are converted to lowercase | + | # All searches are converted to lowercase |
− | #Use quotes for phrases that might contain "AND" or "OR" | + | # Use quotes for phrases that might contain "AND" or "OR" |
− | #Use field filters instead of boolean operators | + | # Use field filters instead of boolean operators |
− | #Gene names must include hyphens (daf-2, not daf2) | + | # Gene names must include hyphens (daf-2, not daf2) |
Latest revision as of 18:15, 5 November 2024
Basic Search
daf-2 # Single term search "insulin receptor" # Exact phrase search
Field Filters
[class:gene] # Limit to genes [species:elegans] # Limit to C. elegans
What Works
- Single terms (daf-2)
- Partial terms with wildcard (daf-*)
- Quoted phrases ("insulin receptor")
- Field filters in square brackets
What Doesn't Work
- Boolean AND/OR operators (these are treated as regular words)
- Exclusions with minus (-)
- Complex query syntax
Important Notes
- Words like "AND" or "OR" are treated as regular search terms
- All searches are converted to lowercase
- Use quotes for phrases that might contain "AND" or "OR"
- Use field filters instead of boolean operators
- Gene names must include hyphens (daf-2, not daf2)
Examples
daf-2 # Search for gene "DNA and RNA" # Phrase search (AND treated as word) [class:gene] unc-* # All unc genes "transcription factor" # Phrase search