cnvkit
cnvkit copied to clipboard
Examining conflicts takes forever installing cnvkit with conda
Hello
I tried to install cnvkit using conda.
However, it is currently unfinished on the 3rd day.
Only the process of "Examing conflicts ~~" is being repeated over and over again.
Can I solve this problem by changing my other options?
Please Help
Thank you.
Hi @HeejunJang,
In my experience this is due to conda struggling to find compatible packages within a single channel
- What is your conda version (output of
conda --version
) - What is exact
conda
command you used ? - Do you have any channels specified in your
.condarc
config file ? (output ofconda config --show channels
) - What is your "channel priority" ? (output of
conda config --show channel_priority
)
To install CNVkit (or any "bioinformatics" package/app), I usually type conda create -n <package> -c conda-forge -c bioconda <package>
=> Order matters, so this tells conda to first look for dependencies in conda-forge
, then in bioconda
(then in defaults
channel, see conda's help)
=> So here, please try : conda create -n cnvkit -c conda-forge -c bioconda cnvkit
(possibly helpful : https://conda-forge.org/docs/user/tipsandtricks.html#how-to-fix-it)
Hope this helps ! Have a nice day, Felix.
Hello, Here's my information.
- conda 22.9.0
- conda update --all conda install cnvkit
- conda-forge
- bioconda
- defaults
- channel_priority: flexible
I'll try with your suggestion and reply again.
Thank you.
Heejun Jang.
Hello,
I installed with "conda create -n cnvkit -c conda-forge -c bioconda cnvkit"
and did "conda activate cnvkit"
But, Simmilar error occured before I ran cnvkit.py (source version) without conda environment.
/usr/bin/anaconda3/envs/cnvkit/lib/python3.10/site-packages/skgenome/gary.py:484: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
self.data = self.data.append(other.data, ignore_index=True)
/usr/bin/anaconda3/envs/cnvkit/lib/python3.10/site-packages/skgenome/gary.py:484: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
self.data = self.data.append(other.data, ignore_index=True)
WARNING: Most antitarget bins (100.00%, 19237/19237) have low or no coverage; is this amplicon/WGS?
/usr/bin/anaconda3/envs/cnvkit/lib/python3.10/site-packages/cnvlib/cnary.py:451: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
return pd.concat(resids) if resids else pd.Series([])
Antitargets are nan x more variable than targets
Wrote /work/hjjang/CNV/result/NEO83_S25_L001/NEO83_S25_L001.cnr with 22920 regions
Segmenting /work/hjjang/CNV/result/NEO83_S25_L001/NEO83_S25_L001.cnr ...
Segmenting with method 'cbs', significance threshold 0.0001, in 1 processes
Traceback (most recent call last):
File "/usr/bin/anaconda3/envs/cnvkit/bin/cnvkit.py", line 9, in
b'Loading probe coverages into a data frame\nWarning message:\nIn CNA(cbind(tbl$log2), tbl$chromosome, tbl$start, data.type = "logratio", :\n markers with missing chrom and/or maploc removed\n\nSegmenting the probe data\nError in segment(cna, weights = tbl$weight, alpha = 1e-04) : \n length of weights should be the same as the number of probes\nExecution halted\n'
I confirmed that similar errors occur both when running with conda and without conda.
Thank you.
Heejun Jang