|
7 | 7 | from api import db |
8 | 8 | from api.models.arachis import SampleData as Arachis |
9 | 9 | from api.models.cannabis import SampleData as Cannabis |
10 | | -from api.models.brassica_rapa import SampleData as BrassicaRapa |
11 | 10 | from api.models.dna_damage import SampleData as DNADamage |
12 | 11 | from api.models.embryo import SampleData as Embryo |
13 | 12 | from api.models.germination import SampleData as Germination |
@@ -79,9 +78,6 @@ def get_data(species, database, gene_id, sample_ids=None): |
79 | 78 | elif species == "arachis": |
80 | 79 | if not BARUtils.is_arachis_gene_valid(gene_id): |
81 | 80 | return {"success": False, "error": "Invalid gene id", "error_code": 400} |
82 | | - elif species == "brassica_rapa": |
83 | | - if not BARUtils.is_brassica_rapa_gene_valid(gene_id): |
84 | | - return {"success": False, "error": "Invalid gene id", "error_code": 400} |
85 | 81 | elif species == "cannabis": |
86 | 82 | if not BARUtils.is_cannabis_gene_valid(gene_id): |
87 | 83 | return {"success": False, "error": "Invalid gene id", "error_code": 400} |
@@ -121,11 +117,6 @@ def get_data(species, database, gene_id, sample_ids=None): |
121 | 117 | # Example: PK-PFLW |
122 | 118 | sample_regex = re.compile(r"^PK-\D{1,4}|MED_CTRL$", re.I) |
123 | 119 |
|
124 | | - elif database == "brassica_rapa": |
125 | | - table = BrassicaRapa |
126 | | - # Example: E1 |
127 | | - sample_regex = re.compile(r"^\D{1,2}\d{0,2}|MED_CTRL$", re.I) |
128 | | - |
129 | 120 | elif database == "dna_damage": |
130 | 121 | table = DNADamage |
131 | 122 | # Another insane regex! |
|
0 commit comments