Skip to content

Commit

Permalink
don't display functional analysis for amplicon runs
Browse files Browse the repository at this point in the history
  • Loading branch information
atarkowska committed Feb 23, 2018
1 parent 931d268 commit da403df
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions emgapianns/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,11 @@ class AnalysisGoTermRelationshipViewSet( # NOQA
def get_queryset(self):
accession = self.kwargs['accession']
release_version = self.kwargs['release_version']
qs = emg_models.AnalysisJob.objects.exclude(
experiment_type__experiment_type='amplicon')
job = get_object_or_404(
emg_models.AnalysisJob, accession=accession,
pipeline__release_version=release_version
qs, accession=accession,
pipeline__release_version=release_version,
)

analysis = None
Expand Down Expand Up @@ -297,9 +299,11 @@ class AnalysisGoSlimRelationshipViewSet( # NOQA
def get_queryset(self):
accession = self.kwargs['accession']
release_version = self.kwargs['release_version']
qs = emg_models.AnalysisJob.objects.exclude(
experiment_type__experiment_type='amplicon')
job = get_object_or_404(
emg_models.AnalysisJob, accession=accession,
pipeline__release_version=release_version
qs, accession=accession,
pipeline__release_version=release_version,
)

analysis = None
Expand Down Expand Up @@ -334,9 +338,11 @@ class AnalysisInterproIdentifierRelationshipViewSet( # NOQA
def get_queryset(self):
accession = self.kwargs['accession']
release_version = self.kwargs['release_version']
qs = emg_models.AnalysisJob.objects.exclude(
experiment_type__experiment_type='amplicon')
job = get_object_or_404(
emg_models.AnalysisJob, accession=accession,
pipeline__release_version=release_version
qs, accession=accession,
pipeline__release_version=release_version,
)

analysis = None
Expand Down

0 comments on commit da403df

Please sign in to comment.