def __init__(
     self,
     config_file=path.join(path.expanduser("~"),
                           ".irida/nabil_uploader.yaml"),
 ):
     self.config_file = config_file
     self.project_name = "Basespace-Emma_D"
     self.api = api_calls.initialize_api_from_config(self.config_file)
Exemple #2
0
 def __init__(
     self,
     project_name,
     temp_dir,
     config_file=path.join(path.expanduser("~"),
                           ".irida/nabil_uploader.yaml"),
 ):
     self.config_file = config_file
     self.project_name = project_name
     self.api = api_calls.initialize_api_from_config(self.config_file)
     self.temp_dir = temp_dir
Exemple #3
0
 def __init__(
     self,
     project_name,
     manifest,
     public_data=None,
     delete=False,
     config_file=path.join(path.expanduser("~"),
                           ".irida/nabil_uploader.yaml"),
 ):
     self.config_file = config_file
     self.project_name = project_name
     self.api = api_calls.initialize_api_from_config(self.config_file)
     self.manifest = manifest
     self.public_data = public_data
     self.public_data_meta = public_data_meta
     self.delete = False
Exemple #4
0
from os import path
from api import api_calls

config_file = path.join(path.expanduser("~"), ".irida/nabil_uploader.yaml")
api = api_calls.initialize_api_from_config(config_file)

x = api._session.get(
    "http://db.informatics.quadram.ac.uk:8080/irida/api/samples/1045/metadata")
from pprint import pprint

print(pprint(x.json()))
Exemple #5
0
from api import api_calls
from os import path


def get_project_id(project_name):
    return [x.id for x in api.get_projects() if x.name == project_name]


def get_sample_files(project_id):
    api.get_samples()


api = api_calls.initialize_api_from_config(path.join(path.expanduser("~"), ".irida/nabil_uploader.yaml"))
get_project_id('STEC_nabil')