Views¶
The models are located at dcc/modeldcc/views.py.
-
modeldcc.views.AppliedAssayDetail(request, appliedassay_id)[source]¶ Render a page with applied assay details to a given appliedassay_id, including related items.
-
modeldcc.views.AssayDetail(request, assay_id)[source]¶ Render a page with assay details to a given assay_id, including related items.
-
modeldcc.views.BiosampleDetail(request, biosample_id)[source]¶ Render a page with biosample details to a given biosample_id, including related items.
-
modeldcc.views.CombinedView(request, *args, **kwargs)[source]¶ A deprecated table view, to show all the data for each section.
-
modeldcc.views.DataDetail(request, data_id)[source]¶ Render a page with data details to a given data_id, including related items.
-
modeldcc.views.SequencingDetail(request, sequencing_id)[source]¶ Render a page with sequencing details to a given sequencing_id, including related items.
-
modeldcc.views.SeriesChildTable(request, series_id)[source]¶ Returns a list of biosamples and assays for the given series_id to be used in the table on the seriesDetail page.
-
modeldcc.views.SeriesDetail(request, series_id)[source]¶ Render a page with series details to a given series_id, including related items.
-
modeldcc.views.addAnalyzedData(request, *args, **kwargs)[source]¶ Add and upload analyzed data objects to the DCC and return a flag if they already exist and their data ids.
-
modeldcc.views.addAppliedAssay(request, *args, **kwargs)[source]¶ Add applied assay objects to the DCC and return an array of their ids for the webinterface.
-
modeldcc.views.addAssay(request, *args, **kwargs)[source]¶ Add assay objects to the DCC and return an array of their ids for the webinterface.
-
modeldcc.views.addBiosample(request, *args, **kwargs)[source]¶ Add biosample and corresponding biosmaple replicate objects to the DCC and return an array of their ids for the webinterface.
-
modeldcc.views.addData(request, *args, **kwargs)[source]¶ Add data objects to the DCC, upload or move the files (via url or a filepath), change the series status to
COMPLETED_UPLOAD_STATUSand return the corresponding series id.
-
modeldcc.views.addFreezeTag(request, *args, **kwargs)[source]¶ Update the version field for a given data id, previous version numbers are concatenated with the new one.
-
modeldcc.views.addSequencing(request, *args, **kwargs)[source]¶ Add sequencing objects to the DCC and return an array of their ids for the webinterface.
-
modeldcc.views.addSeries(request, *args, **kwargs)[source]¶ Add a series object to the DCC and return a list of available assay and labs for the web interface.
-
modeldcc.views.batchUpload(request, *args, **kwargs)[source]¶ Handle the batch upload by reading in the csv file, validating it and if all tests pass, staging the upload for final submission.
-
modeldcc.views.commitBatch(request, *args, **kwargs)[source]¶ If all checks passed and the user also checked parsing of the csv file, add the batch staged annotations including the sequencing files to the DCC
-
modeldcc.views.createDataExportJSON(request, *args, **kwargs)[source]¶ Create and save a json file with all available data sets and their metadata. Used in the react dataExport app.
-
modeldcc.views.createindexJSON(request, *args, **kwargs)[source]¶ Create a json file with data of assays and labs in the currently database. Used for the plot in _index.js
-
modeldcc.views.csv_export(request)[source]¶ - Create and send a csv file containing all the metadata for a given series_id
- and it’s connected sections.
-
modeldcc.views.delete(request, *args, **kwargs)[source]¶ Mark a series as deleted, i.e. reset it’s status to
INITIAL_UPLOAD_STATUS.
-
modeldcc.views.deleteFiles(request, *args, **kwargs)[source]¶ Delete files from the DCC via an ajax request with the corresponding dataids.
-
modeldcc.views.deleteFilesByPath(request, *args, **kwargs)[source]¶ Delete files from the systme via an ajax request with the corresponding filepath.
-
modeldcc.views.filePaths(request)[source]¶ Render a list of the available files to help during a file upload, when files are in the
UPLOAD_PATHdirectory.
-
modeldcc.views.getURLs(request)[source]¶ Create and send a file, where each line contains the url to a file on the server requested via their relative filepaths.
-
modeldcc.views.getZippedFiles(request)[source]¶ Create and send a .tar archive of requested filepaths.
-
modeldcc.views.get_file_object(data_url, data_local_path)[source]¶ Helper function to get a file either via an url or via a file path on the server
-
modeldcc.views.get_fk_model(model, fieldname)[source]¶ Helper function to get the foreignKey for a given fieldname in a given model.
-
modeldcc.views.get_plot_sizeDevelopment()[source]¶ Generate and send a json file containing the data for the area plot to show the cummulative development of the amount of data in the DCC over time.
-
modeldcc.views.get_plot_stages2assay()[source]¶ generate and send a json file contains a nested list of the amount of data per lab per assay. Used to render the bar graph on the index page.
-
modeldcc.views.get_plot_stages2chip()[source]¶ Generate and send a json file containing the stages and targets for the ChiP-seq data, used in the bar plot on the visualzations page
-
modeldcc.views.hideEmptyColumns(data, table)[source]¶ Helper function to hide otherwise empty columns in the table views in the detail pages.
-
modeldcc.views.importDNANexus(request, *args, **kwargs)[source]¶ Render the interface to upload analyzed data (originally via DNANexus).
-
modeldcc.views.is_member(user)[source]¶ Check if user is part of GROUP.
- Args:
- user (User)
- Returns:
Trueif user is part of GROUP
-
modeldcc.views.login_interface(request)[source]¶ Log in as a user with a POST request (mainly used for cypress tests).
- Returns:
- “fine”, if login is successful “incactive”, if user is not activated yet “bad”, if login was unsuccessful
-
modeldcc.views.termsPage(request)[source]¶ Render page with all controlled vocabulary terms as tables attached.
-
modeldcc.views.updateAnalyzedData(request)[source]¶ Update analyzed data objects, if certain fields were missing or incorrect during their initial upload.
-
modeldcc.views.updateFile(request, *args, **kwargs)[source]¶ Replace the current file attached to a data instance with a new file.
-
modeldcc.views.updateFilePaths(request, *args, **kwargs)[source]¶ Rename/move and move files to reflect changes in their annotations. Moves them first to the new position with a __tmp attached to the file name. modeldcc.views.updateTemporaryFilePaths() converts the name to the final form.