Giter VIP home page Giter VIP logo

hictoolsr's Introduction

Hi I'm Eric ๐Ÿ‘‹

  • ๐ŸŽ“ I earned my Ph.D. in the Bioinformatics and Computational Biology (BCB) program at UNC-CH, where I studied 3D chromatin structure and transcription in human development and disease in the Phanstiel Lab.
  • ๐Ÿ”ฌ I work at Vindhya Data Science as a Data Engineer/Scientist, where I help clients build and improve their scientific software ecosystem and transform their data into actionable decisions.
  • ๐Ÿ–ฅ I also like to build software for Bioconductor to analyze, visualize, and understand genomic data.

Check out my...

Featured Workshops โš™๏ธ

Mariner: Explore the Hi-Cs

๐Ÿ”— Workshop ย  ย  ๐Ÿ“ฝ๏ธ Recording

A 90-minute Bioconductor 2023 workshop exploring Hi-C data with mariner, DEseq2 and plotgardener. In this workshop, we use mariner and DEseq2 to find differential loops in a cellular differentiation dataset. Differential loops are aggregated with mariner functions and visualized with plotgardener.

nullranges: Generation of nullranges via bootstrapping or covariate matching

๐Ÿ”— Workshop ย  ย  ๐Ÿ“ฝ๏ธ Recording

A 45-minute Bioconductor 2022 package demo of the nullranges package, co-led by Wancen Mu. In this demo, we use the covariate matching and block bootstrap functionality of nullranges to generate sets of null-hypothesis ranges.

Using nullranges::matchranges() with BentoBox

๐Ÿ”— Workshop ย  ย  ๐Ÿ“ฝ๏ธ Recording

A 5-minute Bioconductor 2021 lightening talk demonstrating the use of nullranges::matchRanges() for generating covariate-matched, null-hypothesis genomic ranges and visualizing them with plotgardener (formerly BentoBox).

Featured Publications ๐Ÿ“š

Phase separation drives aberrant chromatin looping and cancer development

๐Ÿ““ Paper ย  ย  ๐Ÿงต Twitter thread

matchRanges: Generating null hypothesis genomic ranges via covariate-matched sampling

๐Ÿ““ Paper ย  ย  ๐Ÿงต Twitter thread ย  ย  ๐Ÿ™Œ Poster

3D Chromatin Structure in Chondrocytes Identifies Putative Osteoarthritis Risk Genes

๐Ÿ““ Paper ย  ย  ๐Ÿงต Twitter thread

GitHub statistics ๐Ÿ“Š

Eric's GitHub languages

Eric's GitHub stats

Bioconductor contributions ๐ŸŽถ

Package BioC-devel BioC-release
mariner
marinerData
nullranges
nullrangesData
plotgardener

Bioinformatic Pipelines ๐Ÿงฌ

Pipeline Data type(s) Latest Version
dietJuicer Hi-C, Micro-C 1.0.0
MicroC Hi-C, Micro-C TBD
bagPipes RNA-seq, ChIP-seq, ATAC-seq, CUT&RUN TBD

hictoolsr's People

Contributors

ericsdavis avatar manjarikiran avatar sarmapar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hictoolsr's Issues

extractCounts function returning empty outputs (chrom name issue)

When using extractCounts() to pull from a bedpe file (read in as a data.frame and converted to a GInteractions object with as_ginteractions()), the resulting object contained no rows.

This turned out to be an issue with the chromosome names - in the loop bedpe file used they were listed as 1, 2, etc. However this portion of the extractCounts() function requires that they be in "chr1", "chr2" format:

## Split binned binnedEP by chromosome
  chrBedpe <- lapply(chroms, function(chr) {
    bedpe[seqnames(first(bedpe)) == paste0('chr',chr)]
  })

Simply pasting "chr" before the chromosomes in the original bedpe object fixed this issue!

Warning about using binBedpe for resizing anchors

binBedpe is used to assign anchors of a GInteractions object to a resolution-binned range. If this function is used to simultaneously expand anchor regions then keep in mind that the expansion will not be equal on both sides since it is then reassigning the range to a bin after the resize operation. Therefore, successive calls to binBedpe on the same dataset (either to shrink or expand the resolution range) will propagate error from the original ranges.

For example:

GInteractions(anchor1 = GRanges("chr1:5-6"),
              anchor2 = GRanges("chr1:15-16")) |>
    binBedpe(res = 5, a1Pos = 'center', a2Pos = 'center')

results in :

GInteractions object with 1 interaction and 0 metadata columns:
      seqnames1   ranges1     seqnames2   ranges2
          <Rle> <IRanges>         <Rle> <IRanges>
  [1]      chr1      5-10 ---      chr1     15-20
  -------
  regions: 2 ranges and 0 metadata columns
  seqinfo: 1 sequence from an unspecified genome; no seqlengths

This is the correct 5-length bin from the center of each anchor range. However, if you try to work backwards to obtain the original range, you will end up with this:

>   GInteractions(anchor1 = GRanges("chr1:5-6"),
+                 anchor2 = GRanges("chr1:15-16")) |>
+     binBedpe(res = 5, a1Pos = 'center', a2Pos = 'center') |>
+     binBedpe(res = 1, a1Pos = 'center', a2Pos = 'center')
GInteractions object with 1 interaction and 0 metadata columns:
      seqnames1   ranges1     seqnames2   ranges2
          <Rle> <IRanges>         <Rle> <IRanges>
  [1]      chr1       7-8 ---      chr1     17-18
  -------
  regions: 2 ranges and 0 metadata columns
  seqinfo: 1 sequence from an unspecified genome; no seqlengths

For this example you could set a1Pos and a2Pos to 'start', but this will not always result in the correct shifted range. Whenever you need to resize the range, be sure to work with the original GInteractions object.

Add matrix option to extractCounts function

Currently, the matrix is always set to "observed". I would like to extract observed/expected counts. Could you add a parameter to the extractCounts function so that it can be set to either "observed" or "oe"?

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.