is the main object you’ll be using to connect to and query a database
Connect to a particular database
Returns a new Genome object
Parameters : | db : str
user : str
host : str
password : str
engine : sqlalchemy.engine
|
---|
Methods
annotate | |
bin_query | |
bins | |
commit | |
connection | |
create_url | |
dataframe | |
david_go | |
delete | |
downstream | |
entity | |
execute | |
expunge | |
expunge_all | |
flush | |
join | |
knearest | |
load_file | |
map | |
map_to | |
mirror | |
rollback | |
save_bed | |
sql | |
upstream | |
with_labels |
annotate a file with a number of tables
Parameters : | fname : str or file
tables : list
feature_strand : bool
in_memoory : bool
header : str
out : file
parallel : bool
|
---|
perform an efficient spatial query using the bin column if available. The possible bins are calculated from the start and end sent to this function.
Parameters : | table : str or table
chrom : str
start : int
end : int
|
---|
Get all the bin numbers for a particular interval defined by (start, end]
internal: create a dburl from a set of parameters or the defaults on this object
create a pandas dataframe from a table or query
Parameters : | table : table
limit: integer :
offset: integer :
|
---|
open a web-browser to the DAVID online enrichment tool
Parameters : | refseq_list : list
annot : list
|
---|
Return k-nearest downstream features
Parameters : | table : str or table
chrom_or_feat : str or feat
start : int
end : int
k : int
|
---|
Return k-nearest features
Parameters : | table : str or table
chrom_or_feat : str or feat
start : int
end : int
k : int
_direction : (None, “up”, “down”)
|
---|
use some of the machinery in pandas to load a file into a table
Parameters : | fname : str
table : str
sep : str
bins : bool
indexes : list[str]
|
---|
miror a set of tables from dest_url
Returns a new Genome object
Parameters : | tables : list
dest_url: str :
|
---|
write a bed12 file of the query. Parameters ———-
Return k-nearest upstream features
Parameters : | table : str or table
chrom_or_feat : str or feat
start : int
end : int
k : int
|
---|