Skip to content

Commit 0ec5c94

Browse files
committed
Docs update
1 parent e4621c6 commit 0ec5c94

65 files changed

Lines changed: 2892 additions & 375 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_sources/check-recipe.rst.txt

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Example
4848
#!/bin/sh
4949
set -eo pipefail -o nounset
5050
wget --quiet --no-check-certificate \
51+
-O hg19-phastcons-ucsc-v1.bw \
5152
http://hgdownload.cse.ucsc.edu/goldenpath/hg19/phastCons100way/hg19.100way.phastCons.bw
5253

5354
* Using :code:`ggd make-recipe` to create a ggd recipe::
@@ -56,58 +57,58 @@ Example
5657
--author mjc --ggd_version 1 \
5758
--data_version 09-Feb-2014 \
5859
--summary 'phastCons scores for MSA of 99 genomes to hg19' \
59-
-e hg19.100way.phastCons.bw -k phastCons \
60-
-k conservation get_data.sh
60+
-e hg19-phastcons-ucsc-v1.bw -k phastCons \
61+
-k conservation phastcons-ucsc get_data.sh
6162

62-
* A new directory called **hg19-phastcons** is now present in the current working directory
63-
* The **hg19-phastcons** directory contains three files: **meta.yaml**, **post-link.sh**, and **recipe.sh**
64-
* Lets say the path to **hg19-phastcons** is ``/user/home/hg19-phastcons/``
63+
* A new directory called **hg19-phastcons-ucsc-v1** is now present in the current working directory
64+
* The **hg19-phastcons-ucsc-v1** directory contains three files: **meta.yaml**, **post-link.sh**, and **recipe.sh**
65+
* Lets say the path to **hg19-phastcons-ucsc-v1** is ``/user/home/hg19-phastcons-ucsc-v1/``
6566

66-
* Using :code:`ggd check-recipe` we will build, install, and test the new **hg19-phastcons** recipe::
67+
* Using :code:`ggd check-recipe` we will build, install, and test the new **hg19-phastcons-ucsc-v1** recipe::
6768

68-
$ ggd check-recipe /user/home/hg19-phastcons/
69+
$ ggd check-recipe /user/home/hg19-phastcons-ucsc-v1/
6970

7071
No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
7172
WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
7273
INFO:conda_build.variants:Adding in variants from internal_defaults
73-
INFO:conda_build.metadata:Attempting to finalize metadata for hg19-phastcons
74-
INFO:conda_build.build:Packaging hg19-phastcons
75-
INFO:conda_build.build:Packaging hg19-phastcons-1-0
76-
No files or script found for output hg19-phastcons
77-
WARNING:conda_build.build:No files or script found for output hg19-phastcons
78-
/TMP/hg19-phastcons-1-0.tar.bz2: C1115 Found invalid license "None" in info/index.json
79-
/TMP/hg19-phastcons-1-0.tar.bz2: C1134 Found pre/post link file "bin/.hg19-phastcons-post-link.sh" in archive
74+
INFO:conda_build.metadata:Attempting to finalize metadata for hg19-phastcons-ucsc-v1
75+
INFO:conda_build.build:Packaging hg19-phastcons-ucsc-v1
76+
INFO:conda_build.build:Packaging hg19-phastcons-ucsc-v1-1-0
77+
No files or script found for output hg19-phastcons-ucsc-v1
78+
WARNING:conda_build.build:No files or script found for output hg19-phastcons-ucsc-v1
79+
/TMP/hg19-phastcons-ucsc-v1-1-0.tar.bz2: C1115 Found invalid license "None" in info/index.json
80+
/TMP/hg19-phastcons-ucsc-v1-1-0.tar.bz2: C1134 Found pre/post link file "bin/.hg19-phastcons-ucsc-v1-post-link.sh" in archive
8081
INFO:conda_build.variants:Adding in variants from /TMP/info/recipe/conda_build_config.yaml
8182
Solving environment: done
8283

8384
## Package Plan ##
8485

85-
environment location: /scratch/ucgd/lustre/work/u1138933/anaconda2
86+
environment location: <conda root>
8687

8788
added / updated specs:
88-
- hg19-phastcons
89+
- hg19-phastcons-ucsc-v1
8990

9091

9192
The following packages will be downloaded:
9293

9394
package | build
9495
---------------------------|-----------------
95-
hg19-phastcons-1 | 0 5 KB local
96+
hg19-phastcons-ucsc-v1-1 | 0 5 KB local
9697

9798
The following NEW packages will be INSTALLED:
9899

99-
hg19-phastcons: 1-0 local
100+
hg19-phastcons-ucsc-v1: 1-0 local
100101

101102

102103
Downloading and Extracting Packages
103-
hg19-phastcons-1 | 5 KB | ############################ | 100%
104+
hg19-phastcons-ucsc-v1-1 | 5 KB | ############################ | 100%
104105
Preparing transaction: done
105106
Verifying transaction: done
106107
Executing transaction: done
107108
modified files:
108-
:: /<conda root>/share/ggd/Homo_sapiens/hg19/hg19-phastcons/1/hg19.100way.phastCons.bw
109+
:: /<conda root>/share/ggd/Homo_sapiens/hg19/hg19-phastcons-ucsc-v1/1/hg19-phastcons-ucsc-v1.bw
109110

110-
checking /scratch/ucgd/lustre/work/u1138933/anaconda2/share/ggd/Homo_sapiens/hg19/hg19-phastcons/1/hg19.100way.phastCons.bw
111+
checking <conda root>/share/ggd/Homo_sapiens/hg19/hg19-phastcons-ucsc-v1/1/hg19-phastcons-ucsc-v1.bw
111112

112113
****************************
113114
* Successful recipe check! *

_sources/contribute-recipe.rst.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ The following will outline steps used to create the hg19-gaps ggd data recipe:
5858
| gzip -dc \
5959
| awk -v OFS="\t" 'BEGIN {print "#chrom\tstart\tend\tsize\ttype\tstrand"} {print $2,$3,$4,$7,$8,"+"}' \
6060
| gsort /dev/stdin $genome \
61-
| bgzip -c > gaps.bed.gz
61+
| bgzip -c > hg19-gaps-ucsc-v1.bed.gz
6262

63-
tabix gaps.bed.gz
63+
tabix hg19-gaps-ucsc-v1.bed.gz
6464

6565
* In this data processing script please change the resulting data file names to be short and include all necessary
6666
genomic file extentions. (See the NOTE bellow)
@@ -95,10 +95,10 @@ Example:
9595
$ ggd make-recipe -s Homo_sapiens -g hg19 --author mjc \
9696
--ggd_version 1 --data_version 27-Apr-2009 \
9797
--summary 'Assembly gaps from USCS' \
98-
-k gaps -k region gaps hg19_data_recipe.sh
98+
-k gaps -k region gaps-ucsc hg19_data_recipe.sh
9999

100100
The :code:`ggd make-recipe` tool transforms the bash script you created into a data recipe. Running the above code will create
101-
a data recipe called *hg19-gaps*, which will be a directory and will contain three files. For more information on the
101+
a data recipe called *hg19-gaps-ucsc-v1*, which will be a directory and will contain three files. For more information on the
102102
:code:`ggd make-recipe` command see :ref:`make-recipe <ggd-make-recipe>`.
103103

104104
4. Build, install, and check the data recipe
@@ -113,11 +113,11 @@ Example:
113113

114114
Using the hg19-gaps recipe created in step 3, run the following command::
115115

116-
$ ggd check-recipe hg19-gaps
116+
$ ggd check-recipe hg19-gaps-ucsc-v1
117117

118118
Or if you are in a different directory on your machine run::
119119

120-
$ ggd check-recipe <Path_To_hg19-gaps>
120+
$ ggd check-recipe <Path_To_hg19-gaps-ucsc-v1>
121121

122122
This command will build, install, and check the validity of the new ggd data recipe.
123123
For more information about :code:`ggd check-recipe` see :ref:`check-recipe <ggd-check-recipe>`
@@ -146,14 +146,14 @@ The recipes file convention is as follows:
146146

147147
For the hg19-gaps recipe above you would use the following commands::
148148

149-
$ mv hg19-gaps /<forked ggd-recipes>/recipes/genomics/Homo_sapiens/hg19/
149+
$ mv hg19-gaps-ucsc-v1 /<forked ggd-recipes>/recipes/genomics/Homo_sapiens/hg19/
150150

151151
Once the recipe is there you will need to add the recipe to your forked ggd-recipe repo.
152152
Navigate to the forked ggd-recipe directory and use the following commands:
153153

154154
* Add the recipe to the git repo::
155155

156-
$ git add /recipes/genomics/Homo_sapiens/hg19/hg19-gaps/
156+
$ git add /recipes/genomics/Homo_sapiens/hg19/hg19-gaps-ucsc-v1/
157157

158158
* Commit the addition to the repo (A text editor will open up. Add a comment about the new recipe and save it)::
159159

_sources/ggd-search.rst.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ Some examples of using the `ggd search` tool:
8282
8383
$ ggd search -t reference
8484
85-
grch37-reference-genome
85+
grch37-reference-genome-1000g-v1
8686
Summary: GRCh37 reference genome from 1000 genomes
8787
Species: Homo_sapiens
8888
Genome Build: GRCh37
8989
Keywords: ref, reference
9090
Data Version: phase2_reference
9191
9292
To install run:
93-
ggd install grch37-reference-genome
93+
ggd install grch37-reference-genome-1000g-v1
9494
95-
grch38-reference-genome
95+
grch38-reference-genome-ensembl-v1
9696
9797
9898
2. Simple example with two search terms:
@@ -102,26 +102,26 @@ Some examples of using the `ggd search` tool:
102102
103103
$ ggd search -t repeat masker
104104
105-
hg38-repeatmasker
105+
hg38-repeatmasker-ucsc-v1
106106
Summary: RepeatMasker track from UCSC
107107
Species: Homo_sapiens
108108
Genome Build: hg38
109109
Keywords: rmsk, region
110110
Data Version: 06-Mar-2014
111111
112112
To install run:
113-
ggd install hg38-repeatmasker
113+
ggd install hg38-repeatmasker-ucsc-v1
114114
115115
116-
hg19-repeatmasker
116+
hg19-repeatmasker-ucsc-v1
117117
Summary: RepeatMasker track from UCSC
118118
Species: Homo_sapiens
119119
Genome Build: hg19
120120
Keywords: rmsk, region
121121
Data Version: 27-Apr-2009
122122
123123
To install run:
124-
ggd install hg19-repeatmasker
124+
ggd install hg19-repeatmasker-ucsc-v1
125125
126126
127127
3. Example using ``-g``, ``-s``, and ``-k`` flags to filter the results:
@@ -131,12 +131,12 @@ Some examples of using the `ggd search` tool:
131131
132132
$ ggd search -t reference genome -g grch37 -s Homo_sapiens -k ref
133133
134-
grch37-reference-genome
134+
grch37-reference-genome-1000g-v1
135135
Summary: GRCh37 reference genome from 1000 genomes
136136
Species: Homo_sapiens
137137
Genome Build: GRCh37
138138
Keywords: ref, reference
139139
Data Version: phase2_reference
140140
141141
To install run:
142-
ggd install grch37-reference-genome
142+
ggd install grch37-reference-genome-1000g-v1

_sources/index.rst.txt

Lines changed: 48 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,37 @@ Example:
5959
6060
$ ggd search -t reference genome
6161
62-
grch37-reference-genome
63-
Summary: GRCh37 reference genome from 1000 genomes
64-
Species: Homo_sapiens
65-
Genome Build: GRCh37
66-
Keywords: ref, reference
67-
Data Version: phase2_reference
68-
69-
To install run:
70-
ggd install grch37-reference-genome
71-
72-
grch38-reference-genome-ensembl
73-
Summary: GRCh37 reference genome from Ensembl
74-
Species: Homo_sapiens
75-
Genome Build: GRCh38
76-
Keywords: ref, reference
77-
Data Version: Release-95
78-
79-
To install run:
80-
ggd install grch38-reference-genome-ensembl
62+
grch37-reference-genome-1000g-v1
63+
Summary: GRCh37 reference genome from 1000 genomes
64+
Species: Homo_sapiens
65+
Genome Build: GRCh37
66+
Keywords: ref, reference, fasta-file
67+
Data Version: phase2_reference
68+
69+
To install run:
70+
ggd install grch37-reference-genome-1000g-v1
71+
72+
73+
grch37-reference-genome-ensembl-v1
74+
Summary: The GRCh37 reference genome from Ensembl. Release 75. Primary Assembly file
75+
Species: Homo_sapiens
76+
Genome Build: GRCh37
77+
Keywords: ref, reference, Ensembl, Release75
78+
Data Version: Release-75
79+
80+
To install run:
81+
ggd install grch37-reference-genome-ensembl-v1
82+
83+
84+
grch38-reference-genome-ensembl-v1
85+
Summary: The GRCh38 reference genome from Ensembl. Release 95. Primary Assembly file
86+
Species: Homo_sapiens
87+
Genome Build: GRCh38
88+
Keywords: ref, reference, genome, Ensembl
89+
Data Version: Release-95
90+
91+
To install run:
92+
ggd install grch38-reference-genome-ensembl-v1
8193
8294
. . .
8395
@@ -86,41 +98,41 @@ Example:
8698
# (See ggd install)
8799
#******************************
88100
89-
$ ggd install grch38-reference-genome-ensembl
101+
$ ggd install grch38-reference-genome-ensembl-v1
90102
91103
92-
Looking for grch38-reference-genome-ensembl in the 'ggd-genomics' channel
104+
Looking for grch38-reference-genome-ensembl-v1 in the 'ggd-genomics' channel
93105
94-
grch38-reference-genome-ensembl exists in ggd-genomics
106+
grch38-reference-genome-ensembl-v1 exists in ggd-genomics
95107
96-
grch38-reference-genome-ensembl is not installed on your system
108+
grch38-reference-genome-ensembl-v1 is not installed on your system
97109
98-
grch38-reference-genome-ensembl has not been installed by conda
110+
grch38-reference-genome-ensembl-v1 has not been installed by conda
99111
100-
Installing grch38-reference-genome-ensembl
112+
Installing grch38-reference-genome-ensembl-v1
101113
Solving environment:
102114
103115
## Package Plan ##
104116
105117
environment location: <conda root>
106118
107119
added / updated specs:
108-
- grch38-reference-genome-ensembl
120+
- grch38-reference-genome-ensembl-v1
109121
110122
111123
The following packages will be downloaded:
112124
113125
package | build
114126
------------------------------------|-----------------
115-
grch38-reference-genome-ensembl | 0 6 KB ggd-genomics
127+
grch38-reference-genome-ensembl-v1 | 0 6 KB ggd-genomics
116128
117129
The following NEW packages will be INSTALLED:
118130
119131
grch38-reference-genome-ensembl: 1-0 ggd-genomics
120132
121133
122134
Downloading and Extracting Packages
123-
grch38-reference-genome-ensembl | 6 KB | ###########################################################################################
135+
grch38-reference-genome-ensembl-v1 | 6 KB | ###########################################################################################
124136
Preparing transaction: done
125137
Verifying transaction: done
126138
Executing transaction: done
@@ -137,17 +149,21 @@ Example:
137149
138150
***************************
139151
Active environment variables:
140-
> $ggd_grch38_reference_genome-ensembl
152+
> $ggd_grch38_reference_genome-ensembl_v1_dir
153+
> $ggd_grch38_reference_genome-ensembl_v1_file
141154
***************************
142155
143-
$ ggd list-files grch38-reference-genome-ensembl
156+
$ ggd list-files grch38-reference-genome-ensembl-v1
144157
145-
<conda root>/ share/ggd/Homo_sapiens/GRCh38/grch38-reference-genome-ensembl/1/grch38.fa
146-
<conda root>/share/ggd/Homo_sapiens/GRCh38/grch38-reference-genome-ensembl/1/grch38.fa.fai
158+
<conda root>/ share/ggd/Homo_sapiens/GRCh38/grch38-reference-genome-ensembl-ensembl-v1/1/grch38.fa
159+
<conda root>/share/ggd/Homo_sapiens/GRCh38/grch38-reference-genome-ensembl-ensembl-v1/1/grch38.fa.fai
147160
148161
149162
#******************************
150163
#4. Use files
164+
# To use the downloaded data packages you can use the full file path from running `ggd list-files`
165+
# or the environment variables created during installation
166+
# For more info see the `Using installed data` tab.
151167
#******************************
152168
153169

_sources/install.rst.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,40 +82,40 @@ Examples
8282

8383
.. code-block:: bash
8484
85-
$ ggd install hg19-gaps
85+
$ ggd install hg19-gaps-ucsc-v1
8686
87-
Looking for hg19-gaps in the 'ggd-genomics' channel
87+
Looking for hg19-gaps-ucsc-v1 in the 'ggd-genomics' channel
8888
89-
hg19-gaps exists in ggd-genomics
89+
hg19-gaps-ucsc-v1 exists in ggd-genomics
9090
91-
hg19-gaps is not installed on your system
91+
hg19-gaps-ucsc-b1 is not installed on your system
9292
93-
hg19-gaps has not been installed by conda
93+
hg19-gaps-ucsc-v1 has not been installed by conda
9494
95-
Installing hg19-gaps
95+
Installing hg19-gaps-uscs-v1
9696
Solving environment:
9797
9898
## Package Plan ##
9999
100100
environment location: <conda root>
101101
102102
added / updated specs:
103-
- hg19-gaps
103+
- hg19-gaps-ucsc-b1
104104
105105
106106
The following packages will be downloaded:
107107
108108
package | build
109109
---------------------------|----------
110-
hg19-gaps-1 | 0 6 KB ggd-genomics
110+
hg19-gaps-uscs-v1 | 0 6 KB ggd-genomics
111111
112112
The following NEW packages will be INSTALLED:
113113
114-
hg19-gaps: 1-0 ggd-genomics
114+
hg19-gaps-ucsc-v1: 1-0 ggd-genomics
115115
116116
117117
Downloading and Extracting Packages
118-
hg19-gaps-1 | 6 KB | ####################### | 100%
118+
hg19-gaps-ucsc-v1 | 6 KB | ####################### | 100%
119119
Preparing transaction: done
120120
Verifying transaction: done
121121
Executing transaction: done

0 commit comments

Comments
 (0)