-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Prokka to identify ncRNAs for QC purposes; add prokka summary to …
…bin summary process; refactor bin summary code
- Loading branch information
Jim Downie
committed
Dec 19, 2024
1 parent
9950440
commit 62bf7a4
Showing
16 changed files
with
199 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## Summarise information about tRNA and rRNA contents | ||
## given by Prokka for a genome bin | ||
## | ||
## Author: Jim Downie, 2024 | ||
|
||
BEGIN { | ||
FS = "\t" | ||
OFS = FS | ||
print "bin", "total_trnas", "unique_trnas", "rrna_23s", "rrna_16s", "rrna_5s" | ||
} | ||
BEGINFILE { | ||
bin = FILENAME | ||
sub(".*/", "", bin) | ||
sub(/\.[^\.]+$/, "", bin) | ||
total_trnas = 0 | ||
unique_trnas = 0 | ||
pos_23s = 0 | ||
pos_16s = 0 | ||
pos_5s = 0 | ||
} | ||
$2 == "tRNA" { | ||
total_trnas++ | ||
trna_arr[$7] = 1 | ||
} | ||
$2 == "rRNA" { | ||
if($7 == "23S ribosomal RNA") { pos_23s = 1 } | ||
if($7 == "16S ribosomal RNA") { pos_16s = 1 } | ||
if($7 == "5S ribosomal RNA") { pos_5s = 1 } | ||
} | ||
ENDFILE { | ||
for (i in trna_arr) { unique_trnas++ } | ||
delete trna_arr | ||
print bin, total_trnas, unique_trnas, pos_23s, pos_16s, pos_5s | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.