コード例 #1
0
ファイル: views.py プロジェクト: aidjek/TS
def _get_dnabarcode_json(request, barcodeId):
    dnar = dnaBarcodeResource()
    dna = dnar.obj_get_list(name=barcodeId, request=request).order_by('index')
    dna_bundles = [dnar.build_bundle(obj=x, request=request) for x in dna]
    dna_json = dnar.serialize(
        None, [dnar.full_dehydrate(bundle) for bundle in dna_bundles],
        'application/json')
    return dna_json
コード例 #2
0
ファイル: urls.py プロジェクト: chrstphdm/TS
v1_api.register(api.GlobalConfigResource())
v1_api.register(api.ExperimentResource())
v1_api.register(api.ResultsResource())
v1_api.register(api.ReferenceGenomeResource())
v1_api.register(api.ObsoleteReferenceGenomeResource())
v1_api.register(api.LocationResource())
v1_api.register(api.RigResource())
v1_api.register(api.PluginResource())
v1_api.register(api.PluginResultResource())
v1_api.register(api.FileServerResource())
v1_api.register(api.TFMetricsResource())
v1_api.register(api.LibMetricsResource())
v1_api.register(api.AnalysisMetricsResource())
v1_api.register(api.QualityMetricsResource())
v1_api.register(api.RunTypeResource())
v1_api.register(api.dnaBarcodeResource())
v1_api.register(api.PlannedExperimentDbResource())
v1_api.register(api.PlannedExperimentResource())
v1_api.register(api.PublisherResource())
v1_api.register(api.ContentResource())
v1_api.register(api.ContentUploadResource())
v1_api.register(api.UserEventLogResource())

v1_api.register(api.KitInfoResource())
v1_api.register(api.KitPartResource())
v1_api.register(api.SequencingKitInfoResource())
v1_api.register(api.SequencingKitPartResource())
v1_api.register(api.ActiveSequencingKitInfoResource())
v1_api.register(api.ActivePGMSequencingKitInfoResource())
v1_api.register(api.ActiveProtonSequencingKitInfoResource())
v1_api.register(api.LibraryKitInfoResource())
コード例 #3
0
ファイル: urls.py プロジェクト: biocyberman/TS
v1_api.register(api.ExperimentResource())
v1_api.register(api.ResultsResource())
v1_api.register(api.ReferenceGenomeResource())
v1_api.register(api.ObsoleteReferenceGenomeResource())
v1_api.register(api.LocationResource())
v1_api.register(api.RigResource())
v1_api.register(api.PluginResource())
v1_api.register(api.PluginResultResource())
v1_api.register(api.PluginResultJobResource())
v1_api.register(api.FileServerResource())
v1_api.register(api.TFMetricsResource())
v1_api.register(api.LibMetricsResource())
v1_api.register(api.AnalysisMetricsResource())
v1_api.register(api.QualityMetricsResource())
v1_api.register(api.RunTypeResource())
v1_api.register(api.dnaBarcodeResource())
v1_api.register(api.PlannedExperimentDbResource())
v1_api.register(api.PlannedExperimentResource())
v1_api.register(api.PublisherResource())
v1_api.register(api.ContentResource())
v1_api.register(api.ContentUploadResource())
v1_api.register(api.UserEventLogResource())

v1_api.register(api.KitInfoResource())
v1_api.register(api.KitPartResource())
v1_api.register(api.SequencingKitInfoResource())
v1_api.register(api.SequencingKitPartResource())
v1_api.register(api.ActiveSequencingKitInfoResource())
v1_api.register(api.ActivePGMSequencingKitInfoResource())
v1_api.register(api.ActiveProtonSequencingKitInfoResource())
v1_api.register(api.LibraryKitInfoResource())
コード例 #4
0
ファイル: views.py プロジェクト: GerritvanNiekerk/TS
def _get_dnabarcode_json(request, barcodeId):
    dnar = dnaBarcodeResource()
    dna = dnar.obj_get_list(name=barcodeId, request=request).order_by('index')
    dna_bundles = [dnar.build_bundle(obj=x, request=request) for x in dna]
    dna_json = dnar.serialize(None, [dnar.full_dehydrate(bundle) for bundle in dna_bundles], 'application/json')
    return dna_json