Entering edit mode
6.5 years ago
genya35
▴
50
Hello,
I've pull and image secessfully and now trying to run samtools sort, however, docker is not finding the bam file. Any suggestions?
Here is the code:
docker run -v /home/yey/mdl3/results:/data --rm biocontainers/samtools sort \
-T /tmp/HD753_IonXpress_007.sorted \
-o /home/yey/mdl3/results/HD753_IonXpress_007.sorted.bam /home/yley/mdl3/results/HD753_IonXpress_007.bam
I get an error message "sort: cannot read: /home/yey/mdl3/results/HD753_IonXpress_007.bam: No such file or directory"
Thanks
sort command seems to be working but not index command. I get the following error. docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"index\": executable file not found in $PATH": unknown. Is this a known issue?
Instead of using
... biocontainers/samtools index ...
, try... biocontainers/samtools samtools index ...
and it should work.Thanks, sort and index seem to work, however, can't get
view
command to work. Does not produce any error messages but doesn't make a smaller bam based on the position provided. I've tested this code and file on a different machine where samtools was intalled and it worked.Here is the code: