Skip to content
Snippets Groups Projects
Commit e7ee21bc authored by Piotr Gawron's avatar Piotr Gawron
Browse files

mirna doesn't require associated disease

parent 203e50f6
No related branches found
No related tags found
1 merge request!70Resolve "Get drugs by target"
......@@ -63,9 +63,6 @@ public class MiRnaRestImpl extends BaseRestImpl {
throw new QueryException("Project with given id doesn't exist");
}
Project project = model.getProject();
if (project.getDisease() == null) {
throw new QueryException("Project doesn't have disease associated to it");
}
Set<String> columnSet = createMiRnaColumnSet(columns);
......@@ -75,7 +72,7 @@ public class MiRnaRestImpl extends BaseRestImpl {
if (organism == null) {
organism = TaxonomyBackend.HUMAN_TAXONOMY;
}
MiRNAView miRna = miRnaService.getByName(query, new DbSearchCriteria().model(model).organisms(organism).colorSet(0).disease(project.getDisease()));
MiRNAView miRna = miRnaService.getByName(query, new DbSearchCriteria().model(model).organisms(organism).colorSet(0));
if (miRna != null) {
List<Model> models = getModels(model);
result.add(prepareMiRna(miRna, columnSet, models));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment