Hi,
I'm having troubles with my comands and probably I only notice them while using GATK
Let me show you what I'm doing:
bwa aln -t 8 /GenoStorage/Genomas/hg19/hg19RefGenome.fasta sample_1.fastq > Sample_1_align.sai
bwa aln -t 8 /GenoStorage/Genomas/hg19/hg19RefGenome.fasta Sample_2.fastq > Sample_2_align.sai
bwa sampe /GenoStorage/Genomas/hg19/hg19RefGenome.fasta Sample_1_align.sai Sample_2_align.sai Sample_1.fastq Sample_2.fastq > Sample_align.sam
# Converto to bam and sort (using samtools):
samtools import /GenoStorage/Genomas/hg19/hg19RefGenome.fasta.fai Sample_align.sam Sample_align.bam
samtools sort Sample_align.bam Sample_align_sorted.bam
# From a sorted BAM alignment, raw SNP and indel calls are acquired by (see #more in http://samtools.sourceforge.net/cns0.shtml):
samtools mpileup -uf /GenoStorage/Genomas/hg19/hg19RefGenome.fasta.fai sample02187A_align_sorted.bam.bam | bcftools view -bvcg - > var.raw.bcf
bcftools view var.raw.bcf > vcf_sample
vcfutils.pl varFilter -D100 > vcf_sample_filtered.flt.vcf
java -Xmx4g -jar /GenoStorage/Software/GATK/GenomeAnalysisTK.jar -T TableRecalibration -R /GenoStorage/Genomas/hg19/hg19RefGenome.fasta -I sample_align_sorted.bam -recalFile SM.recal_data_sample.csv -l INFO -log SM.newQualSample.log -o SM.recalSample.bam
Am I doing anything wrong?
Thanks for your help
I'm having troubles with my comands and probably I only notice them while using GATK
Let me show you what I'm doing:
bwa aln -t 8 /GenoStorage/Genomas/hg19/hg19RefGenome.fasta sample_1.fastq > Sample_1_align.sai
bwa aln -t 8 /GenoStorage/Genomas/hg19/hg19RefGenome.fasta Sample_2.fastq > Sample_2_align.sai
bwa sampe /GenoStorage/Genomas/hg19/hg19RefGenome.fasta Sample_1_align.sai Sample_2_align.sai Sample_1.fastq Sample_2.fastq > Sample_align.sam
# Converto to bam and sort (using samtools):
samtools import /GenoStorage/Genomas/hg19/hg19RefGenome.fasta.fai Sample_align.sam Sample_align.bam
samtools sort Sample_align.bam Sample_align_sorted.bam
# From a sorted BAM alignment, raw SNP and indel calls are acquired by (see #more in http://samtools.sourceforge.net/cns0.shtml):
samtools mpileup -uf /GenoStorage/Genomas/hg19/hg19RefGenome.fasta.fai sample02187A_align_sorted.bam.bam | bcftools view -bvcg - > var.raw.bcf
bcftools view var.raw.bcf > vcf_sample
vcfutils.pl varFilter -D100 > vcf_sample_filtered.flt.vcf
java -Xmx4g -jar /GenoStorage/Software/GATK/GenomeAnalysisTK.jar -T TableRecalibration -R /GenoStorage/Genomas/hg19/hg19RefGenome.fasta -I sample_align_sorted.bam -recalFile SM.recal_data_sample.csv -l INFO -log SM.newQualSample.log -o SM.recalSample.bam
Am I doing anything wrong?
Thanks for your help
Comment