The University Wiki Service was upgraded to Confluence 7.13.7. Please refer to the University Wiki Service Help Pages for a list of changes.
If you encounter any issues with the new version, submit a ticket by emailing us at help@wikis.utexas.edu.
Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
#!/usr/bin/env bash

mkdir bowtie
bp_seqconvert --from genbank --to fasta <REL606.5.gbk > bowtie/REL606.5.fasta
bowtie-build bowtie/REL606.5.fasta bowtie/REL606.5
bowtie -t --sam bowtie/REL606.5 -1 SRR030257_1.fastq -2 SRR030257_2.fastq bowtie/REL606.5.sam

mkdir bowtie_samtools
cp bowtie/REL606.5.sam bowtie_samtools/ 
cp bowtie/REL606.5.fasta bowtie_samtools/
samtools faidx bowtie_samtools/REL606.5.fasta
samtools view -bS -o bowtie_samtools/REL606.5.bam bowtie/REL606.5.sam
samtools sort bowtie_samtools/REL606.5.bam bowtie_samtools/sorted_REL606.5
samtools mpileup -uf bowtie_samtools/REL606.5.fasta bowtie_samtools/sorted_REL606.5.bam \|bcftools view -vcg - \> bowtie_samtools/output.vcf 

Mapping with BWA:

Code Block
#!/usr/bin/env bash

mkdir -p bwa 
bp_seqconvert --from genbank --to fasta <REL606.5.gbk > bwa/REL606.5.fasta
bwa index bwa/REL606.5.fasta
bwa aln -f bwa/SRR030257_1.sai bwa/REL606.5.fasta SRR030257_1.fastq
bwa aln -f bwa/SRR030257_2.sai bwa/REL606.5.fasta SRR030257_2.fastq
bwa sampe -f bwa/REL606.5.sam bwa/REL606.5.fasta bwa/SRR030257_1.sai bwa/SRR030257_2.sai SRR030257_1.fastq SRR030257_2.fastq

mkdir bwa_samtools
cp bwa/REL606.5.sam bwa_samtools/ 
cp bwa/REL606.5.fasta bwa_samtools/
samtools faidx bwa_samtools/REL606.5.fasta
samtools view -bS -o bwa_samtools/REL606.5.bam bwa/REL606.5.sam 
samtools sort bwa_samtools/REL606.5.bam bwa_samtools/sorted_REL606.5
samtools mpileup -uf bwa_samtools/REL606.5.fasta bwa_samtools/sorted_REL606.5.bam \|bcftools view -vcg - \> bwa_samtools/output.vcf