File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ gencode.v19.annotation.genes.bed
33gencode.v27.annotation.genes.bed
44Homo_sapiens.GRCh37.82.chr.bed
55Homo_sapiens.GRCh38.91.chr.bed
6+ gencode.v19.annotation.genes.id4.bed
Original file line number Diff line number Diff line change 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
3+ SHELL: =/bin/bash
34
45# no default action to take
56none :
67
78# make all sets of annotations
89all : gencode-hg19 ensembl-hg19 gencode-hg38 ensembl-hg38 ensembl-mm10
910
10- gencode-hg19 : gencode.v19.annotation.genes.bed
11+ gencode-hg19 : gencode.v19.annotation.genes.id4. bed
1112
1213gencode-hg38 : gencode.v27.annotation.genes.bed
1314
@@ -28,8 +29,8 @@ gencode.v19.annotation.gtf.gz:
2829gencode.v19.annotation.genes.bed : gencode.v19.annotation.gtf.gz
2930 zcat gencode.v19.annotation.gtf.gz | grep -w gene | convert2bed --input=gtf - > gencode.v19.annotation.genes.bed
3031
31-
32-
32+ gencode.v19.annotation.genes.id4.bed : gencode.v19.annotation.genes.bed
33+ paste <( cut -f1-3 gencode.v19.annotation.genes.bed ) <( grep -o ' gene_name ".*" ' gencode.v19.annotation.genes.bed | sed -e ' s|gene_name ||g ' | cut -d ' ; ' -f1 | tr -d ' " ' ) <( cut -f4- gencode.v19.annotation.genes.bed ) > gencode.v19.annotation.genes.id4.bed
3334
3435# ~~~~~ GENCODE hg38 ~~~~~ #
3536# generate the Gencode hg38 annotations .bed file
You can’t perform that action at this time.
0 commit comments