Skip to content

Commit 91479cc

Browse files
committed
add hg19 GRCh diff support
1 parent 5de91de commit 91479cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/generate_bf.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ int BFGenerator::constructBfFromVcf(const string & vcf_filename, string bf_filen
203203
if (line[0] == '#') continue;
204204
vector<string> columns = split(line, '\t');
205205
string chr_name = columns[0];
206+
if(chr_name[0] != 'c') chr_name = "chr" + chr_name;
206207
int pos = stoi(columns[1]) - 1; // 1-based to 0-based coordinate
207208
string ref_seq = columns[3];
208209
string alt_seq = columns[4];
@@ -268,7 +269,7 @@ int BFGenerator::constructBfFromVcf(const string & vcf_filename, string bf_filen
268269
}
269270

270271
input.close();
271-
std::cout << "[BloomFilter constructBfFromGenomeseq] bit vector: " << bf->count_ones() << "/" << bf->num_filter_bits() << std::endl;
272+
std::cout << "[BloomFilter constructBfFromVCF] bit vector: " << bf->count_ones() << "/" << bf->num_filter_bits() << std::endl;
272273
bf->save(bf_filename);
273274
delete bf;
274275

0 commit comments

Comments
 (0)