getAllCompoundIds: Get ALl Compound Ids

Description Usage Arguments Value Author(s) Examples

View source: R/compound_db.R

Description

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

Usage

1

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")

ChemmineR documentation built on Feb. 28, 2021, 2:02 a.m.