Skip to content

deWitLab/4C_mapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4C mapping

A mapping pipeline that maps and filters 4C data.

In a 4C experiment DNA fragments are ligated to your fragment of interest, which are amplified using an inverse PCR. These fragments need to mapped back to the reference genome. Repetitive fragments need to removed from the analysis. Note that non-covered fragment are also of interest to the analysis, since they signal no interaction at this genomic location.

The analysis pipeline consists of three steps that has the user has to run:

1. Creating a fragment map

To create a fragment map for you enzyme combination of choice please run the generate_fragment_map.pl script. For a fragment map for DpnII and Csp6I of the human genome you would use the following command:

perl generate_fragment_map.pl ucsc.hg19.fa GATC GTAC fragment_map/

The fragment map will be strored in the directory fragment_map/

2. Identifying the repetitve fragments

We would like to filter the fragment map for repetitive fragments, therefore we will map all the fragments back to genome we selected them from to test whether they are unique or not. For the fragment map we just created will should run the following command:

perl getRepeats.pl fragment_map/ GATC 49 ucsc.hg19.fa test_repeat/

The results will be placed in the directory test_repeat/. Note the 49, this is the length of the ligated fragment including the restriction site. Note that for every different sequencing length for you 4C experiment, you will need to create a new repeat map. So if you have a sequence length of 65, a primer of 20nt and a 4nt restriction site, your sequence length should be 65 - 20 + 4 = 49.

3. Splitting FASTQ and mapping to the genome

The preprocessing of the data is now finished and you can start to map your data to the genome. The only thing you need is an index file, which contains the minimal information of your 4C experiment. The structure of this file is as follows:

Experiment name primer sequence path to reference genome restriction enzyme 1 restriction enzyme 2 viewpoint chromosome
Nanog_enhancer CACATTGATTAACCTAGATC /data/reference/mm9.fa GATC GTAC chr6

Note that the reference should also have bwa index. Also note that the second restriction enzyme is not strictly necessary, but the chromosome id should always be in the 6th column. Given the curre nt setup it is not possible to mix restriction enzyme combination or reference genomes. If you have multiple genomes or multiple restriction enzyme combinations please create a seperate index file for each one.

The following command is used to process and map your data.

perl mapping_pipeline.pl simple_index.txt test_run 4C_data.fastq.gz 10 fragment_map/ repeats/

More detailed information is given in the scripts themselves.

###Requirements:

To run the 4C mapping you will need the following software installed on your machine

  1. bwa (bwasw)
  2. bedtools (fastaFromBed)
  3. Inline::C

About

A mapping pipeline that maps and filters 4C data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages