Download Fasta in R
1
0
Entering edit mode
3.5 years ago
Kenan.gk ▴ 10

How to download human fasta format in R programming?

FASTA R • 1.1k views
ADD COMMENT
1
Entering edit mode

That's out of context. You mean a specific file or what? Check Biostrings::readDNAStringSet().

ADD REPLY
0
Entering edit mode

thank you so much :)

ADD REPLY
1
Entering edit mode
3.5 years ago
Michael 56k

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.

ADD COMMENT

Login before adding your answer.

Traffic: 4551 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