Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atacworks stuck at "waiting for writter to finish..." #237

Open
rochevin opened this issue Apr 22, 2021 · 3 comments
Open

Atacworks stuck at "waiting for writter to finish..." #237

rochevin opened this issue Apr 22, 2021 · 3 comments

Comments

@rochevin
Copy link

Hello,

Great paper and great tool and thank you to sharing your docker environment to facilitate the use of your tool,

Maybe i'm doing something wrong, but when i'm trying to use atacworks denoise, i'm stuck forever when this sentence shows up :

Inference #################### [57500/57611] 
Inference #################### [57550/57611] 
Inference #################### [57600/57611] 
Inference time taken: 4012.039s (Load    3.825s,Prediction 4008.112s)
INFO:2021-04-20 15:29:23,602:AtacWorks-main] Waiting for writer to finish...

I'm using it within docker :
docker run --gpus all --shm-size 2G -it -v ~/DeepG4ToolsComparison/:/DeepG4ToolsComparison claraomics/atacworks /bin/bash

and my command is : atacworks denoise --noisybw ATAC_entinostat_mean.bw --genome ../hg19.auto.sizes --out_home denoise --distributed --exp_name ATAC_entinostat_mean

Thanks,
Vincent

@NachoDave
Copy link

Hi, I also have the same issue using the docker container.

@ntadimeti
Copy link
Collaborator

Hi @rochevin thanks for your interest in the tool. Can you please run the default tutorial for atacworks denoise : https://clara-parabricks.github.io/AtacWorks/tutorials/tutorial2.html this will help us understand if the problem is with the setup or with your data.

Thanks.

@rochevin
Copy link
Author

rochevin commented May 7, 2021

hi @ntadimeti thanks a lot for your response !
So I did the tutorial on the same docker container and it worked (with all files created)

Inference #################### [57600/57611] 
INFO:2021-05-06 15:40:45,963:AtacWorks-main] Waiting for writer to finish...
Writing the output to bigwig files
Inference time taken: 4156.558s (Load  146.284s,Prediction 4010.163s)
Saving config file to ./denoise_config.yaml...

And so i tried to use the exact same command but with my file instead :

nohup atacworks denoise \
    --noisybw ATAC_entinostat_mean.bw \
    --genome ../hg19.auto.sizes \
    --weights_path /tutorial2/models/model.pth.tar \
    --out_home "denoise" \
    --exp_name "ATAC_entinostat_mean" \
    --distributed \
    --num_workers 0 &

Still stuck (I had to kill the process) but bedgraph was generated this time and not the BigWig files. So I tried to generate the bigwig myself with
bedGraphToBigWig ATAC_entinostat_mean_infer.track.bedGraph ../../../hg19.auto.sizes ATAC_entinostat_mean_infer.track.bw and LC_COLLATE=C;sort -k1,1 -k2,2n ATAC_entinostat_mean_infer.track.bedGraph -o ATAC_entinostat_mean_infer.track.bedGraph with success (same with ATAC_entinostat_mean_infer.peaks.bedGraph)
This command was needed in order to generate the bigwig with bedGraphToBigWig so maybe it stuck here in the code ?

Anyway I tried with another file with the same command and it worked correctly so maybe something is wrong with my file.

In summary :

  • The first time I did not use the arguments --num_workers 0 and --weights_path /tutorial2/models/model.pth.tar; what's the default weights used if not precised ?
  • The difference between my two tests files is that ATAC_entinostat_mean is normalized, but when I tried the first time I also did it with the unnormalized file and It was stuck forever too so I don't know...

Any advice ?

Thanks,
Vincent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants