Skip to content

Commit

Permalink
add peptide tag info to tmRNA feature
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Oct 7, 2024
1 parent 0f14902 commit 011bb1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bakta/features/tm_rna.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def predict_tm_rnas(genome: dict, contigs_path: Path):
tmrna['strand'] = strand
tmrna['gene'] = 'ssrA'
tmrna['product'] = 'transfer-messenger RNA, SsrA'
tmrna['tag_aa'] = tag_aa.replace('*', '')
tmrna['db_xrefs'] = [so.SO_TMRNA.id]

nt = bu.extract_feature_sequence(tmrna, contigs[contig_id]) # extract nt sequences
Expand Down
1 change: 1 addition & 0 deletions bakta/io/gff.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def write_gff3(genome: dict, features_by_contig: Dict[str, dict], gff3_path: Pat
'locus_tag': feat['locus'],
'gene': feat['gene'],
'product': feat['product'],
'tag_peptide': feat['tag_aa'],
'Dbxref': feat['db_xrefs']
}
if(cfg.compliant):
Expand Down
1 change: 1 addition & 0 deletions bakta/io/insdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def write_insdc(genome: dict, features: Sequence[dict], genbank_output_path: Pat
qualifiers['pseudo'] = None
elif(feature['type'] == bc.FEATURE_TM_RNA):
qualifiers['inference'] = 'profile:aragorn:1.2'
qualifiers['tag_peptide'] = feature['tag_aa']
insdc_feature_type = bc.INSDC_FEATURE_TM_RNA
elif(feature['type'] == bc.FEATURE_R_RNA):
for rfam_id in [dbxref.split(':')[1] for dbxref in feature['db_xrefs'] if dbxref.split(':')[0] == bc.DB_XREF_RFAM]:
Expand Down

0 comments on commit 011bb1a

Please sign in to comment.