-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_assembly.sh
558 lines (426 loc) · 22 KB
/
run_assembly.sh
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
#!/bin/bash
#-------------------------------------------------------------------------------------------------------------------------------------------------
function run_fastqc #run fastqc to check for quality
{
#echo $forward_file
export reverse_file="${forward_file/R1/R2}"
export fastqc_directory=$base_directory"/fastqc_reports"
mkdir -p $fastqc_directory
#fastqc $forward_file -o $fastqc_directory
#fastqc $reverse_file -o $fastqc_directory
}
#--------------------------------------------------------------------------------------------------------------------------------------------------
#--------------------------------------------------------------------------------------------------------------------------------------------------
function run_trimmatic
{
export trimmed_directory=$base_directory"/trimmed_data/"
mkdir -p $trimmed_directory
trimmed_name="${forward_file/.fastq.gz/_filtered.fastq.gz}"
export trimmed_name=$trimmed_directory$base_directory".fq.gz"
#echo $trimmed_name
#echo $forward_file $reverse_file
#java -jar /usr/local/trimmomatic/trimmomatic-0.36.jar PE -threads 28 -phred33 $forward_file $reverse_file -baseout $trimmed_name LEADING:3 TRAILING:3 SLIDINGWINDOW:4:26 MINLEN:40
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------------------------------------------------------
function run_spades
{
export spades_directory=$base_directory"/spades/"
mkdir -p $spades_directory
spades_forward_file="${trimmed_name/.fq.gz/_1P.fq.gz}"
spades_reverse_file="${trimmed_name/.fq.gz/_2P.fq.gz}"
#echo $spades_forward_file $spades_reverse_file
#time spades.py --careful -1 $spades_forward_file -2 $spades_reverse_file -t 26 -o $spades_directory
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------------------------------------------------------
function run_fastqc_corrected #run fastqc to check for quality
{
export fastqc_corrected_directory=$base_directory"/fastqc_corrected_reports/"
mkdir -p $fastqc_corrected_directory
ending=".00.0_0.cor.fastq.gz"
spades_corrected_base=$spades_directory"corrected/"
export corrected_forward_file=$spades_corrected_base$base_directory"_1P.fq"$ending
export corrected_reverse_file="${corrected_forward_file/1P/2P}"
#echo $corrected_forward_file
#echo $corrected_reverse_file
#fastqc $corrected_forward_file -o $fastqc_corrected_directory
#fastqc $corrected_reverse_file -o $fastqc_corrected_directory
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------------------------------------------------------
function set_reference
{
if [ $base_directory == B055 ]
then
export ref_file=reference_files/U00096.gbk
export ref=_K12
else
export ref_file=reference_files/CP008957.gbk
export ref=_EDL933
fi
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------------------------------------------------------
function get_sorted_bam_files
{
export bwa_directory=$base_directory"/bwa_indices/"
export draft_assembly_file=$bwa_directory$base_directory".fa"
export sam_file=$base_directory".sam"
export bam_file=$base_directory".bam"
export sorted_prefix=$base_directory"_sorted"
#export sorted_bam=$sorted_prefix".bam"
export sorted_bam=$sorted_prefix
export sorted_bai=$sorted_prefix".bai"
export home_dir=/home/cricket/Projects/Assembly_Pipeline/
mkdir -p $bwa_directory
#ln -sf $home_dir$spades_directory"scaffolds.fasta" $draft_assembly_file
#cd $bwa_directory
#create symbolic link
# if [ $base_directory != B055 ] || [ $base_directory != B201 ] || [ $base_directory != B241 ]
# then
# for file in $home_dir"reference_files/CP008957.fasta.bwt" $home_dir"reference_files/CP008957.fasta.pac" $home_dir"reference_files/CP008957.fasta.ann" $home_dir"reference_files/CP008957.fasta.amb" $home_dir"reference_files/CP008957.fasta.sa" $home_dir"reference_files/CP008957.fasta"
# do
# ln -sf $file .
# done
# fi
#This is for the .sai files
#bwa aln -t 28 -f $home_dir$bwa_directory$base_directory"_1P.sai" CP008957.fasta $home_dir$corrected_forward_file
#bwa aln -t 28 -f $home_dir$bwa_directory$base_directory"_2P.sai" CP008957.fasta $home_dir$corrected_reverse_file
#create_sam file
#bwa mem -P -t 26 CP008957.fasta $home_dir$corrected_forward_file $home_dir$corrected_reverse_file > $sam_file
#Convert from SAM to BAM format
#samtools view -b -S -o $bam_file $sam_file
#bam_sort_index
#samtools sort $bam_file $sorted_bam
#samtools index $sorted_bam".bam"
#cd -
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------------------------------------------------------
function run_pilon
{
export pilon_directory=$base_directory"/pilon/"
#mkdir -p $pilon_directory
#sorted_bam=$bwa_directory$sorted_bam".bam"
#echo $sorted_bam
#if [ $base_directory == B055 ] #Testing this out for the moment
#then
# samtools index $sorted_bam
# java -Xmx16G -jar /usr/local/pilon.jar --threads 28 --genome $draft_assembly_file --frags $sorted_bam --changes --tracks --output $base_directory --outdir $pilon_directory
#fi
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
function mauve_alignment
{
export mauve_directory=$base_directory"/mauve/"
mauve_input_file=$pilon_directory$base_directory".fasta"
mkdir -p $mauve_directory
if [ $base_directory == B055 ]
then
export ref_file=reference_files/U00096.gbk
export ref=_K12
else
export ref_file=reference_files/CP008957.gbk
export ref=_EDL933
fi
mauve_prefix=$base_directory$ref
#java -Xmx16G -cp /usr/local/Mauve/Mauve.jar org.gel.mauve.contigs.ContigOrderer -output $mauve_directory -ref $ref_file -draft $mauve_input_file
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
function separate_plasmid_chromosome
{
export prokka_directory=$base_directory"/prokka/"
export chromosome_directory=$prokka_directory"chromosome/"
export plasmid_directory=$prokka_directory"plasmid/"
mkdir -p $prokka_directory
mkdir -p $chromosome_directory
mkdir -p $plasmid_directory
final_assembly=$prokka_directory$base_directory"_formatted.fa"
#for dir in ${mauve_directory[*]}
#do
# assemblies=($mauve_directory"*/*.fasta")
# for assembly in ${assemblies[*]}
# do
# fasta_formatter -i $assembly -o $final_assembly
# done
#done
contig_file=plasmid_contig_list.txt
#python separate_plasmids_chromosomes.py $base_directory $final_assembly $contig_file $chromosome_directory $plasmid_directory
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
function remove_n_repeats
{
export plasmid_file=$plasmid_directory$base_directory"_P.fa"
export chromosome_file=$chromosome_directory$base_directory"_C.fa"
#python replace_n_repeats.py $base_directory $chromosome_file $chromosome_directory $plasmid_file $plasmid_directory
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
function align_plasmids
{
export plasmid_alignment_directory=$plasmid_directory"mauve/"
mkdir -p $plasmid_alignment_directory
if [ $base_directory != B055 ] #|| [ $base_directory == B204 ]
then
export ref_file=reference_files/CP008958.gbk
fi
#java -Xmx16G -cp /usr/local/Mauve/Mauve.jar org.gel.mauve.contigs.ContigOrderer -output $plasmid_alignment_directory -ref $ref_file -draft $plasmid_file
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
function separate_plasmid_contigs
{
export plasmid_final_assembly_directory=$plasmid_directory"final_assembly/"
mkdir -p $plasmid_final_assembly_directory
plasmid_final_assembly=$plasmid_final_assembly_directory$base_directory"_P.fa"
for dir in ${plasmid_alignment_directory[*]}
do
assemblies=($plasmid_alignment_directory"alignment*/"$base_directory"_P.fa.fas")
for assembly in ${assemblies[*]}
do
fasta_formatter -i $assembly -o $plasmid_final_assembly
done
done
contig_file=aligned_plasmid_contig_list.txt
if [ $base_directory == B296 ]
#if [ $base_directory != B055 ]
then
python separate_plasmids_chromosomes.py $base_directory $final_assembly $contig_file 0 $plasmid_final_assembly_directory
echo $base_directory
echo $final_assembly
echo $contig_file
echo $plasmid_final_assembly_directory
fi
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
function call_prokka
{
if [ $base_directory == B296 ]
then
prokka --outdir $chromosome_directory --force --prefix $base_directory --locustag L --increment 1 --compliant --centre C --genus Escherichia --species coli --strain $base_directory --kingdom Bacteria --cpus 30 --rfam $chromosome_file
fi
if [ $base_directory == B296 ]
#if [ $base_directory != B055 ]
then
prokka --outdir $plasmid_directory --force --prefix $base_directory --locustag L --increment 1 --compliant --centre C --genus Escherichia --species coli --strain $base_directory --kingdom Bacteria --cpus 28 --rfam $plasmid_final_assembly
fi
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
function align_discarded_contigs
{
#export plasmid_directory=$prokka_directory"plasmid/"
discarded_contig_file=$plasmid_final_assembly_directory$base_directory"_discarded_contigs.fa"
export discarded_plasmid_alignment_directory=$plasmid_directory"mauve/plasmid_2"
mkdir -p $discarded_plasmid_alignment_directory
if [ $base_directory != B055 ] #|| [ $base_directory == B204 ]
then
export ref_file=reference_files/NC_002127.gbk
fi
java -Xmx16G -cp /usr/local/Mauve/Mauve.jar org.gel.mauve.contigs.ContigOrderer -output $discarded_plasmid_alignment_directory -ref $ref_file -draft $discarded_contig_file
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
function blast_discarded_contigs
{
contig_file=$plasmid_final_assembly_directory$base_directory"_discarded_contigs.fa"
blast_results_file=$plasmid_final_assembly_directory$base_directory"_blast_results.txt"
#echo $contig_file
#echo $blast_results_file
blastn -task blastn -query $contig_file -db nt -outfmt 6 -num_alignments 1 -num_threads 22 -out $blast_results_file
#blastn -outfmt 6 -query /root/cricket/Projects/Assembly_Pipeline/BRIG/scratch/B296.gbk.fna -db /root/cricket/Projects/Assembly_Pipeline/BRIG/scratch/CP008957.gbk.fna -out /root/cricket/Projects/Assembly_Pipeline/BRIG/scratch/B296.gbk.fnaVsCP008957.gbk.fna.tab -task blastn
#blastn -task blastn -query $contig_file -db nr -outfmt 6 -num_alignments 1 -max_target_seqs 1 -num_threads 22 -out $blast_results_file
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
function identify_prophage_regions
{
wget --post-file=B055.gbk http://phaster.ca/phaster_api -O B055_phaster
# 1 {"job_id":"ZZ_cf16c43cf6","status":"You're next!..."}
wget "http://phaster.ca/phaster_api?acc=ZZ_7aee5a5db4" -O temp
wget phaster.ca/submissions/ZZ_7aee5a5db4.zip
}
#----------------------------------------------------------------------------------------------------------------------------------------------------
function align_chromosome
{
corpus_assembly=corpus_assembly/
corpus_file=corpus_assembly
corpus_tree=corpus.tree
corpus_backbone=corpus.backbone
mkdir -p $corpus_assembly
cd $corpus_assembly
progressiveMauve --output=$corpus_file --output-guide-tree=$corpus_tree --backbone-output=$corpus_backbone ../reference_files/CP008957.gbk ../final_fasta/chromosome/B201.fasta ../final_fasta/chromosome/B0246.fasta ../final_fasta/chromosome/B241.fasta ../final_fasta/chromosome/B264.fasta ../final_fasta/chromosome/B265.fasta ../final_fasta/chromosome/B271.fasta ../final_fasta/chromosome/B0247.fasta ../final_fasta/chromosome/B0249.fasta ../final_fasta/chromosome/B202.fasta ../final_fasta/chromosome/B349.fasta ../final_fasta/chromosome/B204.fasta ../final_fasta/chromosome/B250.fasta ../final_fasta/chromosome/B301.fasta ../final_fasta/chromosome/B0245.fasta ../final_fasta/chromosome/B309.fasta ../final_fasta/chromosome/B263.fasta ../final_fasta/chromosome/B244.fasta ../final_fasta/chromosome/B269.fasta ../final_fasta/chromosome/B311.fasta ../final_fasta/chromosome/B273.fasta ../final_fasta/chromosome/B296.fasta ../final_fasta/chromosome/B266.fasta ../final_fasta/chromosome/B307.fasta ../final_fasta/chromosome/B306.fasta ../final_fasta/chromosome/B251.fasta ../final_fasta/chromosome/B055.fasta
cd -
}
function count_contigs
{
discarded_plasmid_alignment_directory=$base_directory"/prokka/plasmid/mauve/plasmid_2/"
#alignment2 /B0245_discarded_contigs.fa_contigs.tab
#discarded_plasmid_alignment_directory=$base_directory"/prokka/plasmid/mauve/plasmid_2/alignment2 /B0245_discarded_contigs.fa_contigs.tab
#echo $plasmid_alignment_directory
for dir in ${discarded_plasmid_alignment_directory[*]}
do
assemblies=($discarded_plasmid_alignment_directory"alignment*/"$base_directory"_discarded_contigs.fa.fas")
for assembly in ${assemblies[*]}
do
if [ $base_directory != 'B055' ]
then
a=test
#echo $assembly
#wc -l $assembly
fi
done
done
#/home/cricket/Projects/Assembly_Pipeline/B0245/prokka/plasmid/mauve/plasmid_2/alignment2/B0245_discarded_contigs.fa_contigs.tab
#$discarded_plasmid_alignment_directory #=$plasmid_directory"mauve/plasmid_2"
}
function annotate_fasta_roary
{
export roary_file=roary_files/
export roary_gff_directory=$roary_file"gff_files/"
mkdir -p $roary_file
mkdir -p $roary_gff_directory
#prokka --outdir $roary_file --force --prefix $base_directory"_roary" --locustag L --increment 1 --compliant --centre C --genus Escherichia --species coli --strain $base_directory --kingdom Bacteria --cpus 28 --rfam $pilon_directory$base_directory".fasta"
#export gff_file_list=($roary_file/*.gff)
#for gff_file in ${gff_file_list[*]}
#do
# cp $gff_file $roary_gff_directory/.
#done
}
#For this to work well, all locus tags should be changed to reflect the base directory
function change_locus_tag_names
{
echo "Change the locus tags from L_ to base_directory_"
}
function run_roary
{
export roary_output=$roary_file"output/"
export roary_output_2=$roary_file"output_2/"
mkdir -p $roary_output
mkdir -p $roary_output_2
#cd $roary_gff_directory
#create pangenome w/ core alignment
#roary -e --mafft -p 28 -f $home_dir$roary_output *.gff
#roary -e --dont_delete_files --mafft -p 28 -f $home_dir$roary_output_2 *.gff
#cd -
}
function find_union_genes
{
export pangenome_union_directory=$roary_file"union/"
mkdir -p $pangenome_union_directory
cd $pangenome_union_directory
query_pan_genome -a union -g $home_dir$roary_output"_1484750482/clustered_proteins" $home_dir$roary_gff_directory*.gff -o pangenome_union
cd -
}
function find_core_genes
{
export pangenome_intersection_directory=$roary_file"intersection/"
mkdir -p $pangenome_intersection_directory
cd $pangenome_intersection_directory
query_pan_genome -a intersection -g $home_dir$roary_output"_1484750482/clustered_proteins" $home_dir$roary_gff_directory*.gff -o pangenome_intersection
cd -
}
function find_accessory_genes
{
export pangenome_complement_directory=$roary_file"complement/"
mkdir -p $pangenome_complement_directory
cd $pangenome_complement_directory
query_pan_genome -a complement -g $home_dir$roary_output"_1484750482/clustered_proteins" $home_dir$roary_gff_directory*.gff -o pangenome_complement
cd -
}
function find_differences
{
#first group is present (flocculate), second is non_flocculate
export pangenome_difference_directory=$roary_file"difference/"
mkdir -p $pangenome_difference_directory
cd $pangenome_difference_directory
query_pan_genome -a difference --g $home_dir$roary_output"_1484750482/clustered_proteins" -input_set_one $home_dir$roary_gff_directory"201.gbk.gff",$home_dir$roary_gff_directory"B0246_roary.gff",$home_dir$roary_gff_directory"B250_roary.gff",$home_dir$roary_gff_directory"B263_roary.gff",$home_dir$roary_gff_directory"B266_roary.gff",$home_dir$roary_gff_directory"B271_roary.gff",$home_dir$roary_gff_directory"B307_roary.gff" --input_set_two $home_dir$roary_gff_directory"B202_roary.gff",$home_dir$roary_gff_directory"B204_roary.gff",$home_dir$roary_gff_directory"241.gbk.gff",$home_dir$roary_gff_directory"B244_roary.gff",$home_dir$roary_gff_directory"B0245_roary.gff",$home_dir$roary_gff_directory"B0247_roary.gff",$home_dir$roary_gff_directory"B0249_roary.gff",$home_dir$roary_gff_directory"B251_roary.gff",$home_dir$roary_gff_directory"B264_roary.gff",$home_dir$roary_gff_directory"B265_roary.gff",$home_dir$roary_gff_directory"B269_roary.gff",$home_dir$roary_gff_directory"B273_roary.gff",$home_dir$roary_gff_directory"B296_roary.gff",$home_dir$roary_gff_directory"B301_roary.gff",$home_dir$roary_gff_directory"B306_roary.gff",$home_dir$roary_gff_directory"B309_roary.gff",$home_dir$roary_gff_directory"B311_roary.gff",$home_dir$roary_gff_directory"B349_roary.gff" -o flocculate_difference
cd -
}
#-----------------Function Calls--------------------
export reference_indices=reference_mapping_files/
mkdir -p $reference_indices
#index reference files (for mapping -- this need only be done once)
#if [ ! -f reference_files/CP008957.sa ]; then
# bwa index reference_files/CP008957.fasta #<- CP008957.fasta.bwt CP008957.fasta.pac CP008957.fasta.ann CP008957.fasta.amb CP008957.fasta.sa
#fi
#
#if [ ! -f reference_files/U00096.sa ]; then
# bwa index reference_files/U00096.fasta #<- U00096.fasta.bwt U00096.fasta.pac U00096.fasta.ann U00096.fasta.amb U00096.fasta.sa
#fi
#
#if [ ! -f reference_files/CP008958.sa ]; then
# bwa index reference_files/CP008958.fasta #<- CP008958.fasta.bwt CP008958.fasta.pac CP008958.fasta.ann CP008958.fasta.amb CP008958.fasta.sa
#fi
#cd $reference_indices
#pwd
#bwa index -p CP008957 -a is ../reference_files/CP008957.fasta
#bwa index -p U00096 -a is ../reference_files/U00096.fasta
#bwa index -p CP008958 -a is ../reference_files/CP008958.fasta
#cd -
sequence_file_list=(data/*R1.fastq.gz)
for forward_file in ${sequence_file_list[*]}
{
#set initial forward fastq file
export forward_file
#set base directory
base_directory="${forward_file/data\//}"
base_directory=${base_directory:0:5}
export base_directory="${base_directory/_/}"
mkdir -p $base_directory
#mkdir -p B204/mauve/
#mkdir -p B204/mauve/EC4115/
#mkdir -p B204/mauve/Sakai/
#mkdir -p B204/mauve/EDL933/
#mkdir -p B204/mauve/K12/
#java -Xmx16G -cp /usr/local/Mauve/Mauve.jar org.gel.mauve.contigs.ContigOrderer -output B204/mauve/EC4115 -ref reference_files/CP001164.gbk -draft B204/pilon/B204.fasta
#java -Xmx16G -cp /usr/local/Mauve/Mauve.jar org.gel.mauve.contigs.ContigOrderer -output B204/mauve/Sakai -ref reference_files/NC_002695.gbk -draft B204/pilon/B204.fasta
#java -Xmx16G -cp /usr/local/Mauve/Mauve.jar org.gel.mauve.contigs.ContigOrderer -output B204/mauve/EDL933 -ref reference_files/CP008957.gbk -draft B204/pilon/B204.fasta
#java -Xmx16G -cp /usr/local/Mauve/Mauve.jar org.gel.mauve.contigs.ContigOrderer -output B204/mauve/K12 -ref reference_files/U00096.gbk -draft B204/pilon/B204.fasta
#create quality report using fastqc
run_fastqc
#trim paired-end reads using trimmomatic
run_trimmatic
#de-novo assembly using SPAdes
run_spades
#create quality report on corrected & trimmed fastq files using fastqc
run_fastqc_corrected
#create sam/bam alignment (sorted) files
get_sorted_bam_files
#improve draft assembly with Pilon
run_pilon
#align second draft assembly to reference using Mauve
#mauve_alignment
#Separate plasmid from chromosome, this copies the final & formatted assembly files to prokka directory
##NOTE: Prior to this step, alignments must be manually inspected for last chromosome node
#separate_plasmid_chromosome
#Remove n's from plasmid and chromosome files
#remove_n_repeats
#align plasmids to ELD933 plasmid
#align_plasmids
#Separate non-aligned contigs from plasmid files
##NOTE: Prior to this step, final alignments must be manually inspected for last plasmid node
### to find last aligned Node, and place that info in output file.
#separate_plasmid_contigs
#Annotate files
#call_prokka
#Align discarded contigs (to smaller plasmid)
#align_discarded_contigs
#Blast discarded contigs
#blast_discarded_contigs
#Run PHASTER
#identify_prophage_regions
#Multi-sequence alignment for chromosomes
#align_chromosome
#Count contigs to rule out cross-contamination
#count_contigs
#Annotate chromosome & plasmids together
annotate_fasta_roary
}
#Run Roary to get Pangenome This needs to be run once, not for each file
run_roary
#Run Roary to get all genes
find_union_genes
#Run Roary to get core genes
#find_core_genes
#Run Roary to get accessory genes
#find_accessory_genes
#Run Roary to find differences between flocc & non-flocc
#find_differences
#java -cp readseq.jar run NC_012967.1.gbk -f GFF -o NC_012967.1.gbk.gff <- convert genbank to gff GFF2 <- not good