molgenis / NIPTeR

R Package for Non Invasive Prenatal Testing (NIPT) analysis
GNU Lesser General Public License v3.0
40 stars 16 forks source link

Error: More than one strand type in control group #11

Open wangyugui opened 6 years ago

wangyugui commented 6 years ago

Hi,

Can we give more detail info about "Error: More than one strand type in control group"?

Case1

control_group  <- as_control_group(nipt_samples = lapply(X = bam_filepaths, FUN = bin_bam_sample, do_sort = F, separate_strands = F))

Error: More than one strand type in control group

Reason: the bam_filepaths is wrong.

Case2:

> new_ncv_template_21 <- prepare_ncv(nipt_control_group = control_group, chr_focus = "21", max_elements = 9)
Error: More than one strand type in control group

Reason:?

Best Regards

ljohansson commented 6 years ago

Dear wangygui,

Normally the error means that some of the samples that are used to create the control group have "separate strands = F" while others have separate strands = "T". Possibly the error is in the "bam_filepaths" variable.