Al-Murphy / MungeSumstats

Rapid standardisation and quality control of GWAS or QTL summary statistics
https://doi.org/doi:10.18129/B9.bioc.MungeSumstats
75 stars 16 forks source link

Is function "liftover" available in R package? #118

Closed RuochengDong closed 2 years ago

RuochengDong commented 2 years ago

1. Bug description

I was able to find the function "liftover" in the vignette but could not use it in R after I installed and libraryed the packages.

Console output

> library(MungeSumstats)
> gwas_to_hg38 <- liftover(sumstats_dt = gwas_format, 
+                                         ref_genome = "hg19", convert_ref_genome = "hg38")
Error in liftover(sumstats_dt = gwas_format, ref_genome = "hg19", convert_ref_genome = "hg38") : 
  could not find function "liftover"
> gwas_to_hg38 <- MungeSumstats::liftover(sumstats_dt = gwas_format, 
+                                         ref_genome = "hg19", convert_ref_genome = "hg38")
Error: 'liftover' is not an exported object from 'namespace:MungeSumstats'

In the help page, there is no function "liftover". image

Expected behaviour

I expect R to find this function and it will work.

Al-Murphy commented 2 years ago

It is available!

> ?MungeSumstats::liftover()
ℹ Rendering development documentation for "MungeSumstats::liftover"

Perhaps you are using an old version of MSS? I'd advise installing at least the latest release version of MSS to use it (v1.4.5) as there have been numerous updates to it from past releases

Al-Murphy commented 2 years ago

Closing for now but feel free to reopen if you are still unable to use it