This image facilitates the usage of:
To see SAMtools options, just run: docker run --rm bioinfoipec/samtools samtools --help or docker run --rm bioinfoipec/samtools bcftools --help.
You should adapt and run the following command: docker run --rm -v /your/data/dir:/data bioinfoipec/samtools <samtools_or_bcftools> <options>
In this command, you should replace:
/your/data/dir to point to the directory that contains the input files you want to analyze.<samtools_or_bcftools> to the name of either SAMtools or BCFtools executable you want to use.<options> with the specific options of the SAMtools or BCFtools application. These options will include the input/output files, which should be referenced under /data/.For instance, if you want to generate a high quality VCF file from an input SAM file, you should run the following three steps:
docker run --rm -v /your/data/dir:/data bioinfoipec/samtools samtools view -bS /data/aln-pe.sam > aln-pe.bam
docker run --rm -v /your/data/dir:/data bioinfoipec/samtools bash -c "samtools mpileup -uf /data/chr19_KI270866v1_alt.fasta /data/aln-pe.bam | bcftools call -mv > /data/var.raw.vcf"
docker run --rm -v /your/data/dir:/data bioinfoipec/samtools bash -c "bcftools filter -s LowQual -e '%QUAL<20 || DP>100' /data/var.raw.vcf > /data/var.flt.vcf"
To test the previous commands, the input SAM file and the input FASTA file are available in testdata directory.
Content type
Image
Digest
Size
385 MB
Last updated
over 5 years ago
docker pull bioinfoipec/samtools