Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlemkdir -p 03_Output/variant_calling/samtools
borderStylesolid

If you do not have a an alignment file in the SAM format you may want to start with Introduction to mapping.

...

Code Block
titlesamtools view -bS -o 03_Output/variant_calling/samtools/REL606.5.bam 03_Output/mapping/bowtie/REL606.5.sam
borderStylesolid
[samopen] SAM header is present: 1 sequences.

Sort BAM file.

Code Block
titlesamtools sort 03_Output/variant_calling/samtools/REL606.5.bam 03_Output/variant_calling/samtools/sorted_REL606.5
borderStylesolid

[bam_sort_core] merging from 2 files...

Variant call output.

Code Block
1bcftools view -vcg - > 03_Output/variant_calling/samtools/output.vcf
titlesamtools mpileup -uf 03_Output/variant_calling/samtools/REL606.5.fasta 03_Output/variant_calling/samtools/REL606.5.bam
borderStylesolid
[mpileup] 1 samples in 1 input files
<mpileup> Set max per-file depth to 8000
[bam_pileup_core] the input is not sorted (reads out of order)
[afs] 0:0.000 1:0.000 2:0.000
[bam_plp_destroy] memory leak: 1. Continue anyway.