Ronald Robertson

Sanjay Singh

Scientist/Writer
  • Emailsanjaysingh765@gmail.com
  • Socail@lampatlex
  • VisitorSince 1982
  • LocationKentucky, USA



Perl Script 6: How to search NCBI database using PERL script





I was thinking that will not it be an exciting idea to search my favorite database NCBI right from my desktop. in search of solution of this weird think, i found that some people have already wrote down some PERL script for searching the NCBI database without going on their webpage again and again. this PERL script is written by Paul Stothard of University of Alberta and you can download the original PERL script along with its documentation from HERE or you can copy paste and save the script from below also,
























Script name Download
NCBI search.pl






This PERL script for NCBI search will accept following argument





 -q [STRING]     : raw query text (Required)

 -o [FILE]           : output file to create (Required).

 -d [STRING]     : name of the NCBI database to search, such as 'nucleotide', 'pubmed' (Required).

 -r [STRING]     : the type of information requested. For sequences, 'fasta' is often used.

 -m [INTEGER]    : the maximum number of records to return (Optional)



Uses:


perl ncbi_search.pl -q dysphagia AND homo sapiens -o results.txt -d pubmed -r uilist -m 100



will search two terms 'dysphagia AND homo sapiens' in database 'pubmed ' and write down the '100' results in file 'result.txt'.




perl ncbi_search.pl -q dysphagia AND homo sapiens -o results.txt -d protein -r fasta -m 100



will search two terms 'dysphagia AND homo sapiens'  in database 'pubmed ' and write down the '100' results in file 'result.txt'.









Problem ?????? drop a comments below :)

Comments