Mercurial > repos > weilong-guo > bs_seeker2
comparison BSseeker2/bs_index/wg_build.py @ 1:8b26adf64adc draft default tip
V2.0.5
author | weilong-guo |
---|---|
date | Tue, 05 Nov 2013 01:55:39 -0500 |
parents | e6df770c0e58 |
children |
comparison
equal
deleted
inserted
replaced
0:e6df770c0e58 | 1:8b26adf64adc |
---|---|
1 from bs_utils.utils import * | 1 from bs_utils.utils import * |
2 | 2 |
3 | 3 |
4 def wg_build(fasta_file, build_command, ref_path, aligner): | 4 def wg_build(fasta_file, build_command, ref_path, aligner): |
5 | 5 |
6 # ref_path is a string that containts the directory where the reference genomes are stored with | 6 # ref_path is a string that contains the directory where the reference genomes are stored with |
7 # the input fasta filename appended | 7 # the input Fasta filename appended |
8 ref_path = os.path.join(ref_path, | 8 ref_path = os.path.join(ref_path, |
9 os.path.split(fasta_file)[1] + '_'+aligner) | 9 os.path.split(fasta_file)[1] + '_'+aligner) |
10 | 10 |
11 clear_dir(ref_path) | 11 clear_dir(ref_path) |
12 #--------------------------------------------------------------- | 12 #--------------------------------------------------------------- |