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

fix Blast script indenting bug and baseCommand in cwl #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

junyussh
Copy link

@junyussh junyussh commented Nov 6, 2024

The latest ncbi/blast image could not find python command.

INFO [job step3] /tmp/20fskiuz$ docker \                                                                                                                                                                                                                 
    run \                                                                                                                                                                                                                                                
    -i \                                                                                                                                                                                                                                                 
    --mount=type=bind,source=/tmp/20fskiuz,target=/kcJHVr \                                                                                                                                                                                              
    --mount=type=bind,source=/tmp/5m1blchh,target=/tmp \                                                                    
    --mount=type=bind,source=/root/RunningWorkflows-on-the-GoogleCloud/CWL-Blast/data/sample.fa,target=/var/lib/cwl/stgc692eec9-c6c2-4aae-9850-d2065457bcd4/sample.fa,readonly \
    --mount=type=bind,source=/tmp/k13dpx66/Headers.txt,target=/var/lib/cwl/stgd4487510-563e-41b5-9764-2ba9740b6ef4/Headers.txt,readonly \
    --mount=type=bind,source=/root/RunningWorkflows-on-the-GoogleCloud/CWL-Blast/scripts/Count_Nucleotides.py,target=/var/lib/cwl/stgf1396cb1-7d40-4bd7-a15c-f48c26c8d799/Count_Nucleotides.py,readonly \
    --workdir=/kcJHVr \                                                                                                     
    --read-only=true \                                                                                                      
    --log-driver=none \                                                                                                     
    --user=0:0 \                                                                                                            
    --rm \                                                                                                                  
    --cidfile=/tmp/l2r0o4rv/20241106141521-961423.cid \                                                                     
    --env=TMPDIR=/tmp \                                                                                                     
    --env=HOME=/kcJHVr \                                                                                                    
    ncbi/blast:latest \                                                                                                     
    /bin/sh \                                                                                                               
    -c \                                                                                                                    
    'python' '/var/lib/cwl/stgf1396cb1-7d40-4bd7-a15c-f48c26c8d799/Count_Nucleotides.py' '/var/lib/cwl/stgc692eec9-c6c2-4aae-9850-d2065457bcd4/sample.fa' '/var/lib/cwl/stgd4487510-563e-41b5-9764-2ba9740b6ef4/Headers.txt' > 'NucleoCount.txt' > /tmp/2
0fskiuz/NucleoCount.txt
/bin/sh: 1: python: not found

The origin Blast python scripts contain indentation errors under unix systems.

https://github.com/isb-cgc/RunningWorkflows-on-the-GoogleCloud/blob/4008d86f3ccd81bef3ec78d69d484c7dcf57393a/CWL-Blast/scripts/Extract_Contigs.py#L10C1-L13C43

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

Successfully merging this pull request may close these issues.

1 participant