Skip to content

[bug report] "cnvkit.py call" can not accept "purity" and "-m clonal" at the same time #424

Description

@b-niu

Hi etal,
In current call.py (2019/03/11), the 27-45th lines are:
image

I found if one has proivde a parameter of purity in a range of (0, 1.0) will make the parameter method == "clonal" disabled.

I have test this in cnvkit version 0.9.6.dev0 (from conda), with the command:

cnvkit.py call 2018030901_T1.call.cns -y -v 2018030901_T1.vardict.snp.filtered.vcf -m clonal --purity 0.7 -o test.call.cns

The logging info reports:

WARNING: VCF file contains multiple samples; returning the first sample '2018030901_T1'
Selected test sample 2018030901_T1
Loaded 28088 records; skipped: 0 somatic, 0 depth
Kept 17053 heterozygous of 28088 VCF records
Treating sample 2018030901_T1.call as male
Rescaling sample with purity 0.7, ploidy 2
Wrote test.call.cns with 274621 regions

We can see that the logging info "logging.info("Calling copy number with clonal ploidy %d", ploidy)" did not appear.

It may be a bug.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions