def setUp(self): """docstring for setup""" print "Running setUp speedtest" user1 = User.objects.create() user1.set_password('f') user1.username = '******' user1.save() self.user1 = user1 self.man1 = Manufacturer.objects.create(name='MZTech') self.inst1 = Instrument.objects.create( name='HiLine-Pro', description='MS/MS Spectrometer', manufacturer=self.man1) self.uniprot = ExternalDb.objects.create( db_name='UniProt', url_stump='http://www.uniprot.org/uniprot/') bi1 = BackgroundImports() cl = bi1.get_cell_line(MDIC) bi1.insert_alleles(MDIC, cl_obj=cl) bi1.insert_update_antibodies(MDIC) bi1.create_experiment(MDIC, cl) #self.filepath = os.path.join( CURDIR, 'scripts/Time_Trial_Import4_PeptideSummary.trial' ) self.filepath = os.path.join(CURDIR, 'scripts/sample_large_ss.csv') #self.filepath = os.path.join( CURDIR, 'scripts/twentyk_trial.csv' ) self.BGFILE = os.path.join( CURDIR, '../../background/newdata_with_files_correct.csv') self.bi1 = bi1 def tearDown(self): self.bi1 = None
def setUp(self): """docstring for setup""" print "Running setUp bulk" user1 = User.objects.create( ) user1.set_password( 'f' ) user1.username = '******' user1.save() self.user1 = user1 self.man1 = Manufacturer.objects.create( name = 'MZTech' ) self.inst1 = Instrument.objects.create( name = 'HiLine-Pro', description = 'MS/MS Spectrometer', manufacturer = self.man1 ) self.uniprot = ExternalDb.objects.create( db_name = 'UniProt', url_stump = 'http://www.uniprot.org/uniprot/') bi1 = BackgroundImports() cl = bi1.get_cell_line( MDIC ) bi1.insert_alleles( MDIC, cl_obj = cl ) bi1.insert_update_antibodies( MDIC ) bi1.create_experiment( MDIC, cl ) self.bi1 = bi1
def setUp(self): """docstring for setup""" print "Running setUp bulk" user1 = User.objects.create() user1.set_password('f') user1.username = '******' user1.save() self.user1 = user1 self.man1 = Manufacturer.objects.create(name='MZTech') self.inst1 = Instrument.objects.create( name='HiLine-Pro', description='MS/MS Spectrometer', manufacturer=self.man1) self.uniprot = ExternalDb.objects.create( db_name='UniProt', url_stump='http://www.uniprot.org/uniprot/') bi1 = BackgroundImports() cl = bi1.get_cell_line(MDIC) bi1.insert_alleles(MDIC, cl_obj=cl) bi1.insert_update_antibodies(MDIC) bi1.create_experiment(MDIC, cl) self.bi1 = bi1
def setUp(self): """docstring for setup""" user1 = User.objects.create( ) user1.set_password( 'f' ) user1.username = '******' user1.save() self.user1 = user1 self.man1 = Manufacturer.objects.create( name = 'MZTech' ) self.inst1 = Instrument.objects.create( name = 'HiLine-Pro', description = 'MS/MS Spectrometer', manufacturer = self.man1 ) self.uniprot = ExternalDb.objects.create( db_name = 'UniProt', url_stump = 'http://www.uniprot.org/uniprot/') bi1 = BackgroundImports() cl = bi1.get_cell_line( MDIC ) bi1.insert_alleles( MDIC, cl_obj = cl ) bi1.insert_update_antibodies( MDIC ) bi1.create_experiment( MDIC, cl ) #self.filepath = os.path.join( CURDIR, 'scripts/Time_Trial_Import4_PeptideSummary.trial' ) self.filepath = os.path.join( CURDIR, 'scripts/sample_large_ss.csv' ) #self.filepath = os.path.join( CURDIR, 'scripts/twentyk_trial.csv' ) self.BGFILE = os.path.join( CURDIR, '../../background/newdata_with_files_correct.csv' ) self.bi1 = bi1
def setUp(self): print "Running setUp bulk" user1 = User.objects.create( ) user1.set_password( 'f' ) user1.username = '******' user1.save() self.user1 = user1 self.man1 = Manufacturer.objects.create( name = 'MZTech' ) self.inst1 = Instrument.objects.create( name = 'HiLine-Pro', description = 'MS/MS Spectrometer', manufacturer = self.man1 ) self.uniprot = ExternalDb.objects.create( db_name = 'UniProt', url_stump = 'http://www.uniprot.org/uniprot/') bi1 = BackgroundImports() cl = bi1.get_cell_line( MDIC ) bi1.insert_alleles( MDIC, cl_obj = cl ) bi1.insert_update_antibodies( MDIC ) bi1.create_experiment( MDIC, cl ) self.bi1 = bi1 ss_master = os.path.join( CURDIR, 'test/rj_test_experiments_index.csv') datadir = os.path.join(CURDIR, 'test/datadir') bulk_with_extra(self.user1.username, ss_master, datadir)
def setUp(self): print "Running setUp bulk" user1 = User.objects.create() user1.set_password('f') user1.username = '******' user1.save() self.user1 = user1 self.man1 = Manufacturer.objects.create(name='MZTech') self.inst1 = Instrument.objects.create( name='HiLine-Pro', description='MS/MS Spectrometer', manufacturer=self.man1) self.uniprot = ExternalDb.objects.create( db_name='UniProt', url_stump='http://www.uniprot.org/uniprot/') bi1 = BackgroundImports() cl = bi1.get_cell_line(MDIC) bi1.insert_alleles(MDIC, cl_obj=cl) bi1.insert_update_antibodies(MDIC) bi1.create_experiment(MDIC, cl) self.bi1 = bi1 ss_master = os.path.join(CURDIR, 'test/rj_test_experiments_index.csv') datadir = os.path.join(CURDIR, 'test/datadir') bulk_with_extra(self.user1.username, ss_master, datadir)