Lucas Cruz
Nathalia Correa
Renato Puga
Se for utilizar o mesmo Workspace do EP1, crie um diretório chamado hg38 e mova tudo para dentro dele. Depois, comece do zero e siga as etapas.
mkdir hg38mv * hg38Um alerta de que o diretório hg38 não pode ser movido para dentro dele deve aparecer.
Instalar (sratoolskit) e fazer Download do arquivo WP312.
brew install sratoolkitpip install parallel-fastq-dumpwget -c https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/3.0.0/sratoolkit.3.0.0-ubuntu64.tar.gz
tar -zxvf sratoolkit.3.0.0-ubuntu64.tar.gz
export PATH=$PATH://workspace/somaticoEP1/sratoolkit.3.0.0-ubuntu64/bin/
echo "Aexyo" | sratoolkit.3.0.0-ubuntu64/bin/vdb-configtime parallel-fastq-dump --sra-id SRR8856724 \
--threads 4 \
--outdir ./ \
--split-files \
--gzipBWA para mapeamento dos arquivos FASTQ
brew install bwa
BWA index do arquivo chr9.fa.gz
gunzip chr9.fa.gz
bwa index chr9.fa
brew install samtools
samtools faidx chr9.fa
Combinar com pipes: bwa + samtools view e sort
NOME=WP312; Biblioteca=Nextera; Plataforma=illumina;
bwa mem -t 10 -M -R "@RG\tID:$NOME\tSM:$NOME\tLB:$Biblioteca\tPL:$Plataforma" chr9.fa SRR8856724_1.fastq.gz SRR8856724_2.fastq.gz | samtools view -F4 -Sbu -@2 - | samtools sort -m4G -@2 -o WP312_sorted.bam
A amostras WP312 agora será executado com a versão do genoma humano HG19. A única parte que muda do EP1 é a das referências
AS Referências do Genoma hg19 (FASTA, VCFs)
Os arquivos de Referência: Panel of Normal (PoN), Gnomad AF
wget -c https://storage.googleapis.com/gatk-best-practices/somatic-b37/Mutect2-WGS-panel-b37.vcfwget -c https://storage.googleapis.com/gatk-best-practices/somatic-b37/Mutect2-WGS-panel-b37.vcf.idxwget -c https://storage.googleapis.com/gatk-best-practices/somatic-b37/af-only-gnomad.raw.sites.vcfwget -c https://storage.googleapis.com/gatk-best-practices/somatic-b37/af-only-gnomad.raw.sites.vcf.idxArquivo no formato FASTA do genoma humano hg19
Diretório Download UCSC hg19:https://hgdownload.soe.ucsc.edu/goldenPath/hg19/chromosomes/ chr9.fa.gz: https://hgdownload.soe.ucsc.edu/goldenPath/hg19/chromosomes/chr9.fa.gz
wget -c https://hgdownload.soe.ucsc.edu/goldenPath/hg19/chromosomes/chr9.fa.gzO arquivo af-only-gnomad.raw.sites.vcf (do bucket somatic-b37) não tem o chrna frente do nome do cromossomo. Precisamos adicionar para não gerar conflito de contigs de referência na hora de executar o GATK.
grep "\#" af-only-gnomad.raw.sites.vcf > af-only-gnomad.raw.sites.chr.vcf
grep "^9" af-only-gnomad.raw.sites.vcf | awk '{print("chr"$0)}' >> af-only-gnomad.raw.sites.chr.vcfindexing
bgzip af-only-gnomad.raw.sites.chr.vcf
tabix -p vcf af-only-gnomad.raw.sites.chr.vcf.gzgrep "\#" Mutect2-WGS-panel-b37.vcf > Mutect2-WGS-panel-b37.chr.vcf
grep "^9" Mutect2-WGS-panel-b37.vcf | awk '{print("chr"$0)}' >> Mutect2-WGS-panel-b37.chr.vcf bgzip Mutect2-WGS-panel-b37.chr.vcf
tabix -p vcf Mutect2-WGS-panel-b37.chr.vcf.gz./gatk-4.2.2.0/gatk GetPileupSummaries \
-I WP312_sorted_rmdup.bam \
-V af-only-gnomad.raw.sites.chr.vcf.gz \
-L WP312_coverageBed20x.interval_list \
-O WP312.table./gatk-4.2.2.0/gatk CalculateContamination \
-I WP312.table \
-O WP312.contamination.tableCuidado: Use esse parâmetro quando a referência for a correta, mas esteja fora de ordenação: --disable-sequence-dictionary-validation
./gatk-4.2.2.0/gatk Mutect2 \
-R chr9.fa \
-I WP312_sorted_rmdup.bam \
--germline-resource af-only-gnomad.raw.sites.chr.vcf.gz \
--panel-of-normals Mutect2-WGS-panel-b37.chr.vcf.gz \
--disable-sequence-dictionary-validation \
-L WP312_coverageBed20x.interval_list \
-O WP312.somatic.pon.vcf.gz./gatk-4.2.2.0/gatk FilterMutectCalls \
-R chr9.fa \
-V WP312.somatic.pon.vcf.gz \
--contamination-table WP312.contamination.table \
-O WP312.filtered.pon.vcf.gzvcf-compare WP312.filtered.pon.vcf.gz ../WP312.filtered.chr.vcf.gz # This file was generated by vcf-compare.
# The command line was: vcf-compare(v0.1.14-12-gcdb80b8) WP312.filtered.pon.vcf.gz ../WP312.filtered.chr.vcf.gz
#
#VN 'Venn-Diagram Numbers'. Use `grep ^VN | cut -f 2-` to extract this part.
#VN The columns are:
#VN 1 .. number of sites unique to this particular combination of files
#VN 2- .. combination of files and space-separated number, a fraction of sites in the file
VN 169 ../WP312.filtered.chr.vcf.gz (1.0%) WP312.filtered.pon.vcf.gz (0.2%)
VN 16982 ../WP312.filtered.chr.vcf.gz (99.0%)
VN 77871 WP312.filtered.pon.vcf.gz (99.8%)
#SN Summary Numbers. Use `grep ^SN | cut -f 2-` to extract this part.
SN Number of REF matches: 168
SN Number of ALT matches: 166
SN Number of REF mismatches: 1
SN Number of ALT mismatches: 2
SN Number of samples in GT comparison: 0