Eliminate redundancy in biomaRt (2.38.0) query
1
0
Entering edit mode
olibee1315 • 0
@olibee1315-21561
Last seen 2.1 years ago

I am using biomaRt (2.38.0) to retrieve genome data from Ensembl. When using the web interface to do this, there is a check-box option to limit a query to unique results only. This eliminates redundancy in the output.

Is there any way to implement the 'unique results only' option using biomaRt (2.38.0)?

biomaRt Ensembl • 221 views
0
Entering edit mode
Mike Smith ★ 5.1k
@mike-smith
Last seen 2 hours ago
EMBL Heidelberg / de.NBI

The getBM() function has the argument uniqueRows which toggles this behaviour. However the default value is TRUE so it should do this unless explicitly asked not to. Do you have an example query where it isn't working correctly?