Skip to content

About

Sampling sequencing reads, running sherman and running bismark. Resulting bam file is used as simulated WGBS reads.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

simulate_WGBS

Overview

Sampling sequencing reads, running sherman and running bismark.
Final result file (.bam) is used as simulated WGBS reads.

Installation

conda env create -f simulate_wgbs.yaml

  • This command creates a conda environment which is needed to run the uploaded Snakefile.

Input

hg38.fa

Run

snakemake -j 10

  • This command runs the uploaded Snakefile.
  • Of course, using any other possible number after '-j' option, specifying the number of CPU cores to be used, is available.

Result

Files in 'meth_erosion' folder.

  • 'meth_erosion' folder is compressed into the uploaded 'meth_erosion.zip' file.
  • Please note that these are results of setting 'NumRegions = 3' in the Snakefile. In the original simulation, 'NumRegions = 1000' was used instead.
  • Since the size of files to be uploaded is limited in github, I presented results from using a smaller value for 'NumRegions' parameter instead of the original one.

DAG visualization of Snakefile workflow:

dag

  • It is also available from the uploaded 'dag.png' file.

Etc

If 'LockException' error occurs when you try to run Snakefile using command in the 'Run' section above:

  • First, execute this command: 'snakemake --unlock'
    • As a result, a message saying 'Unlocking working directory' will appear. It means that LockException error is solved.
  • And then, execute the command in the 'Run' section above: 'snakemake -j 10'
  • Example: deal_with_LockException

About

Sampling sequencing reads, running sherman and running bismark. Resulting bam file is used as simulated WGBS reads.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages