wiki:BIOS_ReferenceFiles

Reference and annotation

File naming policy

Inlcude md5sum files by running '$md5sum [filename] > [filename].md5sum'.

Annotation source: Ensembl v.71

We use Ensembl as our primary source of annotation and fix it at v.71 (link to archived v.71 BioMart). To get this version of Ensemble in the R package biomaRt:
ensembl = useMart(biomart = "ENSEMBL_MART_ENSEMBL", host = "apr2013.archive.ensembl.org", path = "/biomart/martservice" , dataset = "hsapiens_gene_ensembl") G=getBM(c("chromosome_name", "start_position","end_position","ensembl_gene_id"), mart=ensembl) (currently unavailable..). Reference files are stored at the VM here: /virdir/Scratch/RP3_data/reference/. Locations of genes measured by RNA-seq: /virdir/Scratch/RP3_data/reference/gene_locations_v71.txt

This table describes the reference and annotation files.

NameLocationContactNotes
Transcript GTFsrm://srm.grid.sara.nl/pnfs/grid.sara.nl/data/bbmri.nl/RP3/dzhernakova/Homo_sapiens.GRCh37.71.cut.sorted.gtf.gzdasha.zhernakova@gmail.com1
Meta Exon GTFsrm://srm.grid.sara.nl/pnfs/grid.sara.nl/data/bbmri.nl/RP3/dzhernakova/meta-exons_v71_cut_sorted_05-06-13.gtf.gzdasha.zhernakova@gmail.com2
Masked genomesrm://srm.grid.sara.nl/pnfs/grid.sara.nl/data/bbmri.nl/RP3/dzhernakova/maskedGenome/dasha.zhernakova@gmail.com3
STAR indexsrm://srm.grid.sara.nl/pnfs/grid.sara.nl/data/bbmri.nl/RP3/dzhernakova/maskedGenome/STARindex/dasha.zhernakova@gmail.com4

Reference and annotation files description.

1. Transcript annotation.

To create this transcript annotation the human gtf annotation was downloaded from Ensembl v.71 (containing Gencode v.16: ftp://ftp.ensembl.org/pub/release-71/gtf/homo_sapiens/Homo_sapiens.GRCh37.71.gtf.gz). Only genes on chromosomes for 1-22, X, Y, MT were retained. Then for each chromosome genes were sorted by their start position.

2. Meta-exon annotation.

To create the meta-exon annotation we merged all overlapping exons from Ensembl version 71 (see Transcript annotation section) using mergeBed tool from BEDTools suite. Overlapping exons belonging to different genes or different strands were also merged into one meta-exon. See Meta-exon annotation documentation for a detailed description on how the meta-exon annotation has been created.

See Meta-exon annotation 05-06-13 for issues with this file.

3. Masked genome.

To mask the genome we took all SNPs called in GoNL project that had a MAF > 1% and replaced them with “N” in genome fasta files using maskFastaFromBed tool from BEDTools suite.

4. STAR genome index.

To make the masked genome index we run STAR in genomeGenerate mode on the masked genome fasta files, setting the --sjdbOverhang parameter to 100 and using the transcript annotation from Ensembl v.71.

GTF to BED conversion

Paste magic to get from the GTF to required BED format with columns in correct order for downstream quantification.

paste <(cut -f1,4,5 meta-exons_v71_cut_sorted_05-06-13.gtf)  <(cut -f9 meta-exons_v71_cut_sorted_05-06-13.gtf | cut -d';' -f2) | paste - <(cut -f9 meta-exons_v71_cut_sorted_05-06-13.gtf ) > meta-exons_v71_cut_sorted_05-06-13.bed 
Last modified 8 years ago Last modified on Oct 25, 2016 12:23:39 PM