Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generation of files in coverage_data #1

Closed
lvclark opened this issue Jun 9, 2022 · 3 comments
Closed

Generation of files in coverage_data #1

lvclark opened this issue Jun 9, 2022 · 3 comments

Comments

@lvclark
Copy link

lvclark commented Jun 9, 2022

I am trying to run tu_subcluster_annotation.R, which requires files in data/coverage_data. However, I can't find any scripts or instructions in the rest of the repository explaining how those files should be created.

Thanks in advance!

@felixgrunberger
Copy link
Owner

Sorry that this information is missing.
Coverage files were generated in a strand-specific way (after filtering the BAM according to the their flags) with samtools depth -a -d 0 and include the read depth at each position in the genome.
You can also have a look at https://github.com/felixgrunberger/microbepore/blob/master/Rscripts/operon_analysis.R, which is an updated version of the transcriptional unit analysis.

@lvclark
Copy link
Author

lvclark commented Jun 9, 2022

Great, thank you!

@lvclark lvclark closed this as completed Jun 9, 2022
@lvclark
Copy link
Author

lvclark commented Jun 9, 2022

To get forward and reverse coverage I ended up doing

samtools view -F 0x10 -h -b results/minimap/${Sample_ID}_sorted.bam | \
  samtools depth -a -d 0 -o Native_RNAseq_Microbes/coverage_data/${Sample_ID}_plus_depth.txt -

samtools view -f 0x10 -h -b results/minimap/${Sample_ID}_sorted.bam | \
  samtools depth -a -d 0 -o Native_RNAseq_Microbes/coverage_data/${Sample_ID}_minus_depth.txt -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants