Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/site_building/module_usage.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Module Usage
=============

.. toctree::
:maxdepth: 2
:caption: Contents:

module_usage/tripal_file
10 changes: 10 additions & 0 deletions docs/site_building/module_usage/tripal_file.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Tripal File Module
====================

.. toctree::
:maxdepth: 4
:caption: Tripal File Module

tripal_file/overview
tripal_file/install
tripal_file/usage
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
149 changes: 149 additions & 0 deletions docs/site_building/module_usage/tripal_file/install.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
Installation
============

Module Installation
--------------------

The Tripal File module is one of the core Tripal modules, so will be
available on any Tripal site, it simply needs to be enabled.

When this module is enabled, it will create two new content types: `File` and `License`.
It will also create a variety of tables in your Chado database for
associating files to other content types.

You may activate the module either using drush on the command line, or activate via the GUI.

.. note::

The `EDAM vocabulary <http://edamontology.org/page>`_ is imported when the the Tripal File module
is enabled, because it provides terms for many common biological file types (e.g. FASTA, GFF3, VCF, etc.).
Any file that is managed by the Tripal File module requires a file type.

Install using a Drush command
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The following command can be used to enable the Tripal File module:

.. code-block:: bash

drush pm-enable tripal_file

You should see output similar to this when the command is run:

.. code-block:: text

[notice] Adding new vocabulary terms
[notice] Adding custom tables
[notice] Adding linker table terms
[notice] Creating new content types: file, license
[notice] Creating Tripal Content Types from: Tripal File Content Types (Tripal File)
[notice] Content type, "File", created.
[notice] Content type, "License", created.
[notice] Attaching fields to Tripal content types from: Tripal File Fields
[notice] Added field, "file_name", to content type: "tripal_file".
[notice] Added field, "file_description", to content type: "tripal_file".
[notice] Added field, "file_type", to content type: "tripal_file".
[notice] Added field, "file_license", to content type: "tripal_file".
[notice] Added field, "file_location", to content type: "tripal_file".
[notice] Added field, "file_relationship", to content type: "tripal_file".
[notice] Added field, "file_dbxref", to content type: "tripal_file".
[notice] Added field, "analysis_file", to content type: "tripal_file".
[notice] Added field, "file_contact", to content type: "tripal_file".
[notice] Added field, "organism_file", to content type: "tripal_file".
[notice] Added field, "project_file", to content type: "tripal_file".
[notice] Added field, "file_pub", to content type: "tripal_file".
[notice] Added field, "study_file", to content type: "tripal_file".
[notice] Added field, "license_name", to content type: "tripal_license".
[notice] Added field, "license_summary", to content type: "tripal_license".
[notice] Added field, "license_uri", to content type: "tripal_license".
[notice] Adding and publishing standard license types
[notice] Initializing publish
[notice] Finding all candidate records in the "license" chado table
[notice] Preparing to publish 3 "tripal_license" records
[notice] Step 1 of 6: Find matching records
[notice] Step 2 of 6: Generate page titles
[notice] Step 3 of 6: Find existing published entity titles
[notice] Step 4 of 6: Updating existing page titles
[notice] Step 5 of 6: Publishing 3 new entities
[notice] Step 6 of 6: Adding field items to published entities
[notice] Published 3 items for field "license_name"
[notice] Published 3 items for field "license_summary"
[notice] Published 2 items for field "license_uri"
[notice] Publish completed. Published 3 new entities, checked 0 existing entities,
added 8 new field values, and republished 0 existing field values.
[notice] Installing the EDAM ontology
[notice] Downloading URL "https://edamontology.org/EDAM.obo", saving to "/tmp/obo_v0lM58"
[notice] Importing into schema "chado"
[notice] Step 1: Preloading File "/tmp/obo_v0lM58"...
[notice] Percent complete: 0%. Memory: 98,955,896 bytes.
[notice] Percent complete: 5.00 %. Memory: 99,479,976 bytes.
[notice] Percent complete: 10.01 %. Memory: 100,071,976 bytes.
...
[notice] Percent complete: 95.01 %. Memory: 108,600,216 bytes.
[notice] Percent complete: 100.00 %. Memory: 109,079,472 bytes.
[notice] Percent complete: 100.00 %. Memory: 109,079,832 bytes.
[notice] Percent complete: 100.00 %. Memory: 109,081,320 bytes.
[notice] Found the following namespaces: EDAM.
[notice] Step 2: Examining relationships...
[notice] Percent complete: 0%. Memory: 109,071,064 bytes.
[notice] Step 3: Loading type defs...
[notice] Percent complete: 0%. Memory: 109,072,680 bytes.
[notice] Percent complete: 15.38 %. Memory: 109,075,352 bytes.
[notice] Percent complete: 30.77 %. Memory: 109,075,416 bytes.
[notice] Percent complete: 100.00 %. Memory: 109,076,024 bytes.
[notice] Percent complete: 100.00 %. Memory: 109,076,384 bytes.
[notice] Percent complete: 100.00 %. Memory: 109,076,056 bytes.
[notice] Step 4: Loading terms...
[notice] Percent complete: 0%. Memory: 109,076,056 bytes.
[notice] Percent complete: 0%. Memory: 109,076,056 bytes.
[notice] Percent complete: 1.02 %. Memory: 109,082,624 bytes.
[notice] Percent complete: 2.00 %. Memory: 109,090,392 bytes.
[notice] Percent complete: 3.02 %. Memory: 109,096,856 bytes.
...
[notice] Percent complete: 97.01 %. Memory: 109,340,336 bytes.
[notice] Cannot add Alt ID "topic_3040" without an accession
[notice] Percent complete: 98.03 %. Memory: 109,340,944 bytes.
[notice] Percent complete: 99.02 %. Memory: 109,341,360 bytes.
[notice] Percent complete: 100.00 %. Memory: 109,341,808 bytes.
[notice] Percent complete: 100.00 %. Memory: 109,342,168 bytes.
[notice] Step 5: Cleanup...
[notice] Updating the cv_root_mview materialized view...
[notice] Updating the db2cv_mview materialized view...
[success] Module tripal_file has been installed.

Install using the GUI
^^^^^^^^^^^^^^^^^^^^^

You will need to be logged into your site as a user that has administrative permissions.

1. From the administrative menu select "Extend"

.. image:: install.1.gui-enable-extend.png
:alt: Appearance of the 'Extend' menu item with puzzle piece icon

2. Scroll down to the "Tripal File" module, or enter "Tripal File" in the filter box, and check the box for the **Tripal File** module.

.. image:: install.2.gui-enable-tripal-file.png
:alt: Checkbox next to the Tripal File module, shown not yet checked. Descriptive text is 'A module for associating files with Tripal content and for accessing files via web services'

3. Click the "Install" button

.. image:: install.3.gui-enable-install.png
:alt: Appearance of the 'Install' button

4. After several seconds you should see a screen similar to this

.. image:: install.4.gui-enable-installed.png
:alt: Appearance after the tripal file module is installed. This includes the drush command 'drush trp-run-jobs --job_id=1 --username=drupaladmin --root=/var/www/drupal/web'

5. The drush command you will need to run is shown, it is highlighted in this example.
Copy your version of this command, it will be different than the one shown in the
example here, and run it at the command line.

Set Permissions
----------------

.. warning::

Permissions have not yet been implemented.
See `Tripal issue 1355 <https://github.com/tripal/tripal/issues/1355>`_ for current status.
23 changes: 23 additions & 0 deletions docs/site_building/module_usage/tripal_file/overview.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Tripal File Overview
======================

The Tripal File module supports association of data files with content in a Chado database
and integrates those associations with content types on a Tripal website.

.. image:: https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/FAIR_data_principles.jpg/320px-FAIR_data_principles.jpg
:alt: The 'FAIR' logo, spelled out is Findable, Accessible, Interoperable, Reusable

These associations are meant to support
`FAIR data principles <https://www.go-fair.org/fair-principles/>`_
by integrating with Tripal content and web services such that:

- Files are findable and accessible via Tripal's content web services.
- Metadata about files use globally unique controlled vocabularies. These metadata can be assigned as properties of each file.
- License and usage details can be assigned to each file.

This module provides two new content types for Tripal sites: **File** and **License**.

Initial development of the Tripal File module was funded by the
`National Science Foundation award #1659300 <https://nsf.gov/awardsearch/showAward?AWD_ID=1659300>`_
and the `National Research Support Program (NRSP) 10 project <https://www.nrsp10.org/>`_
and the McIntire-Stennis project 1019284.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading