Entering edit mode
3.5 years ago
Kenan.gk
▴
10
How to download human fasta format in R programming?
How to download human fasta format in R programming?
I am turning ATpoint's comment into an answer, hope that is ok.
library(Biostrings)
readDNAStringSet("https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/001/405/GCF_000001405.39_GRCh38.p13/GCF_000001405.39_GRCh38.p13_genomic.fna.gz")
Most R functions that can read in data can use URL connections in the same ways as local files, and also deal with compressed files.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
That's out of context. You mean a specific file or what? Check
Biostrings::readDNAStringSet()
.thank you so much :)