Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: batch_run_sample() takes from 16 to 17 positional arguments but 18 were given #862

Closed
nash5202 opened this issue Jan 1, 2024 · 1 comment
Labels

Comments

@nash5202
Copy link

nash5202 commented Jan 1, 2024

I am trying to run the CNVkit 0.9.11.dev0 copy number calling pipeline for a whole exome sequencing sample. However, I am encountering a type error TypeError:batch_run_sample() takes from 16 to 17 positional arguments but 18 were given. I am using the following options with the batch command:

cnvkit.py batch tumour.bam -n -t xgen_plus_spikein.GRCh38.bed -f hg38_masked.fa --annotate hg38.refGene.filtered.bed -p 1

The pipeline runs until the following step and then fails:

CNVkit 0.9.11.dev0
Detected file format: bed
Splitting large targets
Applying annotations as target names
Detected file format: bed
Wrote ./xgen_plus_spikein.GRCh38.target.bed with 243938 regions
Wrote ./xgen_plus_spikein.GRCh38.antitarget.bed with 39443 regions
Building a flat reference...
Detected file format: bed
Detected file format: bed
Calculating GC and RepeatMasker content in hg38_masked.fa ...
Extracting sequences from chromosome chr1
Extracting sequences from chromosome chr2
Extracting sequences from chromosome chr3
Extracting sequences from chromosome chr4
Extracting sequences from chromosome chr5
Extracting sequences from chromosome chr6
Extracting sequences from chromosome chr7
Extracting sequences from chromosome chr8
Extracting sequences from chromosome chr9
Extracting sequences from chromosome chr10
Extracting sequences from chromosome chr11
Extracting sequences from chromosome chr12
Extracting sequences from chromosome chr13
Extracting sequences from chromosome chr14
Extracting sequences from chromosome chr15
Extracting sequences from chromosome chr16
Extracting sequences from chromosome chr17
Extracting sequences from chromosome chr18
Extracting sequences from chromosome chr19
Extracting sequences from chromosome chr20
Extracting sequences from chromosome chr21
Extracting sequences from chromosome chr22
Extracting sequences from chromosome chrX
Extracting sequences from chromosome chrY
Wrote ./reference.cnn with 283381 regions
Running 1 samples in serial
Traceback (most recent call last):
  File "/anaconda3/bin/cnvkit.py", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/cnvkit/cnvlib/cnvkit.py", line 10, in main
    args.func(args)
  File "/cnvkit/cnvlib/commands.py", line 205, in _cmd_batch
    pool.submit(
  File "/cnvkit/cnvlib/parallel.py", line 18, in submit
    return SerialFuture(func(*args))
                        ^^^^^^^^^^^
TypeError: batch_run_sample() takes from 16 to 17 positional arguments but 18 were given

Any help on resolving this issue is highly appreciated. Thank you.

@taoziyu97
Copy link

We faced the same issue, which seemed to be version-related. Installing version 0.9.10 resolved the problem for me. Do not use CNVkit 0.9.11.dev0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants