Skip to content

Commit

Permalink
add signal peptides to output #32
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Jan 18, 2022
1 parent 8f18f36 commit 4f8e23b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bakta/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ def main():
cdss = [f for f in features if f['type'] == bc.FEATURE_CDS]
print(f"\tCDSs: {len(cdss)}")
print(f"\t hypotheticals: {len([cds for cds in cdss if 'hypothetical' in cds])}")
print(f"\t signal peptides: {len([cds for cds in cdss if bc.FEATURE_SIGNAL_PEPTIDE in cds])}")
print(f"\tsORFs: {len([f for f in features if f['type'] == bc.FEATURE_SORF])}")
print(f"\tgaps: {len([f for f in features if f['type'] == bc.FEATURE_GAP])}")
print(f"\toriCs/oriVs: {len([f for f in features if (f['type'] == bc.FEATURE_ORIC or f['type'] == bc.FEATURE_ORIV)])}")
Expand Down Expand Up @@ -565,6 +566,7 @@ def main():
fh_out.write(f"CRISPR arrays: {len([f for f in features if f['type'] == bc.FEATURE_CRISPR])}\n")
fh_out.write(f"CDSs: {len(cdss)}\n")
fh_out.write(f"hypotheticals: {len([cds for cds in cdss if 'hypothetical' in cds])}\n")
fh_out.write(f"signal peptides: {len([cds for cds in cdss if bc.FEATURE_SIGNAL_PEPTIDE in cds])}\n")
fh_out.write(f"sORFs: {len([f for f in features if f['type'] == bc.FEATURE_SORF])}\n")
fh_out.write(f"gaps: {len([f for f in features if f['type'] == bc.FEATURE_GAP])}\n")
fh_out.write(f"oriCs: {len([f for f in features if f['type'] == bc.FEATURE_ORIC])}\n")
Expand Down

0 comments on commit 4f8e23b

Please sign in to comment.