Question: Insertion size when using 'paired' in MEDIPS.createSet()
gravatar for stb
3.1 years ago by
stb0 wrote:


I have a question concerning insertion size when using MEDIPS.

When setting paired = TRUE in MEDIPS, you will get a mean insertion size as well as standard deviation;

Mean insertion size: 204.4319 nt
SD of the insertion size: 57.93392 nt
Max insertion size: 602 nt
Min insertion size: 49 nt

Does the insertion size include the reads or is it the number of nucleotides between the forward and reverse read?




ADD COMMENTlink modified 3.1 years ago by Lukas Chavez510 • written 3.1 years ago by stb0
Answer: Insertion size when using 'paired' in MEDIPS.createSet()
gravatar for Lukas Chavez
3.1 years ago by
Lukas Chavez510
Lukas Chavez510 wrote:

Dear Stine,

the function getPairedGRange() contains the relevant interfaces to Rsamtools for importing bam files. These are:

scanFlag = scanBamFlag(isPaired = T, isProperPair = TRUE,
            hasUnmappedMate = FALSE, isUnmappedQuery = F, isFirstMateRead = T,
            isSecondMateRead = F, isSecondaryAlignment = isSecondaryAlignment)
scanParam = ScanBamParam(flag = scanFlag, simpleCigar = simpleCigar, what = c("rname",
                  "pos", "strand", "qwidth", "isize", "mpos”))
regions = scanBam(file = paste(path, fileName, sep = "/"),
            param = scanParam)

The insert size is accessed by

According to, isize is defined as:
isize: This is the TLEN field in SAM Spec v1.4. Inferred insert size for paired end alignments.

The samtools definition on TLEN says:
If all segments are mapped to the same reference, the unsigned observed template length equals the number of bases from the leftmost mapped base to the rightmost mapped base.

Therefore, to the best of my knowledge, the insert size represents the entire sequenced DNA fragment.

Hope that helps.

All the best,

ADD COMMENTlink written 3.1 years ago by Lukas Chavez510
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 451 users visited in the last hour