I'd like to bring to your attention cnv_facets, a command line tool for detecting copy number variant (CNV), based on the facets package (Shen R and Seshan VE, Nucleic Acid Res, 2016).
Recently I've been using the facets package for detecting CNVs in tumour-normal sample pairs. I think facets works great but facets being a collection of R functions (plus an external program to prepare the input), it requires manual interaction from the user and so it doesn't play well with a streamlined analysis pipeline.
cnv_facets wraps all the required steps, from BAM files to VCF output and summary plots, in a simple command line call:
cnv_facets.R -t tumor.bam -n normal.bam -vcf snps.vcf.gz -o tex
Installation can be done under regular user permission (no admin rights required) as:
git clone https://github.com/wwcrc/cnv_facets.git
cd cnv_facets
bash setup.sh /dir/on/your/path
For more information, check out the README file. Feel free to use and report any bugs, comments, questions.
0 answers
No answers yet.
Log in to answer this question.

Could you show me your code of 'cnv_facets.R' script. I found some errors when I run this command:
The error happens on when I run the run_facets function and it is as follows:
I'm confused about how you are using
cnv_facets. You are showing the command to be executed on the terminal (cnv_facets.R -t ...). This is howcnv_facets.Ris supposed to be used and the command looks about right. But then you show some R commands with functionrun_facetsredefined in such way that it cannot work (readSnpMatrixis not meant to read vcf files, hence the error you get). So what is it your trying to do...?Hi, thanks for providing cnv_facets. I'm using it to analyze hundreds of matched tumor samples for PyClone. I've noticed that the dosage in some spider plots falls off the good fit line. Should I adjust parameters per sample, or is there an accepted threshold? Or could you kindly point me to any resources on this? Many thanks again.