Skip to content

Commit 52bcde2

Browse files
committed
fix URL for gencode.v19.annotation.gtf.gz; add bin recipe to Makefile in order to install Bedops
1 parent 42c4360 commit 52bcde2

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ gencode.v27.annotation.genes.bed
44
Homo_sapiens.GRCh37.82.chr.bed
55
Homo_sapiens.GRCh38.91.chr.bed
66
gencode.v19.annotation.genes.id4.bed
7+
bin
8+
bedops_linux_x86_64-v2.4.41.tar.bz2

Makefile

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# make reference annotations for hg19 genes and gene symbols
22
# requires BEDOPS http://bedops.readthedocs.io/en/latest/content/reference/file-management/conversion/gtf2bed.html
33
SHELL:=/bin/bash
4+
PATH:=$(CURDIR)/bin:$(PATH)
45

56
# no default action to take
67
none:
78

9+
# download for the Bedops programs needed
10+
bin:
11+
wget https://github.com/bedops/bedops/releases/download/v2.4.41/bedops_linux_x86_64-v2.4.41.tar.bz2 && \
12+
tar xjvf bedops_linux_x86_64-v2.4.41.tar.bz2
13+
814
# make all sets of annotations
915
all: gencode-hg19 ensembl-hg19 gencode-hg38 ensembl-hg38 ensembl-mm10
1016

@@ -25,8 +31,8 @@ ensembl-mm10: Mus_musculus.GRCm38.91.chr.bed
2531

2632
# ~~~~~ GENCODE hg19 ~~~~~ #
2733
# generate the Gencode hg19 annotations .bed file
28-
gencode.v19.annotation.gtf.gz:
29-
wget ftp://ftp.sanger.ac.uk/pub/gencode/Gencode_human/release_19/gencode.v19.annotation.gtf.gz
34+
gencode.v19.annotation.gtf.gz:
35+
wget https://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/release_19/gencode.v19.annotation.gtf.gz
3036

3137
gencode.v19.annotation.genes.bed: gencode.v19.annotation.gtf.gz
3238
zcat gencode.v19.annotation.gtf.gz | grep -w gene | convert2bed --input=gtf - > gencode.v19.annotation.genes.bed
@@ -36,13 +42,13 @@ gencode.v19.annotation.genes.id4.bed: gencode.v19.annotation.genes.bed
3642

3743
# ~~~~~ GENCODE hg38 ~~~~~ #
3844
# generate the Gencode hg38 annotations .bed file
39-
gencode.v27.annotation.gtf.gz:
45+
gencode.v27.annotation.gtf.gz:
4046
wget ftp://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/release_27/gencode.v27.annotation.gtf.gz
4147

4248
gencode.v27.annotation.genes.bed: gencode.v27.annotation.gtf.gz
4349
zcat gencode.v27.annotation.gtf.gz | grep -w gene | awk '{ if ($$0 ~ "transcript_id") print $$0; else print $$0" transcript_id \"\";"; }' | convert2bed --input=gtf - > gencode.v27.annotation.genes.bed
4450

45-
gencode.v41.annotation.gtf.gz:
51+
gencode.v41.annotation.gtf.gz:
4652
wget ftp://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/release_41/gencode.v41.annotation.gtf.gz
4753

4854
gencode.v41.annotation.genes.bed: gencode.v41.annotation.gtf.gz
@@ -51,7 +57,7 @@ gencode.v41.annotation.genes.bed: gencode.v41.annotation.gtf.gz
5157

5258
# ~~~~~ ENSEMBL hg19 ~~~~~ #
5359
# generate the Ensembl hg19 annotations .bed file
54-
Homo_sapiens.GRCh37.82.chr.gtf.gz:
60+
Homo_sapiens.GRCh37.82.chr.gtf.gz:
5561
wget ftp://ftp.ensembl.org/pub/grch37/release-84/gtf/homo_sapiens/Homo_sapiens.GRCh37.82.chr.gtf.gz
5662

5763
# remove comment lines
@@ -116,6 +122,3 @@ Mus_musculus.GRCm38.91.chr.bed: Mus_musculus.GRCm38.91.chr.gtf
116122
Homo_sapiens.GRCh37.82.chr.gtf.gz \
117123
Mus_musculus.GRCm38.91.chr.gtf.gz \
118124
Mus_musculus.GRCm38.91.chr.gtf
119-
120-
121-

0 commit comments

Comments
 (0)