Skip to content

Commit

Permalink
step5 update batch
Browse files Browse the repository at this point in the history
  • Loading branch information
tf2 committed Jul 6, 2023
1 parent 37fea0f commit 8753bf5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Rbin/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ generate_correlation_chunk_batch,
get_references,
get_ref_sample_names_by_type,
batch_get_references_to_rbin,
get_references_return,
processLogRtoBin,
run_hmm_rbin
)
Expand Down
2 changes: 1 addition & 1 deletion src/Rbin/R/Rbin.R
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ return(data.frame(index, data, ref_med_cov, matched_med_cov, mismatched_med_cov)
batch_get_references_to_rbin <- function(index_file, gender_file, rbin_dir,
cor_dir, bin_dir, batch_size = 1000, target_files_size, start_pos, cor_cut = 0.9, skip_em=FALSE) {
gens = read.table(gender_file, header=T)
sample_names =as.character(gens[start_pos:((start_pos-target_files_size)-1),1])
sample_names = as.character(gens[start_pos:((start_pos+target_size)-1),1])
for(x in 1:length(sample_names)) {
sample_name = sample_names[x]
data = get_references_return(sample_name, index_file, gender_file, cor_dir, bin_dir, batch_size, cor_cut, skip_em)
Expand Down
Binary file modified src/Rbin_1.1.tar.gz
Binary file not shown.

0 comments on commit 8753bf5

Please sign in to comment.