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

Running gene_annotation.ipynb map_leafcutter_cluster_to_gene #544

Open
grennfp opened this issue Mar 6, 2023 · 0 comments
Open

Running gene_annotation.ipynb map_leafcutter_cluster_to_gene #544

grennfp opened this issue Mar 6, 2023 · 0 comments

Comments

@grennfp
Copy link
Contributor

grennfp commented Mar 6, 2023

I was working on running gene_annotation.ipynb map_leafcutter_cluster_to_gene and had some issues getting the notebook to run. I commented on another issue which I thought could be related. The main issue seems to center around the job failing to create the tmp folder which the job later tries to use to run a python script (see the stderr file below).

I was able to fix this by updating my .bashrc file to include the export SINGULARITY_BIND=... line I have in my csg.yml file, followed by reloading it with the source command. Here are the relevant files before I got it to work:

Here is my stderr file:

/opt/conda/bin/python: can't open file '/restricted/projectnb/casa/frank/xqtl_project/ROSMAP_PCC/scripts/tmpdbgt_wz5/singularity_run_83472.py': [Errno 2] No such file or directory

My script:

#!/bin/bash -l

module load miniconda
conda activate xqtl_env2

sos run /restricted/projectnb/casa/frank/xqtl_project/xqtl-pipeline/pipeline/gene_annotation.ipynb map_leafcutter_cluster_to_gene \
    --cwd /restricted/projectnb/casa/frank/xqtl_project/ROSMAP_PCC/leafcutter_output/batch_all \
    --intron_count  /restricted/projectnb/casa/frank/xqtl_project/ROSMAP_PCC/leafcutter_output/batch_all/batch_all_bam_no_ext_intron_usage_perind.counts.gz  \
    --phenoFile /restricted/projectnb/casa/frank/xqtl_project/ROSMAP_PCC/leafcutter_output/batch_all/batch_all_bam_no_ext_intron_usage_perind.counts.gz_raw_data.qqnorm.txt \
    --annotation-gtf /restricted/projectnb/casa/frank/xqtl_project/ROSMAP_PCC/reference_data/Homo_sapiens.GRCh38.103.chr.reformatted.collapse_only.gene.ERCC.gtf \
    --container /restricted/projectnb/casa/frank/xqtl_project/xqtl-pipeline/container/singularity/bioinfo.sif \
    --walltime 100h \
    --numThreads 20 \
    --mem 40G -J 50 -c csg.yml -q neurology

And my job log file:

INFO: Running �[32mmap_leafcutter_cluster_to_gene�[0m: 
�[91mERROR�[0m: �[91mmap_leafcutter_cluster_to_gene (id=5a76d510fef6330f) returns an error.�[0m
�[91mERROR�[0m: �[91m[map_leafcutter_cluster_to_gene]: [0]: Executing script in Singularity returns an error (exitcode=2, stderr=/restricted/projectnb/casa/frank/xqtl_project/ROSMAP_PCC/reference_data/Homo_sapiens.GRCh38.103.chr.reformatted.collapse_only.gene.ERCC.gtf.stderr).
The script has been saved to /usr3/graduate/fgrennjr/.sos/4966833ed02ca234//usr3/graduate/fgrennjr/.sos/4966833ed02ca234.To reproduce the error please run:
�[0m�[32msingularity exec  /restricted/projectnb/casa/frank/xqtl_project/xqtl-pipeline/container/singularity/bioinfo.sif python /usr3/graduate/fgrennjr/.sos/4966833ed02ca234/singularity_run_83472.py�[0m�[91m�[0m
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

1 participant