Skip to main content

No project description provided

Project description

Track view of chromosome conformation and multi-omics data

trackc is a python package for flexible visualization of rearrangement 3D genome and multi-omics data. It builds on top of matplotlib, which allows for flexible adjustments.

trackc’s key applications

  • Mark the abnormal interaction formed by the structural variation of the genome.

  • Show the 3Dgenome interaction and multi-omics data after rearrangement.

  • Flexible and convenient layout for multi-track

Available track types

tracks

track

functions

Description

Hi-C heatmap

tl.extractContactRegions, tl.extractCisContact, mapC

support multi-regions and reverse regions

mark regions on heatmap

mapc_markline

support multi-regions and reverse regions, mark square line on mapc heatmap

Virtual4C

Virtual4C

support multi-regions and reverse regions

loop links

links_track

support multi-regions and reverse regions

bed

bed_track

support multi-regions and reverse regions, styles[bar, line, rectangle, triangle, link] to show ChIP-seq peak or ATAC-seq peaks, TAD domains, SVs bed or begGraph

bigwig

bigwig_track

support multi-regions and reverse regions

bedgraph matrix

bdgmat_track

support multi-regions and reverse regions, styles [heatmap, line]

zoomin visualization

zoomin

support multi-regions and reverse regions

gene annotation

gene_track

support multi-regions and reverse regions

scale bar

scale_track

genome position scale

multi scale bar

multi_scale_track

support multi-regions and reverse regions

high light some position or regions

vhighlight

support multi-regions and reverse regions

Here is an example of du_dynamic_2022 article diagram implemented by trackc.

gallery_rearranged_interactions.png

Installation

PyPI

Install trackc by running:

pip install trackc

Development version

To install trackc from GitHub, run:

pip install git+https://github.com/seqyuan/trackc@main

Usage

trackc support both api and cli. Here is a cli example:

trackc cli conf.yml
neo-domain.png

conf.yml content

trackc:
  - ax: l1
    height: 1.25
    track_type: hicmap
    track_para:
      mat:
        method: extractContactRegions
        clr: ./github/seqyuan/trackc_data/examples/BxPC3.chr18.mcool::/resolutions/25000
        balance: False
        row_regions:
          - 18:47400000-48280000
          - 18:75280000-74030000
      mapC:
        map_type: tri
        label: neo tad
        cmap: PuBu
        height: 40
        ax_on: False
        maxrange: 200
        minrange: 10

  - ax: l2
    height: 0.5
    track_type: bw_track
    track_para:
      bw: ./github/seqyuan/trackc_data/examples/GSM3178671_BxPC3_H3K27ac.bigwig
      regions:
        - 18:47400000-48280000
        - 18:75280000-74030000
      label: H3K27ac
      binsize: 2000
      color:
        - '#5B7695'
  - ax: l3
    height: 0.4
    track_type: multi_scale_track
    track_para:
      regions:
        - 18:47400000-48280000
        - 18:75280000-74030000
      scale_adjust: Mb
      intervals: 2
      tick_fontsize: 7

  - ax: l4
    height: 2.8
    track_type: gene_track
    track_para:
      bed12: ./github/seqyuan/trackc_data/examples/hg19_chr18.gene.bed12
      regions:
        - 18:47400000-48280000
        - 18:75280000-74030000
      line: 12
      gene_fontsize: 8

Documentation

Our documentation provide the full list of possible track types and gallary guidelines for users.

Extensive documentations are available at https://trackc.readthedocs.io

Citation

If you use trackc in your analysis, Please cite trackc as follows:

trackc: a package for flexible visualization of rearrangement 3D genome and multi-omics data

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trackc-0.0.24.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trackc-0.0.24-py3-none-any.whl (51.8 kB view details)

Uploaded Python 3

File details

Details for the file trackc-0.0.24.tar.gz.

File metadata

  • Download URL: trackc-0.0.24.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trackc-0.0.24.tar.gz
Algorithm Hash digest
SHA256 1ce6b8a6bbe605b40b4403ce3a858b8f56c704d126b82d708636251ff320976c
MD5 f81c79f9d20d2b2952328a66b7b6c0db
BLAKE2b-256 a72c07150fe1d82b9f9c6a0874d9d673958d9e9cde5960d349f61225448b8e72

See more details on using hashes here.

Provenance

The following attestation bundles were made for trackc-0.0.24.tar.gz:

Publisher: ci.yml on seqyuan/trackc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trackc-0.0.24-py3-none-any.whl.

File metadata

  • Download URL: trackc-0.0.24-py3-none-any.whl
  • Upload date:
  • Size: 51.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trackc-0.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 1358605fdf9cc73599007e1a52c60e3508c8aa1e12abe5bec7a248628a5338dc
MD5 b586b34d8656147fd5af4ea0b526bc31
BLAKE2b-256 be38c005f5e75d70e758b179b2800f295dbcacd66027852aacded631c307fbc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for trackc-0.0.24-py3-none-any.whl:

Publisher: ci.yml on seqyuan/trackc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page