Mercurial > repos > drosofff > fetch_fasta_from_ncbi
diff retrieve_fasta_from_NCBI.py @ 1:79cb7620843d draft
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/fetch_fasta_from_ncbi commit e0a1114b735bf1af257456174f64e5ef8d205754-dirty
author | drosofff |
---|---|
date | Wed, 28 Oct 2015 11:25:13 -0400 |
parents | 0bdc5a73c8d1 |
children | a9d8f69d59fb |
line wrap: on
line diff
--- a/retrieve_fasta_from_NCBI.py Sun Jun 21 14:29:45 2015 -0400 +++ b/retrieve_fasta_from_NCBI.py Wed Oct 28 11:25:13 2015 -0400 @@ -166,7 +166,7 @@ try: response = urllib2.urlopen(req) fasta = response.read() - if "Resource temporarily unavailable" in fasta: + if ("Resource temporarily unavailable" in fasta) or (not fasta.startswith(">") ): serverTransaction = False else: serverTransaction = True @@ -176,8 +176,6 @@ except httplib.IncompleteRead as e: serverTransaction = False self.logger.info("IncompleteRead error: %s" % ( e.partial ) ) - if self.dbname != "pubmed": - assert fasta.startswith(">"), fasta fasta = self.sanitiser(self.dbname, fasta) # time.sleep(1) return fasta