def setUp(self): self.data_dir = os.path.join(os.path.dirname(__file__), "data") self.progs = os.path.join(os.path.dirname(__file__), "data", "bin") self.reference = os.path.join(os.path.dirname(__file__), "data", "reference") self.bloom_dir = os.path.join(os.path.dirname(__file__), "data", "bloom") self.custom_dir = os.path.join(os.path.dirname(__file__), "data", "custom") self.synthetic_fastq = os.path.join(os.path.dirname(__file__), "data", "synthetic_fastq") self.tmp = os.path.join(os.path.dirname(__file__), "data", "tmp") self.fscreen_url = 'http://www.bioinformatics.babraham.ac.uk/projects/fastq_screen/fastq_screen_v0.4.2.tar.gz' helpers._mkdir_p(self.tmp) # Check if 2bit decompressor is available twobit_fa_path = os.path.join(self.progs, "twoBitToFa") if not os.path.exists(twobit_fa_path): galaxy.download_twoBitToFa_bin(twobit_fa_path) # Fastq_screen does not use OpenMP, but here we reuse the environment # variable from the benchmarks self.fastq_threads = os.environ.get('OMP_NUM_THREADS', 1) self.results = [] # XXX: Given the lack of standard reference genomes and indexes repos, # this site-specific hack (UPPMAX-only path) is needed self.site_prefix = '/proj/a2010002/nobackup/biodata/genomes/'
def setUp(self): self.data_dir = os.path.join(os.path.dirname(__file__), "data") self.progs = os.path.join(os.path.dirname(__file__), "data", "bin") self.reference = os.path.join(os.path.dirname(__file__), "data", "reference") self.bloom_dir = os.path.join(os.path.dirname(__file__), "data", "bloom") self.custom_dir = os.path.join(os.path.dirname(__file__), "data", "custom") self.synthetic_fastq = os.path.join(os.path.dirname(__file__), "data", "synthetic_fastq") self.fastq_nreads = [1, 8, 200] helpers._mkdir_p(self.data_dir) helpers._mkdir_p(self.progs) helpers._mkdir_p(self.reference) helpers._mkdir_p(self.bloom_dir) helpers._mkdir_p(self.custom_dir) helpers._mkdir_p(self.synthetic_fastq) # Check if 2bit decompressor is available twobit_fa_path = os.path.join(self.progs, "twoBitToFa") if not os.path.exists(twobit_fa_path): galaxy.download_twoBitToFa_bin(twobit_fa_path) # Downloads reference genome(s) galaxy.rsync_genomes(self.reference, ["phix", "dm3", "ecoli"], ["ucsc"], twobit_fa_path) # Collates results from all tests for later bulk reporting. # This way runtime is not biased by connection delays. self.results = []
def setUp(self): self.data_dir = os.path.join(os.path.dirname(__file__), "data") self.progs = os.path.join(os.path.dirname(__file__), "data", "bin") self.reference = os.path.join(os.path.dirname(__file__), "data", "reference") self.bloom_dir = os.path.join(os.path.dirname(__file__), "data", "bloom") self.custom_dir = os.path.join(os.path.dirname(__file__), "data", "custom") self.synthetic_fastq = os.path.join(os.path.dirname(__file__), "data", "synthetic_fastq") self.tmp = os.path.join(os.path.dirname(__file__), "data", "tmp") self.fscreen_url = 'http://www.bioinformatics.babraham.ac.uk/projects/fastq_screen/fastq_screen_v0.4.tar.gz' helpers._mkdir_p(self.tmp) # Check if 2bit decompressor is available twobit_fa_path = os.path.join(self.progs, "twoBitToFa") if not os.path.exists(twobit_fa_path): galaxy.download_twoBitToFa_bin(twobit_fa_path) self.databases = []
def setUp(self): self.data_dir = os.path.join(os.path.dirname(__file__), "data") self.progs = os.path.join(os.path.dirname(__file__), "data", "bin") self.reference = os.path.join(os.path.dirname(__file__), "data", "reference") self.bloom_dir = os.path.join(os.path.dirname(__file__), "data", "bloom") self.custom_dir = os.path.join(os.path.dirname(__file__), "data", "custom") self.synthetic_fastq = os.path.join(os.path.dirname(__file__), "data", "synthetic_fastq") self.tmp = os.path.join(os.path.dirname(__file__), "data", "tmp") self.fscreen_url = 'http://www.bioinformatics.babraham.ac.uk/projects/fastq_screen/fastq_screen_v0.4.2.tar.gz' helpers._mkdir_p(self.tmp) # Check if 2bit decompressor is available twobit_fa_path = os.path.join(self.progs, "twoBitToFa") if not os.path.exists(twobit_fa_path): galaxy.download_twoBitToFa_bin(twobit_fa_path) # Fastq_screen does not use OpenMP, but here we reuse the environment # variable from the benchmarks self.fastq_threads = os.environ.get('OMP_NUM_THREADS', 1) self.results = []
def setUp(self): self.data_dir = os.path.join(os.path.dirname(__file__), "data") self.progs = os.path.join(os.path.dirname(__file__), "data", "bin") self.reference = os.path.join(os.path.dirname(__file__), "data", "reference") self.bloom_dir = os.path.join(os.path.dirname(__file__), "data", "bloom") self.custom_dir = os.path.join(os.path.dirname(__file__), "data", "custom") self.synthetic_fastq = os.path.join(os.path.dirname(__file__), "data", "synthetic_fastq") self.tmp = os.path.join(os.path.dirname(__file__), "data", "tmp") helpers._mkdir_p(self.data_dir) helpers._mkdir_p(self.progs) helpers._mkdir_p(self.reference) helpers._mkdir_p(self.bloom_dir) helpers._mkdir_p(self.custom_dir) helpers._mkdir_p(self.synthetic_fastq) helpers._mkdir_p(self.tmp) # SimNGS-specific variables self.simngs_url = 'http://www.ebi.ac.uk/goldman-srv/simNGS/current/simNGS.tgz' self.sim_reads = [100, 1000, 1000000, 10000000] # simNGS will generate exactly the same "random" datasets on each run self.sim_seed = "6666520666" self.simngs = os.path.join(self.progs, "simNGS") self.simlib = os.path.join(self.progs, "simLibrary") # Default Illumina error profiles for simNGS self.runfile = os.path.join(self.progs, "s_3_4x.runfile") # Check if reference data is already downloaded, and do it if not # Check if 2bit decompressor is available twobit_fa_path = os.path.join(self.progs, "twoBitToFa") if not os.path.exists(twobit_fa_path): galaxy.download_twoBitToFa_bin(twobit_fa_path) # Downloads reference genome(s) galaxy.rsync_genomes(self.reference, ["phix", "dm3", "ecoli"], ["ucsc"], twobit_fa_path)
def setUp(self): self.data_dir = os.path.join(os.path.dirname(__file__), "data") self.progs = os.path.join(os.path.dirname(__file__), "data", "bin") self.reference = os.path.join(os.path.dirname(__file__), "data", "reference") self.bloom_dir = os.path.join(os.path.dirname(__file__), "data", "bloom") self.custom_dir = os.path.join(os.path.dirname(__file__), "data", "custom") self.synthetic_fastq = os.path.join(os.path.dirname(__file__), "data", "synthetic_fastq") self.fastq_nreads = [1, 8, 200] helpers._mkdir_p(self.data_dir) helpers._mkdir_p(self.progs) helpers._mkdir_p(self.reference) helpers._mkdir_p(self.bloom_dir) helpers._mkdir_p(self.custom_dir) helpers._mkdir_p(self.synthetic_fastq) # Check if 2bit decompressor is available twobit_fa_path = os.path.join(self.progs, "twoBitToFa") if not os.path.exists(twobit_fa_path): galaxy.download_twoBitToFa_bin(twobit_fa_path) # Downloads reference genome(s) galaxy.rsync_genomes(self.reference, ["phix", "dm3", "ecoli"], ["ucsc"], twobit_fa_path)