Converting genome build from hg38 to hg19 using liftOver via bigsnpr - error fetching file
2
0
Entering edit mode
3 months ago
dam4l ▴ 200

I am trying to use LiftOver via bigsnpr to change genome coordinates from hg38 to hg19.

I have tried the following:

hg19 <- snp_modifyBuild(
  info_snp,
  "/pathtoexecutable/liftOver",
  from = "hg38",
  to = "hg19",
  check_reverse = TRUE
)

I have received the following error message:

Error in utils::download.file(url, destfile = chain, quiet = TRUE) : 
  cannot open URL 'ftp://hgdownload.cse.ucsc.edu/goldenPath/hg19/liftOver/hg19ToHg38.over.chain.gz'

I have downloaded the hg19ToHg38.over.chain.gz file locally, and I would like to provide the path to it rather than attempting to download and generating the error message. snp_modifyBuild does not have an argument (that I am able to identify) to allow me to do this. Any tips or ideas for a workaround would be greatly appreciated.

Thank you!

snp bigsnpr liftover r • 519 views
ADD COMMENT
0
Entering edit mode
11 weeks ago

Replace ftp:// with https://

ADD COMMENT
0
Entering edit mode
11 weeks ago
kaaz • 0

Seems to be an issue on bigsnpr's end. Recent update should allow to specify chain file download location:

https://github.com/privefl/bigsnpr/issues/491

ADD COMMENT

Login before adding your answer.

Traffic: 1588 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6