rba_jaspar_matrix {rbioapi}R Documentation

Get a Position Frequency Matrices (PFM) with annotations

Description

Using this function you can retrieve a Position Frequency Matrices (PFM) associated with a matrix profile Identifier along with its details and annotations. If a base ID (i.e. without version suffix) was supplied, the latest version will be returned.

Usage

rba_jaspar_matrix(matrix_id, file_format = NULL, save_to = NULL, ...)

Arguments

matrix_id

Character: A matrix profile Identifier. It has "base_id.version" naming schema.

file_format

Character: Instead of returning a R object, you can directly download the profile matrix in file with this format. Supported formats are: "yaml", "jaspar", "transfac", "meme" and "pfm"

save_to

NULL or Character:

  • NULL: (only if file_format was supplied) Save the file to an automatically-generated path.

  • Character string: A valid file or directory path to save the file to.

...

rbioapi option(s). See rba_options's arguments manual for more information on available options.

Value

A list that contains the PFM along with its details and annotations. If file_format was supplied, an un-parsed character string with the file's content.

Corresponding API Resources

"GET https://jaspar.elixir.no/api/v1/matrix/{matrix_id}/"

References

See Also

Other "JASPAR": rba_jaspar_collections(), rba_jaspar_collections_matrices(), rba_jaspar_matrix_search(), rba_jaspar_matrix_versions(), rba_jaspar_releases(), rba_jaspar_sites(), rba_jaspar_species(), rba_jaspar_species_matrices(), rba_jaspar_taxons(), rba_jaspar_taxons_matrices(), rba_jaspar_tffm(), rba_jaspar_tffm_search()

Examples


rba_jaspar_matrix("MA0600.2")

## Not run: 
rba_jaspar_matrix(matrix_id = "MA0600.2",
                  file_format = "meme",
                  save_to = "my_matrix.meme")

## End(Not run)


[Package rbioapi version 0.8.1 Index]