Exemplo n.º 1
0
def transfer_genome(provider,genotypeid,id,request):
    '''Uploads genotype data for specified provider'''
    source = provider
    provider = check_cloud_provider(provider)
    data = provider.get_genotype_data(request.headers['ACCESS-TOKEN'],genotypeid)
    columns = data.columns.values.tolist() 
    data.sort([columns[1],columns[2]],inplace=True)
    return genotype.get_genotype_infos(genotype.upload_genotype(data.to_csv(sep='\t',index=False,header=False),id,source))
Exemplo n.º 2
0
def upload_genotype(body:getfile,id):
    '''Upload a genotype'''
    return genotype.get_genotype_infos(genotype.upload_genotype(body.decode("utf-8"),id))