Wedge-lab / dpclust

Dirichlet Process based methods for subclonal reconstruction of tumours
GNU Affero General Public License v3.0
28 stars 16 forks source link

Error in test #16

Closed seedvestige closed 1 year ago

seedvestige commented 1 year ago

Hello,
When testing data using your example according to your helpfile, there was error report. Here is the whole report. " nohup: ignoring input [1] "" [1] "Running: simulated_001_01" [1] "Working dir: output" [1] "Analysis type: nd_dp" [1] "Datafiles:" [1] "simulated_001_01_dp_input.txt" [1] "" The following objects are masked by .GlobalEnv:

assign_sampled_muts, generate_cluster_ordering, keep_temp_files,
min_frac_muts_cluster, min_muts_cluster, mut.assignment.type,
no.iters, no.iters.burn.in, num_muts_sample, species

The following objects are masked by .GlobalEnv:

cellularity, datafiles, is.male, mutphasingfiles, samplename,
subsamples

The following object is masked by .GlobalEnv:

seed

[1] "Loading data..." [1] "Running DPClust..." [1] "100 / 2000" [1] "200 / 2000" [1] "300 / 2000" [1] "400 / 2000" [1] "500 / 2000" [1] "600 / 2000" [1] "700 / 2000" [1] "800 / 2000" [1] "900 / 2000" [1] "1000 / 2000" [1] "1100 / 2000" [1] "1200 / 2000" [1] "1300 / 2000" [1] "1400 / 2000" [1] "1500 / 2000" [1] "1600 / 2000" [1] "1700 / 2000" [1] "1800 / 2000" [1] "1900 / 2000" [1] "2000 / 2000" Error in .External2(C_X11, paste0("png::", filename), g$width, g$height, : unable to start device PNG Calls: RunDP ... DirichletProcessClustering -> Gibbs.subclone.density.est.1d -> plot1D -> png In addition: Warning message: In png(filename = pngFile, width = 1500, height = 1000) : unable to open connection to X11 display '' Execution halted " Command : " bash run.sh" Environment: System : Centos 7 Remote connect: VScode-R

Thank you for your help!

mjakobs commented 1 year ago

Hi @seedvestige , this looks like an X11 related issue, rather than dpclust.

Can you try adding the following line at the top of your script and see if that fixes it: options(bitmapType='cairo')

mjakobs commented 1 year ago

Please feel free to re-open this issue if the suggested solution has not resolved the error message :)