Open EricDeveaud opened 20 hours ago
same apply to sqanti_reads.py
python hardcoded
cmd_sqanti = f"python {sqantiqcPath}/sqanti3_qc.py {gtf_files} {args.annotation} {args.genome} --skipORF --min_ref_len {args.min_ref_len} --aligner_choice {args.aligner_choice} -t {args.cpus} -d {args.input_dir}/{file_acc} -o {sampleID} -s {args.sites}"
cmd_sqanti = f"python {sqantiqcPath}/sqanti3_qc.py {fastq_files} {args.annotation} {args.genome} --skipORF --min_ref_len {args.min_ref_len} --aligner_choice {args.aligner_choice} -t {args.cpus} -d {args.input_dir}/{file_acc} -o {sampleID} -s {args.sites} --fasta"
cmd_plotting = f"python {plotting_script_path} --ref {args.annotation} --design {args.inDESIGN} -o {args.dir} --gene-expression {args.ANNOTEXP} --jxn-expression {args.JXNEXP} --perc-coverage {args.PERCCOV} --perc-junctions {args.PERCMAXJXN}"
the same way sqanti3_rescue.py
may replace python_path = distutils.spawn.find_executable('python')
by python_path=sys.executable
NB depending on the OS, the packager, python may be python3 maybe not ;-)
eg on RHEL8
[gensoft]maestro-builder:SQANTI3/5.2.2 > python --version
Python 2.7.17
[gensoft]maestro-builder:SQANTI3/5.2.2 > python3 --version
Python 3.6.8
Is there an existing issue for this?
Have you loaded the SQANTI3.env conda environment?
Problem description
Hello,
sqanti3_qc.py
use plain hard coded python3 call for inner commands.when running with another interpreter than the one in PATH this may break.
will be more robust and coinsistent.
regards
Eric
Code sample
No response
Error
No response
Anything else?
No response