convert_to_granges {regutools}R Documentation

Function to convert output of regulondb queries to GenomicRanges objects

Description

This function converts, when possible, a regulon_result object into a GRanges object.

Usage

convert_to_granges(regulondb_result)

Arguments

regulondb_result

A regulon_result object.

Value

A GRanges object.

Author(s)

Alejandro Reyes

Examples

## Connect to the RegulonDB database if necessary
if (!exists("regulondb_conn")) regulondb_conn <- connect_database()

## Build the regulon db object
e_coli_regulondb <-
    regulondb(
        database_conn = regulondb_conn,
        organism = "E.coli",
        database_version = "1",
        genome_version = "1"
    )

## Obtain all the information from the "GENE" dataset
convert_to_granges(get_dataset(e_coli_regulondb, dataset = "GENE"))

[Package regutools version 1.6.0 Index]