Skip to content

Commit 3d09809

Browse files
committed
assembly
1 parent c5cb61f commit 3d09809

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ bioinformatics subjects:
99
* [File formats](file_formats.md)
1010
* [Quality Control](qc.md)
1111
* [Variant Calling](variant_calling.md)
12+
* [Assembly](assembly.md)
1213
* [16s Metabarcoding Analysis](16s.md)
1314
* [Whole Metagenome Sequencing](wms.md)
1415
* [Metagenome Assembly](meta_assembly.md)

assembly.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@ You can read how Pilon works in detail [here](https://github.com/broadinstitute/
8181
Before running Pilon itself, you have to map your reads back to the assembly!
8282

8383
```
84-
bowtie2-build $assembly $output/index
85-
(bowtie2 -x $output/index -1 $r1 -2 $r2 | samtools view -bS -o $mapping - ) 2> bowtie.err
86-
samtools sort $mapping $mapping.sorted
87-
samtools index $mapping.sorted.bam
84+
bowtie2-build assembly.fasta index_prefix
85+
(bowtie2 -x index_prefix -1 read_1.fastq -2 read_2.fastq | samtools view -bS -o output_to_sort.bam - ) 2> bowtie.err
86+
samtools sort output_to_sort.bam alignment.bam
87+
samtools index alignment.bam
8888
```
8989

9090
Run Pilon with the following command:
9191

9292
```
9393
module load pilon
94-
pilon --genome $assembly --frags $mapping.sorted.bam --output $output
94+
pilon --genome assembly.fasta --frags alignment.bam --output pilon_output
9595
```
9696

9797
Once Pilon is finished running, compare the new assembly with the old one using Quast!

0 commit comments

Comments
 (0)