Difference between revisions of "WormBase Search Syntax Guide"

From WormBaseWiki
Jump to navigationJump to search
 
Line 16: 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 31: 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

  1. Words like "AND" or "OR" are treated as regular search terms
  2. All searches are converted to lowercase
  3. Use quotes for phrases that might contain "AND" or "OR"
  4. Use field filters instead of boolean operators
  5. 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