Biobix / DeepRibo

GNU General Public License v3.0
14 stars 3 forks source link

How to convert fastQ file into four Bedgraph files #8

Closed Merofine closed 1 year ago

Merofine commented 4 years ago

hi guy, Do you have a manual or something that explains the conversion process? Thanks a lot ~

Merofine commented 4 years ago

In short, the ribosome profiling data of elongating ribosomes has to be compiled into four bedgraph files. These contain the coverage signals of all reads and the mapped A/P profiles (reads mapped to one site). The following steps are performed: read adapters are trimmed rRNA sequences are filtered out and only uniquely mapped reads are used a 12nt offset from the 3' end of the read is used to map reads to a single position on the genome.

I have a fastq file(the ribosome profiling data of elongating ribosomes), and I want to get four bedgraph files like u.This is making me dizzy.~Thank you very very much ~

Merofine commented 4 years ago

This is very helpful to the progress of our project. I'm also glad to see such a good model(DeepRibo)

priyansha016 commented 1 year ago

Hi @Merofine , Did you find how to do it? I have strand specific bam files. How to convert into 4 bedgraph files?

jdcla commented 1 year ago

There are multiple tools online to achieve this, simply google your question for discussions on this (e.g. https://www.biostars.org/p/312239/).

Additionally, after doing this, you can check the files used for the study to see whether your files look in order. see http://www.biobix.be/deepribo/

priyansha016 commented 1 year ago

I know the commands to convert into bedgraph file. I don't understand how to specifically look for elongating coverage and A-sites.

jdcla commented 1 year ago

I cannot look into the exact commands I used for pre-processing the files, but know these conversions can be achieved with samtools or bedtools.

If you delve into the functionality of these tools you should be able to find the necessary commands.

Merofine commented 1 year ago

thanks a lot.

---Original--- From: @.> Date: Mon, Feb 27, 2023 20:28 PM To: @.>; Cc: @.**@.>; Subject: Re: [Biobix/DeepRibo] How to convert fastQ file into four Bedgraphfiles (#8)

I cannot look into the exact commands I used for pre-processing the files, but know these conversions can be achieved with samtools or bedtools.

If you delve into the functionality of these tools you should be able to find the necessary commands.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

priyansha016 commented 1 year ago

I will look into it. Thanks!

jdcla commented 1 year ago

I did a quick search and found this: https://bedtools.readthedocs.io/en/latest/content/tools/genomecov.html

Using the -3 argument allows you to map reads to a single positions, you can shift the reads with 12 nt afterwards. I'll edit the README.md to include this info.

edit: -5 -> -3

priyansha016 commented 1 year ago

I have a doubt in the 'Data preparation' section. It says 12nt offset from 3' end of the read. But SD would be on 5' end. Or am I getting it wrong?

jdcla commented 1 year ago

You are correct. I corrected my mistake. Thanks for verifying.