morinlab / GAMBLR

Set of standardized functions to operate with genomic data
https://morinlab.github.io/GAMBLR/
MIT License
3 stars 2 forks source link

Fix error in gene_to_region function #197

Closed vladimirsouza closed 1 year ago

vladimirsouza commented 1 year ago

I fixed an error when running the gene_to_region function.

Example of a code to reproduce the error: myc_region = gene_to_region(gene_symbol = "MYC", genome_build = "grch37", return_as = "region")

Error message: Can't convert `y` <character> to match type of `x` <double>.

The code mutate_all(na_if,"") (see line inside the function) was changed to avoid incompatibilities between arguments x and y of function na_if.