Thank you very much. I will double check the data
Hi,
I think I have ran into a problem when I was using sciClone in order to generate a 2d plot. I have my bam files which have been processed by varscan somatic and I got the snp and indel files. After doing somatic filter and processsomatic, I put the data in somatic file to sciClone. As I have 2 samples, I instruct the program to read 2 set of snv data and copynumber data.The data format for the snv file looks like this
Chromosome position tumor_read1 tumor_read2 vaf_precentage
Chr 1 10011 8 4 30
Chr 2 12331 6 3 25
...
Chr Y
However, when I using sciClone in order to generate the plot and cluster file, I got the following error:
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 7, 0
In addition: Warning message:
In max(marginalClust[[i]]$cluster.assignments, na.rm = T) :
no non-missing arguments to max; returning -Inf
I am really new to R and if I have asked a stupid question, please forgive me.
Thanks
2 answers
Okay, based on the info you've provided above, the problem is that you only have 7 copy-number neutral points with adequate depth in this sample. If that's accurate, then you're not going to be able to get any kind of meaningful clonality analysis from 7 points.
You might also double check your data to see if it's a mistake. If this tumor isn't heavily CN-altered and has adequate depth for most points, then you should make sure that your CN values are correct and possibly tweak the copyNumberMargins param.
Hi Chris,
Sorry to bother you again. I actually found a similar post in Biostar: sciClone error for two sample
In that post, you said we have to merge the calls and pull readcounts for every site in both samples in order to generate the 2d plot so the input file should look like this
Tumor 1:
1 111 10 10 50.0
1 999 6 6 50.0
2 222 9 9 50.0
2 888 5 5 50.0
Tumor 2:
1 111 4 4 50.0
1 999 8 8 50.0
2 222 3 3 50.0
2 888 7 7 50.0
Yet, how can I do that? Since if I use compare (with the option merge) in Varscan I will just end up with 2 sample calls merge together, which look like this
1 111 10 10 50.0
1 999 8 8 50.0
2 222 9 9 50.0
2 888 7 7 50.0
By the way, my calls was generated by doing the comparison between normal and tumor1 + normal and tumor 2
You have to actually assemble a new list, by merging both of your lists, then go back to the bams and pull new readcounts, using a program like bam-readcount (https://github.com/genome/bam-readcount)
Log in to answer this question.
Please provide the following info, and I'll be happy to take a look: 1) the exact R commands that you're trying to run, 2) the first few lines of your input files
Thank you Chris,
R-code:
The first few lines of my input files are SNV for sample 1:
and for copynumber sample1
However, I noticed that when I open the copynumber file the file cannot be completely load as it has way to many records (I use excel to open it) so will that be a possible reason to have those error messages?
Thanks
Is there any output above the error message you pasted? Maybe something like:
ERROR: only N points - not enough points to cluster when using 7 intialClusters. Provide more data or reduce your maximumClusters optionI use 10, which is the default and 7 for the cluster, it shows
(I miss that, sorry)