From 99d83ff820b988ba6d626158a49dff211c5ac543 Mon Sep 17 00:00:00 2001 From: David Johnson Date: Wed, 26 Oct 2016 23:01:47 +0100 Subject: [PATCH] Update docs for new feature in mtbls --- docs/importdata.rst | 47 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/docs/importdata.rst b/docs/importdata.rst index ae33e24a..b43e50fa 100644 --- a/docs/importdata.rst +++ b/docs/importdata.rst @@ -4,18 +4,17 @@ Importing data into ISA formats We have provided a number of modules that allow you to import data into ISA formats from well-known databases or services. ----------------------------------------------------- -Importing SRA from the MetaboLights database, to ISA ----------------------------------------------------- - -Notice: this method depends on SAXON XSLT Processor +------------------------------------------------ +Importing from the MetaboLights database, to ISA +------------------------------------------------ -To import an MetaboLights study from the `MetaboLights `_ as ISA-Tab files, provide an MetaboLights accession number: +To import an MetaboLights study from the `MetaboLights `_ as ISA-Tab files, +provide an MetaboLights accession number: .. code-block:: python - from isatools.io import mtbls - tmp_dir = MTBLS.get_study('MTBLS1') + from isatools.io import mtbls as MTBLS + tmp_dir = MTBLS.get('MTBLS1') This method downloads the ISA-Tab files for a study, and returns a string path to a temporary directory containing the ISA-Tab files. @@ -23,18 +22,44 @@ To import an MetaboLights study from the `MetaboLights `_ as ISA-Tab files, provide an ENA accession number and your path to the SAXON JAR file: +To import an SRA study from the `European Nucleotide Archive (ENA) `_ as ISA-Tab files, +provide an ENA accession number and your path to the SAXON JAR file: .. code-block:: python