Skip to content

Commit

Permalink
Merge pull request #177 from r2dt-bio/tmrna-tweaks
Browse files Browse the repository at this point in the history
Tmrna tweaks
  • Loading branch information
AntonPetrov authored Feb 2, 2025
2 parents 9b42680 + 8ecb57f commit 2d864c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions data/tmrna/metadata.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
model_name species taxid rna_type
tmRNA Bacteria 2 tmRNA
tmRNA_alpha Alphaproteobacteria 28211 tmRNA
tmRNA_beta Betaproteobacteria 28216 tmRNA
tmRNA_cyano Cyanobacteriota 1117 tmRNA
tmRNA_intron bacteria 2 tmRNA
tmRNA_mito Eukaryota 2759 tmRNA
6 changes: 5 additions & 1 deletion utils/list_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ def get_models(source, modelinfo_file, metadata_file):
rna_type = "large subunit rRNA"
elif source == "RNAse P Database":
rna_type = "RNAse P"
elif source == "tmRNA Database":
rna_type = "tmRNA"
else:
rna_type = ""
for model_id in model_ids:
Expand Down Expand Up @@ -255,14 +257,16 @@ def list_models():
os.path.join(config.RNASEP_CM_LIBRARY, "modelinfo.txt"),
os.path.join(config.RNASEP, "metadata.tsv"),
)
data = data + models
print(f"RNAse P Database: {len(models)}")

models = get_models(
"tmRNA Database",
os.path.join(config.TMRNA_CM_LIBRARY, "modelinfo.txt"),
os.path.join(config.TMRNA, "metadata.tsv"),
)
data = data + models
print(f"RNAse P Database: {len(models)}")
print(f"tmRNA Database: {len(models)}")

models = get_rfam_models()
data = data + models
Expand Down

0 comments on commit 2d864c4

Please sign in to comment.