Skip to content

Commit

Permalink
fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
manulera committed Oct 31, 2023
1 parent c2d15de commit f74ef96
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions api.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from fastapi import FastAPI, Query
from nltk.tree import ParentedTree, TreePrettyPrinter
from starlette.responses import HTMLResponse, FileResponse
from pydantic import BaseModel
from genestorian_module.build_nltk_tags import build_nltk_tag
from genestorian_module.build_nltk_trees import apply_pseudo_grammar, post_process_pseudo_grammar
from genestorian_module.genestorian_module.build_nltk_tags import build_nltk_tag
from genestorian_module.genestorian_module.build_nltk_trees import apply_pseudo_grammar, post_process_pseudo_grammar
import json
from nltk.tree import ParentedTree, TreePrettyPrinter


def name2pattern(allele_name):
Expand All @@ -19,7 +19,8 @@ def name2pattern(allele_name):
'allele_components/sequence_features.toml'
]

alleles_list = build_nltk_tag([allele_name.lower()], toml_files, "allele_components/separators.txt")
alleles_list = build_nltk_tag(
[allele_name.lower()], toml_files, "allele_components/separators.txt")
return alleles_list[0]['pattern']


Expand Down
4 changes: 2 additions & 2 deletions genestorian_module/genestorian_module/build_nltk_tags.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from genestorian_module.replace_feature import (build_feature_dict,
build_strain_list)
from genestorian_module.genestorian_module.replace_feature import (build_feature_dict,
build_strain_list)
import re
import json
import sys
Expand Down
2 changes: 1 addition & 1 deletion genestorian_module/genestorian_module/replace_feature.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import toml
from genestorian_module import read_strains_tsv
from genestorian_module.genestorian_module import read_strains_tsv
import re


Expand Down

0 comments on commit f74ef96

Please sign in to comment.