Samtools
...
Code Block |
---|
title | mkdir -p 03_Output/variant_calling/samtools |
---|
borderStyle | solid |
---|
|
...
If you do not have a alignment file in the SAM format you may want to start with Introduction to mapping.
Code Block |
---|
title | cp 03_Output/mapping/bowtie/REL606.5.sam 03_Output/variant_calling/samtools/ |
---|
borderStyle | solid |
---|
|
|
Code Block |
---|
title | cp 03_Output/mapping/bowtie/REL606.5.fasta 03_Output/variant_calling/samtools/ |
---|
borderStyle | solid |
---|
|
|
Prepare reference file.
Code Block |
---|
title | samtools faidx 03_Output/variant_calling/samtools/REL606.5.fasta |
---|
borderStyle | solid |
---|
|
|
Prepare alignment file.
Convert SAM to BAM format.
Code Block |
---|
title | samtools view -bS -o 03_Output/variant_calling/samtools/REL606.5.bam 03_Output/mapping/bowtie/REL606.5.sam |
---|
borderStyle | solid |
---|
|
[bam_header_readsamopen] EOFSAM markerheader is absent. The input is probably truncated.
[bam_header_read] invalid BAM binary header (this is not a BAM file).
[main_samview] fail to read the header from "03_Output/mapping/bowtie/REL606.5.sam" present: 1 sequences.
|
Variant call output.
Code Block |
---|
1 | bcftools view -vcg - > 03_Output/variant_calling/samtools/output.vcf |
---|
title | samtools mpileup -uf 03_Output/variant_calling/samtools/REL606.5.fasta 03_Output/variant_calling/samtools/REL606.5.bam |
---|
borderStyle | solid |
---|
|
[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.
|