Skip to content

GrapHi-C: graph-based visualization of Hi-C data

Notifications You must be signed in to change notification settings

kimmackay/GrapHi-C

Repository files navigation

GrapHi-C

GrapHi-C: graph-based visualization of Hi-C data

If you use this method, please cite: Kimberly MacKay, Anthony Kusalik and Christopher H. Eskiw. GrapHi-C: graph-based visualization of Hi-C datasets. BMC Research Notes. (2018) 11:418. DOI: https://doi.org/10.1186/s13104-018-3507-2

generate_adjacency_graph.pl is the script used to generate an adjacency graph from Hi-C data where: linear, cis and trans interactions are represented

So far, GrapHi-C has been tested with output from the hiclib pipeline form Mirny Lab (https://bitbucket.org/mirnylab/hiclib)

*** Caution: depending on what network layout you choose to use you will want the above script to output either the direct interaction frequency or the inverse of the interaction frequency. Be mindful of your selection to insure the inverse of the interaction frequency is represented in the final layout. ***

the first row/column of the whole-genome contact map should include the information for bin labels and/or chromsome locations


Whole-genome example:

Example command line for Cytoscape Visualization:

./generate_adjacency_graph.pl GSM1379427_wt_999a-corrected-matrix_hic.tsv 1258 3 10000 1 C 999a_wt.tsv enter the starting genomic bin number for each chromosome. Enter d when complete: 1 559 1013 d enter the ending genomic bin number for each chromosome. Enter d when complete: 558 1012 1258 d

Example command line for Gephi Visualization:

./generate_adjacency_graph.pl GSM2446256_HiC_20min_10kb.txt 1258 3 10000 1 G 20min_edges.tsv enter the starting genomic bin number for each chromosome. Enter d when complete: 1 559 1013 d enter the ending genomic bin number for each chromosome. Enter d when complete: 558 1012 1258 d


A second script has also been developed for single chromosome visualization (generate_adjacency_graph_single_chr.pl). The script only considers linear and cis- interaction data. Please note, GrapHi-C was not intended for the visualization of single-chromosomes since it relies heavily on both cis- and trans- interactions to determine the final layout. The minimal testing that I have done in S. pombe does not yield good results. Note, I have not tested it extensively and should be used with caution. The minimal testing that Please log any issues you incounter in the git repository and I will fix them as soon as possible.

Example command line for Cytoscape Visualization:

./generate_adjacency_graph_single_chr.pl ./test_data/single_chr/pombeWT_chr1.txt 558 1 10000 1 C pombeWT_chr1.tsv

Example command line for Gephi Visualization:

./generate_adjacency_graph_single_chr.pl ./test_data/single_chr/pombeWT_chr1.txt 558 1 10000 1 G pombeWT_chr1.tsv


This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

About

GrapHi-C: graph-based visualization of Hi-C data

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages