Views¶
Phenopackets service¶
-
class
chord_metadata_service.phenopackets.api_views.
BiosampleBatchViewSet
(**kwargs)¶ get: Return a list of all existing biosamples
post: Filter biosamples by a list of ids
-
get_queryset
()¶ Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.
This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.
You may want to override this if you need to provide different querysets depending on the incoming request.
(Eg. return a list of items that is specific to the user)
-
pagination_class
¶ alias of
chord_metadata_service.restapi.pagination.BatchResultsSetPagination
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.BiosampleSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
BiosampleViewSet
(**kwargs)¶ get: Return a list of all existing biosamples
post: Create a new biosample
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.BiosampleSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
DiagnosisViewSet
(**kwargs)¶ get: Return a list of all existing diagnoses
post: Create a new diagnosis
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.DiagnosisSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
DiseaseViewSet
(**kwargs)¶ get: Return a list of all existing diseases
post: Create a new disease
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.DiseaseSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
ExtendedPhenopacketsModelViewSet
(**kwargs)¶
-
class
chord_metadata_service.phenopackets.api_views.
GeneViewSet
(**kwargs)¶ get: Return a list of all existing genes
post: Create a new gene
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.GeneSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
GenomicInterpretationViewSet
(**kwargs)¶ get: Return a list of all existing genomic interpretations
post: Create a new genomic interpretation
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.GenomicInterpretationSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
HtsFileViewSet
(**kwargs)¶ get: Return a list of all existing HTS files
post: Create a new HTS file
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.HtsFileSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
InterpretationViewSet
(**kwargs)¶ get: Return a list of all existing interpretations
post: Create a new interpretation
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.InterpretationSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
MetaDataViewSet
(**kwargs)¶ get: Return a list of all existing metadata records
post: Create a new metadata record
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.MetaDataSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
PhenopacketViewSet
(**kwargs)¶ get: Return a list of all existing phenopackets
post: Create a new phenopacket
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.PhenopacketSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
PhenopacketsModelViewSet
(**kwargs)¶ -
dispatch
(*args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
pagination_class
¶ alias of
chord_metadata_service.restapi.pagination.LargeResultsSetPagination
-
-
class
chord_metadata_service.phenopackets.api_views.
PhenotypicFeatureViewSet
(**kwargs)¶ get: Return a list of all existing phenotypic features
post: Create a new phenotypic feature
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.PhenotypicFeatureSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
ProcedureViewSet
(**kwargs)¶ get: Return a list of all existing procedures
post: Create a new procedure
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.ProcedureSerializer
-
-
class
chord_metadata_service.phenopackets.api_views.
VariantViewSet
(**kwargs)¶ get: Return a list of all existing variants
post: Create a new variant
-
serializer_class
¶ alias of
chord_metadata_service.phenopackets.serializers.VariantSerializer
-
-
chord_metadata_service.phenopackets.api_views.
get_chord_phenopacket_schema
(request, *args, **kwargs)¶ get: Chord phenopacket schema that can be shared with data providers.
Patients service¶
-
class
chord_metadata_service.patients.api_views.
BatchViewSet
(**kwargs)¶ A viewset that only implements the ‘list’ action. To be used with the BatchListRouter which maps the POST method to .list()
-
class
chord_metadata_service.patients.api_views.
BeaconListIndividuals
(**kwargs)¶ View to return lists of individuals filtered using search terms from katsu’s config.json. Uncensored equivalent of PublicListIndividuals.
-
class
chord_metadata_service.patients.api_views.
IndividualBatchViewSet
(**kwargs)¶ -
get_queryset
()¶ Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.
This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.
You may want to override this if you need to provide different querysets depending on the incoming request.
(Eg. return a list of items that is specific to the user)
-
pagination_class
¶ alias of
chord_metadata_service.restapi.pagination.BatchResultsSetPagination
-
serializer_class
¶ alias of
chord_metadata_service.patients.serializers.IndividualSerializer
-
-
class
chord_metadata_service.patients.api_views.
IndividualViewSet
(**kwargs)¶ get: Return a list of all existing individuals
post: Create a new individual
-
dispatch
(*args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
pagination_class
¶ alias of
chord_metadata_service.restapi.pagination.LargeResultsSetPagination
-
serializer_class
¶ alias of
chord_metadata_service.patients.serializers.IndividualSerializer
-
Mcode service¶
Experiments service¶
-
class
chord_metadata_service.experiments.api_views.
ExperimentViewSet
(**kwargs)¶ get: Return a list of all existing experiments
post: Create a new experiment
-
dispatch
(*args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
pagination_class
¶ alias of
chord_metadata_service.restapi.pagination.LargeResultsSetPagination
-
serializer_class
¶ alias of
chord_metadata_service.experiments.serializers.ExperimentSerializer
-
-
chord_metadata_service.experiments.api_views.
get_experiment_schema
(request, *args, **kwargs)¶ get: Experiment schema
Resources service¶
-
class
chord_metadata_service.resources.api_views.
ResourceViewSet
(**kwargs)¶ get: Return a list of all existing resources
post: Create a new resource
-
pagination_class
¶ alias of
chord_metadata_service.restapi.pagination.LargeResultsSetPagination
-
serializer_class
¶ alias of
chord_metadata_service.resources.serializers.ResourceSerializer
-