aidenlab / 3d-dna

3D de novo assembly (3D DNA) pipeline
MIT License
197 stars 56 forks source link

chromogram: draft vs hi-c improved assembly #53

Open ersgupta opened 4 years ago

ersgupta commented 4 years ago

Hi Olga,

I am trying to use the supp/make-rainbow-tracks-assembly.sh script to make tracks.bedpe file to visualise the chromogram (similar to Fig 1 from Dudchenko et al 2017). I have couple of points regarding this, could you please address these?

  1. I get an error saying that I have annotations which span multiple contigs. I see that you have a *-w-split.awk to take care of this. However, this needs to be changed in one line in make-rainbow-tracks-assembly.sh. I made the respective change and the error goes away.
  2. The output file contains same color (0,0,0) for all scaffolds. It seems this is not taken into account in the script.

Thanks Saurabh

dudcha commented 4 years ago

Hello Saurabh,

  1. the script you are pointing to is not relevant in this case. The rainbow track is created from the chrom-length assembly to draft. Make sure you are passing the chrom-length as ref.assembly and original draft assembly as draft.assembly

  2. annotation color is not the rainbow color. The color is the next column, from 0 to 1. You can map it to continuous color however you want.

Olga

ersgupta commented 4 years ago

Thanks.

  1. Got it, will try that.
  2. So you mean, I can assign the color for each chromosome in annotation color column and the next column takes care of the gradient, right?

Saurabh

dudcha commented 4 years ago

Saurabh,

Chromosome-length assembly in this script is assumed to be a continuous gradient from 0 to 1 (for the first -c scaffolds). The relevant column says how the draft assembly should be colored in terms of this gradient.

Olga

ersgupta commented 4 years ago

Thanks Olga, I will try it out and get back to you.