calculating mean fragment length from CollectInsertSizeMetrics(Picard) output
1
0
Entering edit mode
8 months ago
Niharika • 0

Can I use MEAN_INSERT_SIZE from picard as the meanFragmentLength directly ? Should I add the length of the adapter sequence that I used for trimming to the MEAN_INSERT_SIZE ? Please clarify on this. Alternatively can I use R2 end positions - R1 start , where R1 and R2 are pair of reads and then calculate the mean ?

count2fpkm • 912 views
ADD COMMENT
0
Entering edit mode

Can you give some context what you want to do? Don't reinvent the wheel.

ADD REPLY
0
Entering edit mode

Thank you for your response.

I want to use count2fpkm for normalizing my counts matrix, for which I need mean Fragment length, as suggested for getting mean Fragment length I ran CollectInsertSizeMetrics(Picard). Output of CollectInsertSizeMetrics(Picard) contains mean insert size but not mean fragment length. I repeated this question because I did not get an answer whether I should use mean insert size as it is or do any manipulation before using it in count2fpkm. Additionally, I am asking if I simply skip running CollectInsertSizeMetrics(Picard) and get mean fragment length [ which I am assuming is (R2 end positions - R1 start position) from SAM file, will it be correct to do so?

ADD REPLY
0
Entering edit mode

ATpoint I'm still confused, can you please help

ADD REPLY
0
Entering edit mode
8 months ago
ATpoint 85k

Insert size is just the length of a fragment, but transcripts are chopped into pieces during library prep. What you need is the average transcript length. Tools like salmon can give you this, and then you use tximport to summarize the transcript information to gene level.

ADD COMMENT

Login before adding your answer.

Traffic: 1885 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6