Open jsmedmar opened 7 years ago
I second this question. @jsmedmar have you been able to find an answer to this?
Just took a look into my code and it seems I ended up setting it to 0 if I got any string:
# Parse integer copy number prediction, see:
# https://github.com/raphael-group/THetA/blob/master/doc/MANUAL.txt#L23
# Found a string integer CN when running using a batch of normals.
# Thats the reason of `e.isdigit()`, please see the following ticket:
# https://github.com/raphael-group/THetA/issues/17
theta_results = join(outdir, tumor_name + ".n2.results")
results = pd.read_csv(theta_results, delimiter="\t")
ncn["zint_cpnumber"] = 2
tcn["zint_cpnumber"] = [
int(e) if e.isdigit() else 0 for e in results["C"][0].split(":")
]
I'm running THetA2 on the CNVKIT output of a batch run with one target and many normals.
Why do I have a
"X"
in my integer copy number prediction? Output looks like this:My command is: