def create_from_remote_file(self, group, snapshot=True, **args):
        """
        Creates from remote GAF
        """
        import requests
        url = "http://snapshot.geneontology.org/annotations/{}.gaf.gz".format(group)
        r = requests.get(url, stream=True, headers={'User-Agent': get_user_agent(modules=[requests], caller_name=__name__)})
        p = GafParser()
        results = p.skim(r.raw)
        return self.create_from_tuples(results, **args)
def create_from_remote_file ( self , group , snapshot = True , ** args ) : import requests url = "http://snapshot.geneontology.org/annotations/{}.gaf.gz" . format ( group ) r = requests . get ( url , stream = True , headers = { 'User-Agent' : get_user_agent ( modules = [ requests ] , caller_name = __name__ ) } ) p = GafParser ( ) results = p . skim ( r . raw ) return self . create_from_tuples ( results , ** args )
Creates from remote GAF