mkatari-bioinformatics-august-2013-bioinformatics-august-2013-mpileup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mkatari-bioinformatics-august-2013-bioinformatics-august-2013-mpileup [2015/04/02 13:53] – mkatari | mkatari-bioinformatics-august-2013-bioinformatics-august-2013-mpileup [2015/11/18 19:48] (current) – mkatari | ||
---|---|---|---|
Line 20: | Line 20: | ||
* remove duplicates | * remove duplicates | ||
* create a bam index for dedup bam files | * create a bam index for dedup bam files | ||
+ | |||
+ | < | ||
+ | bowtie2 -x PTC_Human -U Cohen.fastq -S Cohen.sam | ||
+ | samtools view -bS Cohen.sam > Cohen.bam | ||
+ | samtools sort Cohen.bam Cohen_sorted | ||
+ | samtools index Cohen_sorted.bam | ||
+ | </ | ||
+ | |||
For further curation | For further curation | ||
Line 35: | Line 43: | ||
* filter using vcfutils | * filter using vcfutils | ||
* index vcf file to visualize on IGV | * index vcf file to visualize on IGV | ||
+ | |||
< | < | ||
- | bowtie2 | + | samtools mpileup |
- | samtools view -bS Cohen.sam > Cohen.bam | + | Cohen.bam \ |
- | samtools sort | + | Linder.bam \ |
+ | Rikhi.bam \ | ||
+ | Sherman.bam > PTC_human.bcf | ||
</ | </ | ||
+ | Run bcf tools to call the snps: | ||
+ | * b means save output as bcf | ||
+ | * v means output potential variant sites only | ||
+ | * c means call snps | ||
+ | * g call genotypes at variant sites. | ||
+ | < | ||
+ | bcftools view -bvcg PTC_human.bcf > PTC_human.raw.bcf & | ||
+ | </ |
mkatari-bioinformatics-august-2013-bioinformatics-august-2013-mpileup.1427982802.txt.gz · Last modified: 2015/04/02 13:53 by mkatari