cnv_facets icon indicating copy to clipboard operation
cnv_facets copied to clipboard

install cnv_facets 0.16.0 with r-facets 0.6.1 using anaconda3

Open jh2663 opened this issue 3 years ago • 1 comments

Hi. thank you for your effort with this script. I am just wondering if there is a way of installing r-facets 0.6.1 version with the 0.16.0 version of cnv_facets using conda or mamba command in linux system. I find r-facets 0.6.1 is only installable in R >=4.0 while cnv_facets is only for 3.5 or 3.6?

Best,

jh2663 avatar May 06 '21 01:05 jh2663

Hi- sorry about that. I need to revise the installation recipe to update it to work with more recent versions. For the time being, the following should work, but I haven't tested it yet.

Skip the bioconda installation but use conda to install the dependencies. So something like:

conda create -n cnv_facets
conda activate cnv_facets

# I recommend switching from `conda install` to `mamba install` for good
mamba install 'r-facets>=0.6.1' 'r-data.table' 'r-ggplot2' 'r-argparse>=2' 'snp-pileup>=0.6.1' 'r-gridextra' 'bioconductor-rsamtools' 'samtools' 'bcftools >=1.9'

Now download the script cnv_facets.R and put it on your PATH:

mkdir -p $PREFIX/bin

curl -s https://raw.githubusercontent.com/dariober/cnv_facets/master/bin/cnv_facets.R > $PREFIX/bin/cnv_facets.R
chmod a+x $PREFIX/bin/cnv_facets.R

dariober avatar May 06 '21 09:05 dariober