Code Monkey home page Code Monkey logo

apis-methylation's Introduction

This repository contains code used to re-analyse WGBS data from the honey bee (Apis mellifera) and some other insects. It exists primarily for reproducibility purposes; while it is not polished for public use, it may provide some useful components for re-use. Indeed, the structure herein was initially developed for a systematic review of DNA methylation patterns in the honey bee, then re-used to expand analysis into 5 more Hymenopterans, namely:

  • Bombus terrestris (buff-tailed bumblebee)
  • Nasonia vitripennis (jewel wasp)
  • Ooceraea biroi (clonal raider ant)
  • Harpegnathos saltator (Indian jumping ant)
  • Camponotus floridanus (Florida carpenter ant)

Data for each species is curated in json files such as this one.

Primary analysis of WGBS data was done with nf-core/methylseq.

A number of scripts exist to aid in heavy lifting. Mainly:

  • prep_run.py will parse a meta.json file and generate the directory structure to run nf-core/methylseq on all samples. (note that this assumes all fastq files are accessible through filesystem)
  • methylseq.pbs contains the parameters used for nf-core/methylseq execution within this structure.
  • submit.sh submits jobs for all samples within such a directory.
  • merge_bedgraph.py parses nf-core/methylseq output for all samples into two master matrices that contain entirety of experimental data. Cytosines in rows, samples in columns; total calls in one, methylated calls in the other.
  • significant.py filters those matrices for minimum coverage and tests for significant methylation against a null of incomplete bisulfite conversion using a binomial model.
  • build_index.py builds an index containing strand, context and annotation data for every cytosine in the genome to match the master matrices..

Secondary analysis is then contained in notebooks, and is entirely based on the output of last 2 scripts.

A complete, although not minimal conda environment that supports the entirety of analysis is provided.

apis-methylation's People

Contributors

littleblackfish avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.