Article ID: 889 - Last Modified: December 4, 2010
Is there a way of making a random selection of compounds from my database from the command line? Can it be done by specifying the number of compounds rather than the percentage?
This cannot be done directly. However, the utilities sdsubset and maesubset support arbitrary selection of compounds. You could then write a small script or program to generate random numbers in the desired range, and write them to a text file, which can then be used as input to these utilities with the -n option. The output from the utilities is the desired random subset.
Keywords: random selection, compounds, sdsubset, maesubset
Type the words or phrases on which you would like to search, or click here to view a list of all
Knowledge Base articles