Get ALl Compound Ids

Share:

Description

Return a vector of every compound id in the given database.

Usage

1
getAllCompoundIds(conn)

Arguments

conn

A database connection object, such as is returned by initDb.

Value

A vector of compound_id numbers

Author(s)

Kevin Horan

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
   #create and initialize a new SQLite database
   conn = initDb("test1.db")

	data(sdfsample)

	#load data
	ids=loadSdf(conn,sdfsample)
	ids2=getAllCompoundIds(conn)
	#ids == ids2

	unlink("test1.db")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.