Skip to content

Commit

Permalink
add to index
Browse files Browse the repository at this point in the history
  • Loading branch information
julie-sullivan committed Jun 28, 2019
1 parent a2f4158 commit f0f3201
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
2 changes: 2 additions & 0 deletions docs/database/data-sources/library/ncbi-gene.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ How to download the data files

- ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/GENE_INFO/All_Data.gene_info.gz

Be sure to unzip the file.

How to load the data into your mine
--------------------------------------

Expand Down
31 changes: 10 additions & 21 deletions docs/get-started/create-your-mine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ See :doc:`/webapp/properties/intermine-properties` for details on this file and
3. Create databases
--------------------------

Just as in the demo, you will create your two InterMine databases.
Just as in the demo, you will create your InterMine databases.

::

# create the database for your mine data
~/git/tigermine $ createdb tigermine
~/git/tigermine $ createdb tigermine-items
# create the database for user information
~/git/tigermine $ createdb tigermine-userprofile
~/git/tigermine $ createdb userprofile-tigermine

.. note::

Expand All @@ -77,37 +77,26 @@ These databases are empty. We'll populate the main database in the following ste

::

# create the database for user information
# create the empty tables for the user database, plus add the superuser
~/git/tigermine $ ./gradlew buildUserDB

4. Update project file
--------------------------

The data loaded into your mine is controlled by the `project.xml` file located in the root of your mine directory.

See :doc:`/database/database-building/project-xml/index` for details on the project XML file.
The data loaded into your mine is controlled by the `project.xml` file located in the root of your mine directory. See :doc:`/database/database-building/project-xml` for details on the project XML file.

InterMine has a few dozen libraries for popular data sources. See :doc:`/database/data-sources/library/index` for the full list. Select one of the data sources and add it to your project XML file.

For example, :doc:`/database/data-sources/library/ncbi-gene` loads gene information from the NCBI. Download the data files listed, then add the given project XML entry to your own mine's project XML file, like so:

::

<?xml version="1.0" encoding="utf-8"?>
<project type="bio">
<property name="target.model" value="genomic" />
<property name="common.os.prefix" value="common" />
<property name="intermine.properties.file" value="tigermine.properties" />
<sources>
<source name="ncbi-gene" type="ncbi-gene">
<property name="src.data.dir" location="/DATA/ncbi" />
<property name="organisms" value="9606" />
</source>
</sources>
<post-processing/>
</project>

For details on writing your own data source, see :doc:`/database/data-sources/custom/index`
<source name="ncbi-gene" type="ncbi-gene">
<property name="src.data.dir" location="/DATA/ncbi" />
<property name="organisms" value="9606" />
</source>

See :doc:`/database/data-sources/custom/index` if you want to load your own data into your mine.

You can also add postprocesses to your build, here are common ones:

Expand Down

0 comments on commit f0f3201

Please sign in to comment.