broadinstitute / gtex-pipeline

GTEx & TOPMed data production and analysis pipelines
BSD 3-Clause "New" or "Revised" License
339 stars 175 forks source link

Add pyqtl to qtl/Dockerfile so eqtl_prepare_expression.py runs smoothly #61

Closed dampierch closed 2 years ago

dampierch commented 3 years ago

Intro

Thank you for maintaining this code. I encountered an error this morning when I tried to use the latest eqtl_prepare_expression.py script. I think I identified where the problem comes from, and I propose a simple solution that I think will solve it.

Observed Error

singularity exec ${cont_dir}${sif} bash -c "
    ${src}eqtl_prepare_expression.py ${tpm_gct} ${reads_gct} ${gtf} \
    ${sample_participant_lookup} ${vcf_chr_list} ${prefix} \
        --tpm_threshold 0.1 \
        --count_threshold 6 \
        --sample_frac_threshold 0.2 \
        --normalization_method tmm
"
Traceback (most recent call last):
  File "gtex-pipeline/qtl/src/eqtl_prepare_expression.py", line 11, in <module>
    import qtl.io
ImportError: No module named 'qtl'

Likely Problem

Proposed Solution

francois-a commented 2 years ago

Thanks, fixed.