BioInt
1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
|
00001 /**************************************************************************** 00002 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00003 The BioBhasha : The Biologist's Programming Language 00004 Version 1.0 (19th December 2001) 00005 Prasad, B.V.L.S. 00006 Contact: burrashiva@yahoo.com 00007 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00008 *****************************************************************************/ 00009 #ifndef BIOURL_H 00010 #define BIOURL_H 00011 00012 #include "BioUtilities.h" 00013 #include <iostream> 00014 #include <fstream> 00015 #include <string> 00016 #include <sstream> 00017 #include <vector> 00018 #include "BioSocketStream.h" 00019 00020 using namespace std; 00021 00022 class BioUrl 00023 { 00024 string extractPathInfo( const string& fromUrl_); 00025 string extractFileInfo( const string& fromUrl_); 00026 string extractHostInfo( const string& fromUrl_); 00027 void consume(istream& is, string word); 00028 00029 public: 00030 00031 static int getEmblFile(const string& pdbid, ostream& toBeStoredAs); 00032 static int getSwissProtFile(const string& pdbid, ostream& toBeStoredAs); 00033 00034 static int getPdbFile(const string& pdbid, ostream& toBeStoredAs); 00035 00036 static int getGenPeptFile(const string& gi, ostream& toBeStoredAs); 00037 static int getGenBankFile(const string& gi, ostream& toBeStoredAs); 00038 static int getPubMedFile(const string& pmid, ostream& toBeStoredAs); 00039 00040 static string getPdbIdsWithChids(string pdbid); 00041 static string getProteinIds(string pdbch); 00042 00043 static string getPubmedIds(string proteinIds); 00044 00045 //int getReferenceAbstracts(string pdbId, ostream& os); 00046 00047 static string getDbLastUpdate(const string& db_); 00048 00049 bool getFileByFtp(const string& fromUrl_); 00050 00051 static int getGeneId(const string& geneSymbol); 00052 static vector<string> getGeneSynonyms(int geneid); 00053 static string getGeneAccession(int geneid); 00054 00055 00056 }; 00057 00058 00059 00060 00061 00062 #endif