View source: R/generate_df_gi_list.R
generate_df_gi_list | R Documentation |
Generates a gi_list instance from a data frame object describing the regions.
generate_df_gi_list( df, chrs = NULL, Dthreshold = 2e+06, gen = "Hsapiens", gen_ver = "hg19" )
df |
DataFrame with columns named 'chr', 'start', (and optionally 'end', if the regions have gaps) and 1D features with their respective column names. |
chrs |
select a subset of chromosomes' e.g.,
c('chr21','chr22'). Defaults to all chromosomes
specified in |
Dthreshold |
maximum distance (included) to check for significant interactions, defaults to 2e6 or maximum in the data, whichever is smaller. |
gen |
name of the species: e.g., default |
gen_ver |
genomic assembly version: e.g., default |
a valid gi_list instance with genomic features supplied from
df
. Genomic 1D features are stored in the regions metadata handle
of each list element (e.g., gi_list[[1]]@regions@elementMetadata
).
df<-data.frame(chr='chr9',start=seq(1e6,10e6,1e6)) gi_list<-generate_df_gi_list(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.