Home
HIPPIE User Manual
Contents
1. HIPPIE User Manual vO 0 2 beta 2015 4 26 Yih Chii Hwang yihhwang at mail med upenn edu OVERVIEW OF HIPPIE o Flowchart of HIPPIE o Requirements PREPARE DIRECTORY STRUCTURE FOR HIPPIE EXECUTION o Library sample directory and expected input fastq filename format o Log directory SHOME hippie stdout CREATE CONFIGURATION FILE PREPARE THE REFERENCE GENOME INSTALL PYSAM PYTHON PACKAGE INSTALL MATH CDF PERL PACKAGE RUN HIPPIE THE PHASE MODE PIPELINE EXECUTION THE TASK MODE RUNNING SELECTED PORTIONS OF THE PIPELINE THE DEBUG MODE DEBUGGING OPTION PHASES AND TASKS O Phase 1 Read Mapping O Phase 2 Quality Control o Phase 3 Peak identification and functional annotation o Phase 4 Prediction of enhancer target gene interaction o Phase 5 Character analysis of enhancer target gene interactions THREE MAIN OUTPUT FILES AND THEIR FORMAT o l Restriction fragment based interactions o Il Interactions of promoter and their interacting partner o Ill Candidate enhancer element CEE and their target gene Overview of HIPPIE HIPPIE High throughput Identification Pipeline for Promoter Interacting Enhancer elements is a software package that takes batches of Hi C raw reads as input and ultimately identifies enhancer target target gene relationships by mapping the reads to reference genome calling peak fragments detecting DNA DNA interactions with quality controls and integrating functional epigenomics knowledge It is design
2. e libraryl sh p1 and not to run them as separated tasks If necessary users can run the three tasks as below i Load the genome to the shared memory of each node for mapping cd path to Hi C_Project libraryl libraryl sh t loadGenome The required memory will be automatically determined by the size of the genome e g hg19 requires 27 2GB and Drosophila Melanogaster requires 2GB of memory ii Read mapping to genome using STAR Task loadGenome is its prerequisite task libraryl sh t starMapping The output files are stored in the sam directory iii Remove the genome from the shared memory of each node after mapping is done Task starMapping is its prerequisite task libraryl sh t rmGenome Phase 2 Quality Control top Phase 2 takes the aligned reads and further processes them with mapping quality control First it rescues the chimeric read that span the ligation sites with reasonable distances and strand combinations and transforms the bam file to a bed file Then it removes the duplicates that may be due to PCR artifacts discards read mapped to random contigs i Basic statistics for the mapped alignment file Task samtoolsMergeBam of phase 1 is its prerequisite task cd path to Hi C_Project libraryl libraryl sh t pairingBam The output files are stored in the bed directory SRRXXXX_1 bed SRRXXXXX represent their original fastq file name ii Remove possible PCR artifacts
3. the duplicate read pairs Task pairingBam is its prerequisite task libraryl sh t rmdupBed The output files are stored in the bed directory SRRXXXXXXX 1 _ rmdup bed SRRXXXXXXX represents their original fastq file name Phase 3 Peak identification and functional annotation jytop i Calculate the distance of each pair of reads to their closest upstream or downstream restriction sites and classify the reads to specific read pairs or non specific read pairs based on the size selection parameter Task rmdupBed of phase 2 is its prerequisite task cd path to Hi C Project libraryl libraryl sh t getDistanceToRS The output files are stored in the bed directory SRRXXXXXXX_1_rmdup_distToRS bed SRRXXXXXXX_1_specific bed and SRRXXXXXXX_1_nonspecific bed SRRXXXXXXX represents their original fastq file name ii Aggregate the mapped reads from each fastq gz file and segregate specific and non specific reads by the distances from the read to the closest restriction site Task getDistanceToRs is its prerequisite task libraryl sh t collapseData The output files are stored in the bed directory and output files are named by the library from now on libraryl specific bed and libraryl nonspecific bed iii Sort out each read by if it participates in a specific read or non specific read pair Task collapseData is its prerequisite task libraryl sh t consecutiveReadss libraryl sh t consecutiveReadsNs The ou
4. T distance txt ii Enrichment analyses for regulatory associated histone marks within enhancer elements and other interactions and plot the enrichment bar figure Task getCeeTarget is its prerequisite task libraryl sh t histoneEnrichment libraryl sh t plotHisEnrichment The output file is stored in the out directory histone enrichment txt and libraryl histone enrichment jpg iii Enrichment analyses of GWAS hit within the enhancer elements Task getCeeTarget is its prerequisite task libraryl sh t GWASEnrichment The output file is stored in the out directory libraryl 95 GWAS enrichment txt 10 Three main output files and their format un I Restriction fragment based interactions jop Location Hi c_Project libraryl out File name s e g libraryl 95 interaction pvalue bed Column descriptions 1 fragmenti chrm start end start position is 0 based and end position is 1 based 2 fragment2 3 P value adapted from Jin et al Nature 2013 by binning GC content mappability fragment length and distance if the two partners are on the same chromosome 4 number of Hi C read pairs support the interaction 5 number of Hi C reads spreading on fragment 6 number of Hi C reads spreading on fragment2 ll Interactions of promoter and their interacting partner 105 Location Hi c_Project libraryl out File name s libraryl_ 95 partnerTogene bed Column descriptions 1 3 bed coordinates c
5. chnical condition The fastq gz files need to be stored in each individual sample s fastq sub directories e g test_ data Hi C project libraryl fastq and they need to be compressed by gzip with the file name formatted as fastg gz HIPPIE recognizes paired end fastq files with the name formatted as filename _1 fastq gz with filename _2 fastq gz or the Illumina convention file name format as filePrefix _R1_ filePosttix fastq gz with filePrefix _R2_ filePostfix fastq gz Note the two fastq gz files of a pair need to be the same format as each other Log directory SHOME hippie_stdout jtop Under Open Grid Scheduler the screen output from running jobs is redirected to a log file HIPPIE stores all such log files in a hippie stdout directory under user s home directory You need to create it before running HIPPIE mkdir p hippie stdout Create configuration file n Please refer to the template file named project _configure cfg for the example Use this file to specify the project specific characteristics and information of the libraries sequenced including the cell types the restriction enzyme used if the enzyme is a 4bp cutter or 6bp cutter the size selection parameter the reference genome epigenetics tracks ChIP seq peaks DNase seq hotspots as well as the research project name We suggest users separate the analyses of Hi C for different organisms or species by creating different project directories T
6. ct Hi C bias from the interacting contacts findPeakInteraction of phase 4 is its prerequisite task libraryl sh t correctHiCBias The output file is stored in the bed directory for intra chromosomal interactions chr 95 reads interaction pvalue txt and for inter chromosomal interactions libraryl_ interChrm_95 reads interaction pvalue txt iii Identify promoter annotated peak peak interaction correctHiCBias of phase 4 is its prerequisite task libraryl sh t findPromoterInteraction The output file is stored in the bed directory for intra chromosomal interactions chr 95 promoter annotated interaction promoterAnno txt and chr 95 promoter annotated promoterInteraction pvalue txt and for inter chromosomal interactions libraryl_ 95 interChrm_promoterInteraction txt and libraryl_ interChrm_95 reads interaction pvalue txt iv Identify promoter interacting enhancer elements also known as candidate enhancer elements CEE Task findPromoterInteraction is its prerequisite task libraryl sh t getCeeTarget T From now on the output files are stored in the out directory libraryl 95 CEE gene bed Phase 5 Characters analysis of enhancer target gene interactions 1 5 i Calculate distance distribution between enhancers and their targets closest genes Task getCeeTarget is its prerequisite task libraryl sh t ETdistance The output file is stored in the out directory libraryl 95 E
7. ed to be executing on Open Grid Scheduler system with memory and error control as well as prerequisite control Flowchart of HIPPIE top A complete HIPPIE workflow run consists of four phases outlined in the following flowchart Figure 1 Hi C FASTQ files PHASE PHASE II PHASE III A 5 Identification of Read Mapping Quality Control Hi C Peaks Annotated Peaks Enhancer target PHASE V Characterization of Long Range Regulations Epigenomics Data DNAsel HS Histone Modification gt PHASE IV Enhancer Target Gene Prediction Figure 1 HIPPIE flowchart Requirements ito STAR https github com alexdobin STAR releases tested in 2 4 0h SAMtools http sourceforge net projects samtools files tested in 0 1 19 44428cd BEDtools https github com arq5x bedtools2 tested in 2 19 1 R http www r project org tested in 3 1 0 Used R libraries are o gplots http cran r project org web packages qplots index html e Python tested on python2 6 o pysam hittps github com pysam developers pysam tested in 0 8 2 1 e Perl tested on 5 10 1 With modules o Math CDF qw all http search cpan org callahan Math CDF 0 1 CDF pm o POSIX qwiceil floor o List Util e awk zcat sort Please set the absolute path for STAR SAMtools Bedtools R Python and PERLSLIB e g path to Math CDF in hippie ini i e path to hippie hippie ini Prepare director
8. his can prevent confusion of the reference genome and clarify the epigenetics data usage Prepare the reference genome o Please first prepare the reference genome sequence in FASTA format fa file and run sTAR with option of runMode genomeGenerate to generate the index of the reference genome See below example for human genome hg19 assembly 1 Find the reference genome at http ngdownload test cse ucsc edu goldenPath hg19 bigZips hg19 2bit and use the UCSC utility program twoBitToFa to extract the fa from this file from http ngdownload cse ucsc edu admin exe linux x86_64 2 Generate the index file with the corresponding STAR version for the reference genome e g hg19 fa for STAR alignment STAR runMode genomeGenerate genomeDir genomeFastaFiles hgl19 fa The index will be generated under the same directory of hg19 fa After the index is generated set the path to the hg19 fa tO GENOME REF under in your configuration file i e project configure cfg Install pysam Python Package un HIPPIE uses python package pysam to parse the mapped bam file and translate the paired end reads to bed format To install the package use either pip install or follow the following steps 1 Please set up PYTHONPATH at home username 1ib64 python2 6 site packages export PYTHONPATH home username 1ib64 python2 6 site packages Note this step set up PYTHONPATH may be necessary before buildi
9. hr start end of the restriction fragment interacting to a promoter fragment 4 gene name symbol and the promoter coordinate e g CENPL DARS2 chr1 173793270 173794277 in the format of gene_symbol chrm start end If there are promoters sharing by multiple genes the promoter coordinates is merged and the corresponding symbols are separated by If there are multiple promoters located on the same restriction fragment the gene symbols are aggregated and separated by no promoter coordinates merging in the latter case 5 P value of the interaction 6 number of Hi C read pairs support the interaction Ill Candidate enhancer element CEE and their target gene jop All detected candidate enhancer elements and their target genes Location Hi c_Project libraryl out File name s libraryl 95 CEE _gene bed Column descriptions 1 3 bed coordinates chr start end of the restriction fragment interacting to a promoter region 4 target gene s touched by the active enhancer restriction fragment If multiple genes are targeted by the same enhancers they are aggregated and separated by 5 number of fragments with promoter overlapped targeted by this CEE Significant pairs P value lt 0 1 of enhancer and their target genes Location Hi c_Project libraryl out File name s libraryl 95 CEE gene sig bed Column descriptions Same as above 11
10. ion pvalue bed 2 Interaction of promoter gene to their partners i e libraryl 95 partnerTogene bed and 3 Candidate enhancer element and their target gene s i e libraryl 95 CEE gene sig bed for the pairs pass the significant level P lt 0 1 Library1l 95 CEE gene bed for all identified The phase mode pipeline execution un After executing hippie sh each library will have its own individual sub directories generated as well as the bash script i e libraryl sh propagated under the library directory The entire HIPPIE pipeline can be divided into five phases which can be run individually and sequentially The procedure of running each of the four phases is the same First change directory to the library directory and begin the analysis process by the phases l e phase1 p1 phase 2 p2 phase 3 p3 phase 4 p4 and phase 5 p5 The tasks of the phases are chained together and the submitted jobs are designed to run only after the prerequisite jobs are finished cd path to Hi C_Project libraryl1 libraryl sh p1 libraryl sh p2 libraryl sh p3 libraryl sh p4 libraryl sh p5 Multiple phases is also acceptable That is users can submit phase 1 through phase 5 all at once libraryl sh p1 p2 p3 p4 p5 The phase mode can operate with the debug mode details see below The task mode running selected portions of the pipeline n Task mode allows you t
11. ng and installing the package The PYTHONPATH needs to be consistent with the python version e g python2 6 you are using 2 Please download the module file e g pysam 0 8 2 1 tar gz from pypi at https pypi python org pypi pysam 3 Untar the tar gz file and follow the installation instruction We suggest installing the module under user s home directory HOME so that all cluster nodes can locate it tar jzvf pysam 0 8 2 1 tar gz cd pysam 0 8 2 1 python2 6 setup py build S python2 6 setup py install prefix SHOME Install MATH CDF Perl Package un HIPPIE uses perl package MATH CDF to estimate the P value of each interaction To install the package use either CPAN or follow the following steps 1 Please download the module file Math CDF 0 1 tar gz from CPAN at http search cpan org callahan Math CDF 0 1 CDF pm 2 Untar the tar gz file and follow the installation instruction We suggest installing the module under user s home directory SHOME so that all cluster nodes can locate it tar zxvf Math CDF 0 1 tar gz cd Math CDF 0 1 perl Makefile PL PREFIX SHOME make make install 3 Update the path to MATH CDF to PERLSLIB by simply adding the path to hippie ini export PERL5LIB PERL5LIB HOME 1ib64 perl15 Run HIPPIE p Each library has its own individual directory and sub directories as in Figure 2 Once execute the configuration file a tail
12. o run any single tasks of HIPPIE cd path to Hi C_Project libraryl libraryl sh t TASKNAME e t TASKNAME the single task to run The task mode can also operate along with the debug mode The tasks are chained together thus the 6 following jobs will only run after their consecutively prerequisite job is finished Thus one can skip the first task but consecutively submit jobs for the second task and the third task For example libraryl sh t SECOND TASKNAME libraryl sh t THIRD TASKNAME The debug mode debugging option mon Debug mode does not submit jobs Instead the full command s that would be submitted is displayed on the screen The d option must be followed by any flag that would normally submit a task or sequence of tasks such aS p1 p2 p3 or t cd path to Hi C_Project libraryl libraryl sh d p1 e q debug mode previews the qsub command that would be submitted e p runs the steps for phase 2 when preceded by d the jobs would not be submitted Instead the full command s would be displayed Debug mode works with any combination of task submitting flags cd path to Hi C_Project libraryl libraryl sh d p2 p3 libraryl sh d t annotateFragment Phases and tasks un Phase 1 Read Mapping jitop Phase 1 takes the Hi C reads fastq gz files and aligns them to the reference genome We strongly suggest users run all three tasks of phase 1 as a whole i
13. ored bash script file sh that contains all the commands to complete the analysis will be propagated to each library directory To achieve this we describe how to execute the configuration file Once you have prepared the configuration file i e project _configure cfg follow the steps below to execute it i Change directory to the project directory i e Hi c_Project cd path to Hi C_ Project ii Run HIPPIE with the initiation file i and the configuration file to generate the tailored bash script for each library hippie sh i path to hippie ini f project _configure cfg h HIPPIE HOME DIR i specifies the location of the initiation file f specifies the location of the project configuration file h HIPPIE HOME DIR optionally specify the location of the HIPPIE home directory Otherwise it would use the environment variable HIPPIE _HOM This would create the library level directories sam bed and o 5 E in hippie ini ut Under each library directory there would be a launching script with a name in this format libraryl sh In the next several sections we describe the different ways of using the launching script for each library Once the pipeline is finished the ultimate output files will be generated under out directory of each library The three main output files are 1 restriction fragment interactions i e Libraryl 95 interact
14. tput file is stored in the bed directory Libraryl consecutive m500 bed and library consecutive NS bed iv Get list of restriction fragments with number of reads Tasks consecutiveReadss and consecutiveReadsns are both its prerequisite tasks libraryl sh t getFragmentsRead The output file is stored in the bed directory HindIII fragment S reads bed and HindIII fragment _NS_reads bed Depends on the restriction enzyme used here we use Hindlll as an example v Call Hi C peaks in the unit of restriction fragment Task get Fragment sRead is its prerequisite task libraryl sh t getPeakFragment The output file is stored in the bed directory libraryl HindIIIfragment_S reads 95 bed Here we use 95 upperbound coverage threshold as an example vi Annotate the genetics feature of the Hi C peaks Task get PeakFragment is its prerequisite task libraryl sh t annotateFragment The output file is stored in the bed directory libraryl HindIIIfragment 95 annotated bed Phase 4 Prediction of enhancer target gene interaction 105 i Identify peak peak interactions Task annotateFragment of phase 3 is its prerequisite task cd path to Hi C_Project libraryl libraryl sh t findPeakInteraction The output file is stored in the bed directory for intra chromosomal interactions chr 95 reads interaction txt and for inter chromosomal interactions libraryl_ interChrm_95 reads _interaction txt ii Corre
15. y structure for hippie execution 6 HIPPIE operates on a per library sample level A project can contain multiple libraries samples and each library resides in one directory Each library directory has a command script e g library1 sh and sub directories for the input fastq gz files fastq and output files out and intermediate files sam bed as shown in Figure2 The user is required to prepare and maintain the input files based on this directory structure as well as describe information of each library of the project in a configuration file including paths for the project reference genome and reference epigenetics e g histone modification sites DNAse hypersensitive sites data etc Hi C_Project hippie_annot_hg19 hippie_project cfg hippie_stdout a oo Tes library1 sh NESO fastq files library2 Figure 2 The directory structure set up of HIPPIE The shaded grey directories and files have to be prepared by the users and the white directories are automatically generated by HIPPIE based on the configuration file In this manual we will use Hi C_Project as an example project name The names of the libraries sequenced are library library2 library3 etc Library sample directory and expected input fastq filename format t05 Each library can contain multiple paired end fastq gz files as long as the reads contained are from the same library with the same te
Download Pdf Manuals
Related Search
Related Contents
Vial Selection Guide LPC2 DO6 User Manual KAIRN01STMA User Manual Salsbury Industries 3396SAN Installation Guide Philips Daily Collection Chopper HR1393/91 Outils et accessoires 2 GRAND ANGLE - Viande séchée du Valais FM1100 Manual Holux Wireless GPS Logger M-241 取扱説明書(3.29MB) Copyright © All rights reserved.
Failed to retrieve file