Advertisement
ProzacR

NGS workflow 2022-08-03

Aug 3rd, 2022
1,091
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. gunzip *.gz
  2. bwa index Homo_sapiens_assembly38.fasta
  3. bwa mem -t 12  ~/Homo_sapiens_assembly38.fasta Undetermined_S0_L001_R1_001.fastq Undetermined_S0_L001_R2_001.fastq > ~/input/Undetermined_S0_L001.sam
  4. java -jar ~/picard.jar SamFormatConverter -I Undetermined_S0_L001.sam -O Undetermined_S0_L001.bam
  5. samtools faidx Homo_sapiens_assembly38.fasta
  6. java -jar ~/picard.jar CreateSequenceDictionary -R Homo_sapiens_assembly38.fasta -O Homo_sapiens_assembly38.dict
  7. java -jar ~/picard.jar AddOrReplaceReadGroups -I Undetermined_S0_L001.bam -O Undetermined_S0_L001_RG.bam --SORT_ORDER coordinate --RGID foo --RGLB bar --RGPL illumina --RGSM Sample1 --CREATE_INDEX True --RGPU XXX
  8. ~/gatk-4.2.6.1/gatk HaplotypeCaller -R ~/Homo_sapiens_assembly38.fasta -I Undetermined_S0_L001_RG.bam -O ~/output/Undetermined_S0_L001.g.vcf.gz
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement