You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using exportBins(copyNumbersCalled, file=paste0(path,".seg"), format="seg") (or vcf) it seems that not all calls are exported, if compared to the pdf generated by plot(copyNumbersCalled).
Lots of calls visible on the plot are missing in the export.
For example, you can see a gain of the full chromosome 11, and nothing for chromosome 11 in the export.
I noted that it's always calls with a probability < 1 that seem to be missing. But I didn't find any argument for that (maybe I'm missing something !)/
I tried adding filter=FALSE in exportBins(copyNumbersCalled, file=paste0(path,".seg"), format="seg", filter=FALSE) but results are identical, so I suppose it's not a filter on probability.
I would also like to export the probability value visible on the plot (but it didn't really understand how to get it from the 'copyNumbersCalled' object). It could be a column after LOG2_RATIO_MEAN in seg file, and QUAL value in the vcf (you put by default QUAL=1000 , and filter='PASS', filter could be changed if probability too low).
The code I used to get that (I use a unique BAM file of shallow WGS, and the mm10 dataset):
Hello,
When using
exportBins(copyNumbersCalled, file=paste0(path,".seg"), format="seg")
(or vcf) it seems that not all calls are exported, if compared to the pdf generated byplot(copyNumbersCalled)
.As an example, I got this plot :
and the exported seg file :
Lots of calls visible on the plot are missing in the export.
For example, you can see a gain of the full chromosome 11, and nothing for chromosome 11 in the export.
I noted that it's always calls with a probability < 1 that seem to be missing. But I didn't find any argument for that (maybe I'm missing something !)/
I tried adding filter=FALSE in
exportBins(copyNumbersCalled, file=paste0(path,".seg"), format="seg", filter=FALSE)
but results are identical, so I suppose it's not a filter on probability.I would also like to export the probability value visible on the plot (but it didn't really understand how to get it from the 'copyNumbersCalled' object). It could be a column after LOG2_RATIO_MEAN in seg file, and QUAL value in the vcf (you put by default QUAL=1000 , and filter='PASS', filter could be changed if probability too low).
The code I used to get that (I use a unique BAM file of shallow WGS, and the mm10 dataset):
My sessionInfo
I attached my dataframe exported using
saveRDS(copyNumbersCalled, file = "issue_export.rds.zip")
issue_export.rds.zip
The text was updated successfully, but these errors were encountered: