togoid_countId
Count how many source IDs have mappings in a target database without retrieving the actual IDs. Verify format and estimate result size before bulk conversion.
Instructions
Check how many of your IDs can be converted before doing bulk conversion.
A lightweight pre-check: tells you how many source IDs have mappings in the target database WITHOUT actually returning the mapped IDs. Use this to: - Verify your IDs are in the correct format - Estimate result size before a large convertId call - Check if a conversion route works for your specific IDs
Args: source: Source database key (e.g., 'ncbigene', 'uniprot') target: Target database key (e.g., 'uniprot', 'pdb') ids: Source IDs to check. Accepts either a list of strings or a comma-separated string (e.g., ["672", "675"] or "672,675").
Returns: Dictionary with: - source count: number of input IDs recognized - target count: number of target IDs found
Example: >>> countId('ncbigene', 'uniprot', '672,675,7157') # Returns: {"source": 3, "target": 5} # (3 genes map to 5 UniProt entries — some genes have multiple proteins)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| target | Yes | ||
| ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||