guanjue / IDEAS_2018

Jointly characterizing epigenetic dynamics across multiple cell types
MIT License
6 stars 6 forks source link

Averaging Replicates #13

Closed YogiOnBioinformatics closed 2 years ago

YogiOnBioinformatics commented 2 years ago

Hello @guanjue,

Hope you're well!

I wanted to clarify the instructions for the prepMat regarding replicates as stated here: https://github.com/guanjue/IDEAS_2018/blob/5881efae8e42ce711766d021a88e2cfe309a1f52/IDEAS_APP/readme_prepMat#L32

How exactly do I average the files?

Can I assume the 1 millionth line in ATAC_rep1.bed.gz corresponds to the same region as the 1 millionth line in ATAC_rep2.bed.gz? The above assumes I've used the prepMat program to create the files.

If the answer is "yes" to my above question, I guess I could just iterate through each line in the .bed.gz files for a group of replicates and take the average. (i.e. take line 1 from 3 different replicate .bed.gz files and average these 3 numbers all from line 1 of the original file)

YogiOnBioinformatics commented 2 years ago

@guanjue

Apologies, don't mean to bother. Just wanted to follow up on this.

guanjue commented 2 years ago

Hi,

Sorry, for the late reply.

For Q1, the answer is yes. For each row, it will be a 200bp bins' read counts for each replicate of each epigenomic feature. So, yes, you can simply take the row-means as the average.

Best wishes. Guanjue

On Fri, Mar 4, 2022 at 12:16 PM Yogindra Raghav @.***> wrote:

@guanjue https://github.com/guanjue

Apologies, don't mean to bother. Just wanted to follow up on this.

— Reply to this email directly, view it on GitHub https://github.com/guanjue/IDEAS_2018/issues/13#issuecomment-1059354077, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3XPDESDSJ4Q53W7AMWC43U6JAOTANCNFSM5PZEZ5SA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

YogiOnBioinformatics commented 2 years ago

Awesome, thanks so much!