Iterative mapping is used when no restriction enzyme is used
In [1]:
r_enz = 'HindIII'
In [2]:
from pytadbit.mapping.full_mapper import full_mapping
In [ ]:
full_mapping('/media/storage/db/reference_genome/Homo_sapiens/hg38/hg38.gem',
nthreads=2, clean=True, r_enz=r_enz,
frag_map=False,
out_map_dir='results/{0}/01_mapping/map{0}_r1'.format(r_enz),
fastq_path='/media/storage/FASTQs/K562_{0}_1.fastq'.format(r_enz),
windows=((1,25),(1,30),(1,40),(1,75)))
Fragment based mapping is more precise, faster and with less background. It first look for the ligation site, then split the reads into the two frags and map each one individually. Then looks at the 75nt from the other side and if contiguous (short [<100ntdistance] from the right side of the first read) then combine it. If from other chr or location then adds an iteraction with that other fragment.
In [3]:
! mkdir -p results
In [4]:
! mkdir -p results/HindIII
In [5]:
! mkdir -p results/MboI
In [8]:
! mkdir -p results/HindIII/01_mapping
In [9]:
! mkdir -p results/MboI/01_mapping
In [6]:
ls
In [7]:
! ls
In [13]:
! ls
In [10]:
full_mapping('/media/storage/db/reference_genome/Homo_sapiens/hg38/hg38.gem',
nthreads=2, clean=True, r_enz=r_enz,
frag_map=True,
out_map_dir='results/{0}/01_mapping/map{0}_r1'.format(r_enz),
fastq_path='/media/storage/FASTQs/K562_{0}_1.fastq'.format(r_enz))
Out[10]:
In [14]:
full_mapping('/media/storage/db/reference_genome/Homo_sapiens/hg38/hg38.gem',
nthreads=2, clean=True, r_enz=r_enz,
frag_map=True,
out_map_dir='results/{0}/01_mapping/map{0}_r2'.format(r_enz),
fastq_path='/media/storage/FASTQs/K562_{0}_2.fastq'.format(r_enz))
Out[14]:
In [15]:
ls
In [16]:
cd results/
In [17]:
ls
In [18]:
cd HindIII/
In [19]:
ls
In [20]:
cd 01_mapping/
In [21]:
ls
In [22]:
cd mapHindIII_r1/
In [23]:
ls
In [24]:
ll
In [25]:
! ls -lh
In [28]:
! head results/HindIII/01_mapping/mapHindIII_r2/K562_HindIII_1_full_1-end.map
In [29]:
! head K562_HindIII_1_full_1-end.map
In [30]:
cd ..
In [31]:
cd ..
In [32]:
cd ..
In [33]:
cd ..
In [36]:
! head results/HindIII/01_mapping/mapHindIII_r2/K562_HindIII_2_frag_1-end.map
In [ ]: