User Tools

Site Tools


mkatari-bioinformatics-august-2013-bioinformatics-august-2013-mpileup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mkatari-bioinformatics-august-2013-bioinformatics-august-2013-mpileup [2015/04/02 13:53] mkatarimkatari-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
 +
 +<code>
 +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
 +</code>
 +
  
 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
 +
  
  
 <code> <code>
-bowtie2 -PTC_Human -U Cohen.fastq -S Cohen.sam +samtools mpileup -uf PTC_Human.fasta \ 
-samtools view -bS Cohen.sam > Cohen.bam +         Cohen.bam \ 
-samtools sort +         Linder.bam \ 
 +         Rikhi.bam \ 
 +         Sherman.bam > PTC_human.bcf
 </code> </code>
  
 +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.         
  
 +<code>
 +bcftools view -bvcg PTC_human.bcf > PTC_human.raw.bcf &
 +</code>
mkatari-bioinformatics-august-2013-bioinformatics-august-2013-mpileup.1427982802.txt.gz · Last modified: 2015/04/02 13:53 by mkatari