-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotebook.qmd
More file actions
762 lines (524 loc) · 23.8 KB
/
Copy pathNotebook.qmd
File metadata and controls
762 lines (524 loc) · 23.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
---
title: "Genomic Exploration of TBP Producing Bacteria"
author: "Diego Lera-Lozano"
format:
html:
theme: darkly
toc: true
toc-float: true
toc-depth: 5
df-print: paged
smooth-scroll: true
citations-hover: true
editor: source
---
# Project Details
This project delves into the genomic makeup of three bacteria that produce tetrabromopyrrole (TBP), a molecule that is linked in aiding coral settlement. In this project we aim to assemble the genome, classify the bacteria, and finally annotate their respective genome to facilitate further study using these bacteria and/or similar bacteria.
### Project Breakdown
The project can be broken up into the following sections
- Read Quality Control
- Assembly Generation
- Alignment, Polishing, and Circularization
- Assembly Quality Assessment
- Taxonomic Classification
- Genome Annotation
# Read Quality Control
Jordan Ruiz Toquica extracted the DNA of bacterial strains CCAH7, CCAH11, CCAH3 provided by Kimberly Ritchie. The Bacterial DNA was then prepped for a Nanopore sequencing where each strain recieved a barcode assignment. CCAH7 as barcode01, CCAH11 as barcode02, CCAH3 as barcode03. Finally the DNA was sequenced by Jordan Ruiz Toquica using the MINion in the Medina Lab at Pennsylvania State University.
### Basecalling
Once the MINion generated reads in the .fastq format through the use of their basecalling model guppy we ran FastQC to generate a report to asses the quality of the reads.
What we found was that the guppy model generated poor quality reads that would not be viable downstream. Due to this we took the original .pod5 files generated by the MINion and re-did the basecalling using dorado.
::: {.panel-tabset}
### Read Quality Reports
{width="40%"} | {width="54%"}
This view shows an overview of the range of quality values across all bases at each position in the fastq reads file. On the left we have the Guppy basecalled reads then on the right we have the Dorado basecalled reads.
### Basecalling Script
```
#!/bin/bash
#SBATCH --job-name=BC01
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=24
#SBATCH --time=24:00:00
#SBATCH --mem=250G
date
#Variables
export MODEL=dna_r10.4.1_e8.2_400bps_sup@v4.2.0
export INDIR=path/to/XXXXX_pass_barcode01.pod5
export OUT=barcode01.fastq.gz
#Commands
dorado duplex -t $SLURM_NTASKS -x "cpu" --emit-fastq $MODEL $INDIR | gzip > $OUT
date
```
### FastQC Code
```
fastqc barcode01.fastq.gz
```
:::
### Trimming
After analyzing the quality graphs produced by FastQC it was clear that the beginning of the reads generated by Dorado were still of low quality. Due to this we decided to use chopper to trim our reads and found a trim of 100bp to be the best for conserving the reads while removing the low quality bit.
::: {.panel-tabset}
### Read Quality Reports
{width="47%"} | {width="47%"}
This view shows an overview of the range of quality values across all bases at each position in the fastq reads file. On the left we have the before-trim reads then on the right we have the 100bp-trim reads.
### Per Base Sequence
{width="40%"} | {width="54%"}
This view shows the per base sequence content across all reads at each position in the fastq reads file. On the left we have the before-trim reads then on the right we have the 100bp-trim reads.
### FastQC Stats
| | BC01 | BC02 | BC03 |
|-------------------|:------:|:------:|:------:|
| Total Sequences | 564,295 | 432,709 | 74,466 |
| Total Bases (Gbp) | 3.4 | 2.7 | 0.42 |
| Sequence Length | 1-31781 | 1-39369 | 5-38990 |
: Statistics generated by FastQC pertaining to trimmed reads
### Trimming Script
```
#!/bin/bash
#SBATCH --job-name=trim_B1
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=6
#SBATCH --time=10:00:00
#SBATCH --mem=50G
date
#Variables
export BASE_TRIMMER=path/to/chopper
export TRIM_LENGTH=100
export CONTAMINATE_SEQUENCES=path/to/nanopore_adapters.fasta
export INDIR=path/to/barcode01.fastq.gz
export OUTDIR=barcode01_trimmed100.fastq.gz
#Commands
gunzip -c $INDIR | $BASE_TRIMMER --headcrop $TRIM_LENGTH --tailcrop $TRIM_LENGTH --contam $CONTAMINATE_SEQUENCES | gzip > $OUTDIR
date
```
### FastQC Code
```
fastqc barcode01_trimmed100.fastq.gz
```
:::
# Assembly Workflow
### K-mer Assembly
Before we begin putting together an assembly we first had to get an approximate genome length to this we used jellyfish for a K-mer analysis using 25-mers.
::: {.panel-tabset}
### BC01

### BC02

### BC03

### Jellyfish Pipeline
```
jellyfish count -t 10 -C -m 25 -s 1G barcode01_trimmed100.fastq -o 25mer_out.jf
jellyfish histo -h 1000000 -t 10 25mer_out.jf > barcode01.histo
```
I ran these lines within a slurm allocation instead of a script due to unique errors when I attempted to submit a slurm job script with these commands
:::
### Assembly
Once we came up with approximate genome sizes using jellyfish we decided to use flye as our assembler.
::: {.panel-tabset}
### BC01
| Contig | length | COV |
| --- | --- | --- |
| Contig_1 | 4,903,516 | 636 |
| Contig_4 | 521,089 | 626 |
| Contig_3 | 467,542 | 628 |
| Contig_2 | 6,778 | 546 |
Flye assembly info pertaining to barcode01 retrieved from assembly_info.txt file generated during assembly
### BC02
| Contig | length | COV |
| --- | --- | --- |
| Contig_1 | 3,527,231 | 499 |
| Contig_4 | 1,216,057 | 510 |
| Contig_2 | 928,174 | 492 |
| Contig_5 | 20,286 | 594 |
Flye assembly info pertaining to barcode02 retrieved from assembly_info.txt file generated during assembly
### BC03
| Contig | length | COV |
| --- | --- | --- |
| Contig_2 | 3,160,323 | 82 |
| Contig_3 | 1,214,135 | 91 |
| Contig_5 | 42,348 | 1150 |
Flye assembly info pertaining to barcode03 retrieved from assembly_info.txt file generated during assembly
### Flye Script
```
#!/bin/bash
#SBATCH --job-name=flye_0X
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=12
#SBATCH --time=20:00:00
#SBATCH --mem=50G
date
#Variables
export PFX=BC01
export GS=5.778m
export READS=/path/to/barcode01_trimmed100.fastq.gz
#Commands
/path/to/flye --nano-raw $READS --genome-size $GS --asm-coverage 200 -t 12 --out-dir /path/to/outdir
```
:::
### Alignment and Polishing
Once assemblies were generated we decided to align and polish the assemblies using minimap2 and racon respectfully. We then used bbmap's stats.sh feature to generate basic assembly information to investigate the effect of minimap2 and racon on our assembly during each alignment and polishing round.
The procedure went as follows: First Alignment → First Polish → Second Alignment ... → Third Polish
::: {.panel-tabset}
### Assembly Statistics
| BCOX_A&P# | BC01 | BC01 (1) | BC01 (2) | BC01 (3) |
|---|---|---|---|---|
| GC | 0.5242 | 0.5242 | 0.5242 | 0.5242 |
| GC_stdev | 0.0038 | 0.003 | 0.0021 | 0.0026 |
| Contig Total | 4 | 4 | 4 | 4 |
| Total N/L50 (MB) | 1/4.904 | 1/4.903 | 1/4.903 | 1/4.903 |
| Max Contig Length (MB) | 4.904 | 4.903 | 4.903 | 4.903 |
| Number of Contig > 50 KB | 3 | 3 | 3 | 3 |
| % main genome in contigs > 50 KB | 99.89 | 99.89 | 99.9 | 99.91 |
| Total Sequence Length | 5,898,925 | 5,898,127 | 5,897,552 | 5,896,968 |
Table of assembly statistics generated by stats.sh from bbmap pertaining to the first barcode. It is important to note that this pattern was consistent with all barcodes.
### Align (1)
```
#!/bin/bash
#SBATCH --job-name=BC01_minimap3
#SBATCH --nodes=1
#SBATCH --ntasks=12
#SBATCH --time=20:00:00
#SBATCH --mem=50G
date
#Variables
export ASSEMBLY=/path/to/assembly.fasta
export PFX=BC01
export READS=/path/to/barcode01_trimmed100.fastq.gz
#Commands
/path/to/minimap2 -t $SLURM_NTASKS $ASSEMBLY $READS > ${PFX}.paf
```
### Polish (1)
```
#!/bin/bash
#SBATCH --job-name=BC01_racon
#SBATCH --nodes=1
#SBATCH --ntasks=4
#SBATCH --time=20:00:00
#SBATCH --mem=24G
date
#Variables
export PFX=BC01
export ASSEMBLY=/path/to/assembly.fasta
export PAF=BC01.paf
export READS=/path/to/barcode01_trimmed100.fastq.gz
export OUT=${PFX}_racon1.fasta
#Commands
racon -t $SLURM_NTASKS $READS $PAF $ASSEMBLY > $OUT
```
### Align (2)
```
#!/bin/bash
#SBATCH --job-name=BC01_minimap
#SBATCH --nodes=1
#SBATCH --ntasks=12
#SBATCH --time=20:00:00
#SBATCH --mem=50G
date
#Variables
export ASSEMBLY=./BC01_racon1.fasta
export PFX=BC01_R1
export READS=/path/to/barcode01_trimmed100.fastq.gz
#Commands
/path/to/minimap2 -t $SLURM_NTASKS $ASSEMBLY $READS > ${PFX}.paf
```
### Polish (2)
```
#!/bin/bash
#SBATCH --job-name=BC01_racon
#SBATCH --nodes=1
#SBATCH --ntasks=8
#SBATCH --time=20:00:00
#SBATCH --mem=50G
date
#Variables
export PFX=BC01
export ASSEMBLY=BC01_racon1.fasta
export PAF=BC01_R1.paf
export READS=/path/to/barcode01_trimmed100.fastq.gz
export OUT=BC01_racon2.fasta
#Commands
racon -t $SLURM_NTASKS $READS $PAF $ASSEMBLY > $OUT
```
### Align (3)
```
#!/bin/bash
#SBATCH --job-name=BC01_minimap
#SBATCH --nodes=1
#SBATCH --ntasks=12
#SBATCH --time=20:00:00
#SBATCH --mem=50G
date
#Variables
export ASSEMBLY=./BC01_racon2.fasta
export PFX=BC01_R2
export READS=/path/to/barcode01_trimmed100.fastq.gz
#Commands
/path/to/minimap2 -t $SLURM_NTASKS $ASSEMBLY $READS > ${PFX}.paf
```
### Polish (3)
```
#!/bin/bash
#SBATCH --job-name=BC01_racon
#SBATCH --nodes=1
#SBATCH --ntasks=8
#SBATCH --time=20:00:00
#SBATCH --mem=50G
date
#Variables
export PFX=BC01
export ASSEMBLY=BC01_racon2.fasta
export PAF=BC01_R2.paf
export READS=/path/to/barcode01_trimmed100.fastq.gz
export OUT=BC01_racon3.fasta
#Commands
racon -t $SLURM_NTASKS $READS $PAF $ASSEMBLY > $OUT
```
:::
### Circularization
Once we aligned and polished the assemblies we decided to circularize both the non-polished and polished assemblies using canu to compare it to flye's circularization algorithm while simultaneously being able to circularize the polished assemblies which were not circularized by racon.
::: {.panel-tabset}
### Circularization Summary
KEY:
- Y = Circularized
- N = Not Circularized
- X = Contig DNE
- \* = Main Chromosome
- \- = No Data
| Contig | BC01_0P_0C | BC01_1P_0C | BC01_0P_1C | BC01_1P_1C |
|--------|------------|------------|------------|------------|
| Contig_1 | Y* | - | Y* | Y* |
| Contig_2 | Y | - | N | N |
| Contig_3 | Y | - | Y | Y |
| Contig_4 | Y | - | Y | Y |
| Contig_5 | X | - | X | X |
| Contig | BC02_0P_0C | BC02_1P_0C | BC02_0P_1C | BC02_1P_1C |
|--------|------------|------------|------------|------------|
| Contig_1 | N* | - | N* | N* |
| Contig_2 | N | - | N | N |
| Contig_3 | X | - | X | X |
| Contig_4 | Y | - | Y | Y |
| Contig_5 | N | - | N | N |
| Contig | BC03_0P_0C | BC03_1P_0C | BC03_0P_1C | BC03_1P_1C |
|--------|------------|------------|------------|------------|
| Contig_1 | X | - | X | X |
| Contig_2 | N* | - | N* | N* |
| Contig_3 | N | - | N | N |
| Contig_4 | X | - | X | X |
| Contig_5 | Y | - | N | N |
### Script
```
#!/bin/bash
#SBATCH --job-name=circle_01
#SBATCH --nodes=1
#SBATCH --ntasks=18
#SBATCH --time=20:00:00
#SBATCH --mem=100G
#Circlator Dependencies
export PATH=$PATH:/path/to/canu-1.7.1/Linux-amd64/bin
export PATH=$PATH:/path/to/programs
export PATH=$PATH:/path/to/bwa
module load samtools
#Variables
export ASSEMBLY=/path/to/barcode01/assembly.fasta
export READS=/path/to/barcode01/barcode01_trimmed100.fastq
export OUTPUT=/path/to/circulization/BC1_INITIAL
#Command
circlator all --assembler canu --threads $SLURM_NTASKS $ASSEMBLY $READS $OUTPUT
```
:::
# Assembly Quality Assessment
To generate all data to assess our assemblies we used the following tools for the following reasons:
- Minimap2: Generation of a .sam alignment file for downstream analysis such as blobtools
- Samtools: Conversion, Sorting, and Indexing of the .sam alignment file into a binary .bam file accepted by genomic tools
- Blastn: Allows us to make loose taxonomic assignments of the bacteria and their plasmids, also generates a file needed for blobtools
- Blobtools: Allows us to visualize each contig separately allowing us to check for contamination and possible plasmids
- BBmap: Through the use of BBmap's stats.sh script we can generate several assembly stats for a quality assessment
- CheckM: Using CheckM we will generate several assembly stats that will allow us to make a quality assesment.
### Blobtools Prep
All of the blobtools preparation was done in a slurm allocation of 50GB minus the Minimap2 alignment.
::: {.panel-tabset}
### Minimap2 Script
We will generate a .sam alignment file for downstream analysis such as blobtools
```
#!/bin/bash
#SBATCH --job-name=BC01_minimappin
#SBATCH --nodes=1
#SBATCH --ntasks=12
#SBATCH --time=20:00:00
#SBATCH --mem=50G
date
#Variables
export ASSEMBLY=/path/to/assembly.fasta
export PFX=BC01_BLOB
export READS=/path/to/barcode01/barcode01_trimmed100.fastq
#Commands
/path/to/minimap2 -a -t $SLURM_NTASKS $ASSEMBLY $READS > ${PFX}.sam
```
### Samtools Pipeline
We will be Converting, Sorting, and Indexing the .sam alignment file into a binary .bam file accepted by genomic tools using Samtools
```
samtools view -b BC01_BLOB.sam > BC01_BLOB.bam
samtools sort -o Sorted_BC01_BLOB.bam BC01_BLOB.bam
samtools index Sorted_BC01_BLOB.bam
```
### Blastn Pipeline
We will be generating blastn .tsv files for blobtools to use and we will discuss the result of the whole genome blast in the taxonomic classification section. We will be using the nt database downloaded via this command: update_blastdb.pl -d nt, which downloaded the nt database on 1/24/24
```
#!/bin/bash
#SBATCH --job-name=BC01_blast
#SBATCH --nodes=1
#SBATCH --ntasks=18
#SBATCH --time=20:00:00
#SBATCH --mem=100G
#Variables
export QUERY = /path/to/minimap2/06.fixstart.fasta
export DATABASE = /path/to/minimap2/database/nt
export OUT_FORMAT = '6 qseqid staxids bitscore std'
export MAX_TARGET = 10
export MAX_HSPS = 1
export EVAL = 1e-25
export OUTPUT = .tsv
#Command
blastn -query $QUERY -db $DATABASE -outfmt $OUT_FORMAT -max_target_seqs $MAX_TARGET -max_hsps $MAX_HSPS -evalue $EVAL -out $OUTPUT
```
:::
### Blobtools
In this section we used blobtools to assess whether or not we had contamination/if our contigs may pertain to plasmids. Blob tools node and names data was downloaded via following the github's instruction on 12/27/23
::: {.panel-tabset}
### BC01 Plot

### BC02 Plot

### BC03 Plot

### Blobtools script
```
blobtools create -i /PATH/TO/assembly.fasta -b /PATH/TO/alignment.bam -t /PATH/TO/blast.tsv -o ./blob_create --names /PATH/TO/blob_data/names.dmp --nodes /PATH/TO/blob_data/nodes.dmp
blobtools view -i ./blob_create.blobDB.json -r 'species' -o ./view_species
blobtools plot -i ./blob_create.blobDB.json -r 'species' -o ./blob_plot_species
blobtools view -i ./blob_create.blobDB.json -r 'genus' -o ./view_genus
blobtools plot -i ./blob_create.blobDB.json -r 'genus' -o ./blob_plot_genus
```
:::
### Discussion
After assessing each plot it seems as if our samples were not contaminated *phew* and that the different colored blobs belonged to plasmids. We reached this conclusion due the large blobs all pertaining to one taxon while the small blobs pertained to others. This will be further investigated by blasting the contigs separately in a future section.
### CheckM
Using CheckM we generated several assembly stats that will allow us to make a quality assesment. This was done using a slurm job allocation of 50GB and CheckM's database downloaded on 12/28/2023 from here: https://data.ace.uq.edu.au/
The following pipeline was ran within a directory containing the .fasta assembly file in a bins sub-directory
```
checkm lineage_wf -t 8 -x fasta ./bins ./output
checkm tetra -t 8 ./bins/assembly.fasta tetra.tsv
checkm coding_plot -x fasta ./output ./bins ./plot 9
checkm tetra_plot -x fasta ./output ./bins ./tetraplot tetra.tsv 95
checkm gc_plot -x fasta ./bins ./gc_plots 95
```
### Assembly Assesment
The following assembly statistics were generated via their respective tools
- Completeness (%): CheckM
- Contamination (%): CheckM
- Chromosome Coverage: TBD
- Genome size (Mb): BBmap
- Contigs (no.): BBmap
- N50 (bp): BBmap
- Gaps (%): TBD
- GC content: CheckM
- Circularized: Circlator/Flye
- Coding Density (%): CheckM
- Tetra nucleotides: CheckM
::: {.panel-tabset}
### BC01
| | BC01_0P_0C | BC01_1P_0C | BC01_0P_1C | BC01_1P_1C |
|---------------------|------------|------------|------------|------------|
| Strain | CCAH7 | CCAH7 | CCAH7 | CCAH7 |
| Completeness (%) | 100.00 | 98.97 | 100.00 | 98.97 |
| Contamination (%) | 0.00 | 0.00 | 0.00 | 0.00 |
| Chromosome coverage | 636 | | | |
| Genome size (Mb) | 5,898,925 | 5,896,968 | 5,892,140 | 5,897,021 |
| Contigs (no.) | 4 | 4 | 3 | 3 |
| N50 (bp) | 4,904,000 | 4,903,000 | 4,904,000 | 4,903,000 |
| Gaps (%) | 0 | 0 | 0 | 0 |
| GC content | 0.5242 | 0.5242 | 0.5242 | 0.5242 |
| Circularized (\*) | 4* | | 3* | 3* |
| Coding Density (%) | 86.80 | 86.40 | 86.80 | 86.40 |
| Tetra nucleotides | 0.08 | 0.09 | 0.02 | 0.09 |
### BC02
| | BC02_0P_0C | BC02_1P_0C | BC02_0P_1C | BC02_1P_1C |
|---------------------|------------|------------|------------|------------|
| Strain | CCAH11 | CCAH11 | CCAH11 | CCAH11 |
| Completeness (%) | 100.00 | 99.35 | 100.00 | 99.35 |
| Contamination (%) | 1.60 | 1.30 | 1.60 | 1.30 |
| Chromosome coverage | 499 | | | |
| Genome size (Mb) | 5,691,748 | 5,688,479 | 5,691,751 | 5,688,508 |
| Contigs (no.) | 4 | 4 | 4 | 4 |
| N50 (bp) | 3,527,000 | 3,526,000 | 3,527,000 | 3,526,000 |
| Gaps (%) | | | | |
| GC content | 0.4325 | 0.4325 | 0.4325 | 0.4325 |
| Circularized (*) | 1 | | 1 | 1 |
| Coding Density (%) | 88.10 | 87.90 | 88.10 | 87.90 |
| Tetra nucleotides | 0 | 0.05 | 0.05 | 0.05 |
### BC03
| | BC03_0P_0C | BC03_1P_0C | BC03_0P_1C | BC03_1P_1C |
|---------------------|------------|------------|------------|------------|
| Strain | CCAH3 | CCAH3 | CCAH3 | CCAH3 |
| Completeness (%) | 98.68 | 98.68 | 98.68 | 98.68 |
| Contamination (%) | 1.10 | 1.10 | 1.10 | 1.10 |
| Chromosome coverage | 82 | | | |
| Genome size (Mb) | 4,416,806 | 4,416,701 | 4,416,806 | 4,416,701 |
| Contigs (no.) | 3 | 3 | 3 | 3 |
| N50 (bp) | 3,160,000 | 3,160,000 | 3,160,000 | 3,160,000 |
| Gaps (%) | | | | |
| GC content | 0.4861 | 0.4861 | 0.4861 | 0.4861 |
| Circularized (*) | 1 | | 0 | 0 |
| Coding Density (%) | 86.30 | 86.30 | 86.30 | 86.30 |
| Tetra nucleotides | 0 | 0.08 | 0.08 | 0.08 |
:::
### Discussion
After assessing all data generated and through discussion with colleagues I decided to continue working with the un-polished circularized assemblies. It seems as the polishing and alignment did not effect the quality in a significant manner while circlator seems to have un-circularized some contigs that may actually not be circular.
### Table of Final Assemblies
| | BC01 | BC02 | BC03 |
|---------------------|-----------|-----------|-----------|
| Strain | CCAH7 | CCAH11 | CCAH3 |
| Completeness (%) | 100.00 | 100.00 | 98.68 |
| Contamination (%) | 0.00 | 1.60 | 1.10 |
| Chromosome coverage | | | |
| Genome size (Mb) | 5,892,140 | 5,691,751 | 4,416,806 |
| Contigs (no.) | 3 | 4 | 3 |
| N50 (bp) | 4,904,000 | 3,527,000 | 3,160,000 |
| Gaps (%) | 0 | | |
| GC content | 0.5242 | 0.4325 | 0.4861 |
| Circularized (\*) | 3* | 1 | 0 |
| Coding Density (%) | 86.80 | 88.10 | 86.30 |
| Tetra nucleotides | 0.02 | 0.05 | 0.08 |
# Taxonomic Classification
In this section we will use GTDB-Tk for a bacterial classification while using NCBI's blast website to investigate our non chromosome contigs.
First GTDB-Tk's classify_wf command was run using the GTDB-Tk bacterial database release207_v2 downloaded on 2/15/2024
```
#!/bin/bash
#SBATCH --job-name=BC01_GTDBTK
#SBATCH --nodes=1
#SBATCH --ntasks=18
#SBATCH --time=20:00:00
#SBATCH --mem=100G
#Variables
export ASSEMBLY=/path/to/BC1_BIN
export OUT=/path/to/BC1
#Commands
gtdbtk classify_wf --genome_dir $ASSEMBLY -x fasta --cpus 16 --out_dir $OUT
```
### Classify Results
#### BC01
classified as *Pseudovibrio denitrificans* the closest reference genome usde for comparison was **[GCF_001310815.1](https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_001310815.1/)** with an ANI of **95.29%** and a MSA percent of **98.29%**
#### BC02
classified as *Pseudoalteromonas elyakovii* the closest reference genome usde for comparison was **[GCA_000814665.1](https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_000814665.1/)** with an ANI of **97.29%** and a MSA percent of **97.78%**
#### BC03
classified as *Rossellomorea marisflavi_A* the closest reference genome usde for comparison was **[GCF_009806575.1](https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_009806575.1/)** with an ANI of **98.92%** and a MSA percent of **91.84%**
### Classify Discussion
When interpreting our results we are looking for two separate values being the Average Nucleotide Identity (ANI) and Multiple Sequence Alignment (MSA). ANI measures the overall similarity between two DNA sequences giving us a percentage of how many nts line up while MSA indicates a high level of alignment between our assembly and the reference genome. Since all of our ANI's are over 95% we can conclude that the taxonomic assignment is correct, while the MSA supports that GTDB-Tk was able to align and make conclusions properly.
### Blasting Individual Contigs
***DISCUSS WITH RAUL*** - Not Finished
The aim of this section was to blast all of the non-chromosome sections and evaluate whether or not our contigs were plasmids or DNA pertaining to other Bacteria.
#### BC01
When blasting the contigs pertaining to BC01 we found the following accession numbers for contig three and four: **[CP128431.1](https://www.ncbi.nlm.nih.gov/nuccore/CP128431.1/)** and **[CP074127.1](https://www.ncbi.nlm.nih.gov/nuccore/CP074127.1/)** respectively
#### BC02
When blasting the contigs pertaining to BC02 we found the following accession numbers for contig two, four, and five:
#### BC03
When blasting the contigs pertaining to BC03 we found the following accession numbers for contig
# Genome Annotation