Perl/Python script for batch download mRNA sequences for multiple genes
1
2
Entering edit mode
6.2 years ago
Shicheng Guo ★ 9.6k

Hi All,

I hope to find a perl/python script for the multiple gene mRNA/transcript sequence (fasta) download which take Gene Symbol as input. for example, I want to download mRNA sequences for PADI1, PADI2, PADI3, PADI4, PADI5,PADI6 at same time and output a fasta file.

Thanks.

mRNA batch • 2.2k views
ADD COMMENT
1
Entering edit mode
  • You can use NCBI unix utils and a loop to go through your gene ID's.
  • You can use Ensembl REST (or Perl) API
ADD REPLY
2
Entering edit mode
6.2 years ago
Carambakaracho ★ 3.3k

Use the NCBI eBot to generate a perl script:

Ebot is an interactive tool that generates a Perl script that implements an E-utility pipeline. Ebot will guide you step by step in building the pipeline and then will download the Perl script to your computer.

To run the script, perl must be installed on your machine along with the following modules available from www.cpan.org:

LWP::Simple
LWP::UserAgent
  

These are very common modules and are part of most standard perl installations.

https://www.ncbi.nlm.nih.gov/Class/PowerTools/eutils/ebot/ebot.cgi

ADD COMMENT

Login before adding your answer.

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