When ddipy is installed correctly it should be available on your path through the command omicsdi. This command line interface makes it possible to list all the data links and download the data itself related to an accession number. The tool has one mandatory parameter ‘accession number’ and several options:
omicsdi_fetcher [OPTIONS] ACC_NUMBER
Option
Type
Description
–version
FLAG
Show the version and exit.
-d, –download
FLAG
Use this flag to download the files in the current directory or a specified output directory
-v, –verbose
FLAG
Use this flag to print identifiers and file extension along with the urls
-i, –input
LIST
This option allows you to download the a selection of the files based on comma separated list of identifiers
-o, –output
PATH
Output directory when downloading files (default: CWD)
-h, –help
FLAG
Show this message and exit.
Examples
A microarray dataset with ftp links:
omicsdi E-MTAB-5612
Downloading the microarray dataset with ftp links:
omicsdi E-MTAB-5612 -d
A BioModels dataset with https links and exposing identifiers for each file link:
omicsdi BIOMD0000000048 -v
Downloading a selection of the files belonging to an accession number based on a list of identifiers as input:
ddipy
An Python package to obtain data from the Omics Discovery Index (OmicsDI. It uses the RESTful Web Services at OmicsDI WS for that purpose.
Installation
we need to install
ddipy:Examples
This example shows how retrieve details of one dataset by using the Python package ddipy.
This example shows a search for all the datasets for human.
This example shows a search for all the datasets for cancer human and loop over the pagination
This example is a query to retrieve all the datasets that reported the UniProt protein P21399 as identified.
This example is a query to find all the datasets where the gene ENSG00000147251 is reported as differentially expressed.
This example is a query to retrieve all databases recorded in OmicsDI
This example is retrieving JSON+LD for dataset page
This example is retriveing JSON+LD for home page
This example is a query for statistics about the number of datasets per Tissue
This example is a query for statistics about the number of datasets per dieases
This example for searching dictionary terms
This example for retrieving frequently terms from the repo
Find out about us in our GitHub profiles:
Yasset Perez-Riverol
Pan Xu
CLI for downloading files
When ddipy is installed correctly it should be available on your path through the command
omicsdi. This command line interface makes it possible to list all the data links and download the data itself related to an accession number. The tool has one mandatory parameter ‘accession number’ and several options:Examples
A microarray dataset with ftp links:
Downloading the microarray dataset with ftp links:
A BioModels dataset with https links and exposing identifiers for each file link:
Downloading a selection of the files belonging to an accession number based on a list of identifiers as input: