Skip to contents

For a given txid return a random set of sequences associated.

Usage

sids_get(txid, direct, ps, retmax = 100, hrdmx = 1e+05)

Arguments

txid

NCBI taxon identifier

direct

Node-level only or subtree as well? Default FALSE.

ps

Parameters list, generated with parameters()

retmax

Maximum number of sequences when querying model organisms. The smaller the more random, the larger the faster.

hrdmx

Absolute maximum number of sequence IDs to download in a single query.

Value

vector of IDs

Details

For model organisms downloading all IDs can a take long time or even cause an xml parsing error. For any search with more than hrdmx sequences, this function we will run multiple small searches downloading retmax seq IDs at a time with different retstart values to generate a semi-random vector of sequence IDs. For all other searches, all IDs will be retrieved. Note, it makes no sense for mdlthrs in parameters to be greater than hrdmx in this function.