Closed mjko1210 closed 4 years ago
Sorry, this error only happened when I specified samples. When I didn't specify sample names with comut.samples, it was fine! please ignore above!
Glad you were able to resolve the error! Just in case anyone happens on this issue in the future - there are two ways to specify samples to visualize in the comut:
Just add the datasets, in which case CoMut will determine samples based on the first dataset added (in your case, ploidy_df
). If any later datasets have additional samples that weren't present in the first dataset, CoMut will throw an error - it won't go back and give blank ploidy values to samples that weren't present in the original ploidy_df
.
Specify the samples before data is added with comut.samples
. Again, CoMut will throw an error if future datasets have samples that are not present in this original list. In your case, it threw an error because there were samples with ploidy data that weren't present in your initial list (based on cnvs).
In either case, the key is that the sample list CoMut is using (either based on the first dataset or samples you give it) is all inclusive, meaning it contains every sample that will appear in the comut, even if some datasets are missing those samples.
Hi, I added 3 different tracks as below:
I assume it adds each track in the reverse order (cnv-> purity-> ploidy). However, I'm getting an error
All added samples must be a subset of either first samples added or samples specified with comut.samples
since the samples in cnv are part of purity/ploidy (not all samples from purity/ploidy have cnv) . I've also indicated samples usingcomut.samples
(for those with cnv available) right after creating comut object, however, it still gives me the same error. Is there any way to get around this?The point here is: I don't need to plot all the samples mentioned from ploidy/purity. I want to visualize ploidy/purity only when cnvs are available.
Thanks!