Download Fasta in R
How to download human fasta format in R programming?
• 1,324 views
•
link
1 answer
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.
• 0 views
•
link
Log in to answer this question.
That's out of context. You mean a specific file or what? Check
Biostrings::readDNAStringSet().thank you so much :)