Open eriktoo opened 3 years ago
I have what seems to be a viable workaround for the absence of stats in genemetrics. I am running genemetrics output into segmetrics, and from there into call. This enables running call with --ci or --sem filters, as well as the possibility of including tumor purity and BAF info if applicable, as it is in my case.
A word of caution on using both genemetrics and call, though, as both attempt to determine gender if not explicitly given to those commands which can result in transformations of the data. In my case I have a diploidX reference. If a sample is detected as male its X chromosome log2 ratios are increased by 1. The problem is that when genemetrics does this for males, call sees the transformed value and detects those samples as female. Consequently the wrong copy number is reported for X genes (e.g. 2 copies).
I counter this by running genemetrics with '--gender f' to avoid X shifting at that stage, but let call detect gender per usual. I've tested it on a small subset of my sample set and the genders are correctly handled.
Edit: It appears this feature has not yet been implemented. I offer a possible workaround in the comments.
cnvkit version: 0.9.8
Genemetrics' help command lists a number of statistics which may be optionally selected using the appropriate flag:
However when statistics are selected they are not included in the output. In commands.py the arguments are parsed, however they are not passed to reports.do_genemetrics(), which appears to be why the output table does not include the optional statistics.